Enum Event.EventType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Event.EventType>
    Enclosing class:
    Event

    public static enum Event.EventType
    extends java.lang.Enum<Event.EventType>
    Type of incoming events. Must be equal to the EventName.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CamMoved
      Event type for: Cam has been moved.
      ChallengeTick
      Event type for: challenge tick.
      GameOver
      Event type for: game has finished.
      InvChanged
      Event type for: Inventory content or selected slot has changed.
      TileClicked
      Event type for: User clicked a tile in creative mode.
      TileStatus
      Event type for: Tile status changed.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Event.EventType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Event.EventType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ChallengeTick

        public static final Event.EventType ChallengeTick
        Event type for: challenge tick. Will get send when a challenge bot should send a action list.
      • GameOver

        public static final Event.EventType GameOver
        Event type for: game has finished. A disconnect implies this event.
      • TileClicked

        public static final Event.EventType TileClicked
        Event type for: User clicked a tile in creative mode.
      • TileStatus

        public static final Event.EventType TileStatus
        Event type for: Tile status changed. (added, remove, changed, manually triggered)
      • InvChanged

        public static final Event.EventType InvChanged
        Event type for: Inventory content or selected slot has changed.
      • CamMoved

        public static final Event.EventType CamMoved
        Event type for: Cam has been moved.
    • Method Detail

      • values

        public static Event.EventType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Event.EventType c : Event.EventType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Event.EventType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null