Enum Events



  • public enum Events
    extends java.lang.Enum<Events>
    • Enum Constant Detail

      • damage

        public static final Events damage
        an entitiy which will receive this event will be damaged
      • collided

        public static final Events collided
      • steppedOn

        public static final Events steppedOn
      • selectInEditor

        public static final Events selectInEditor
      • deselectInEditor

        public static final Events deselectInEditor
      • blockDestroyed

        public static final Events blockDestroyed
        extra info has coordinate
      • blockDamaged

        public static final Events blockDamaged
        extra info has coordinate
      • landed

        public static final Events landed
        when an entity touches the ground
      • moveTo

        public static final Events moveTo
        moves an object. extra information must contain Point
      • standStill

        public static final Events standStill
      • teleport

        public static final Events teleport
        extra information must contain Point
      • chunkChanged

        public static final Events chunkChanged
        extra info contains changed chunk
      • mapChanged

        public static final Events mapChanged
        event fired when a block in the map changed
      • mapReloaded

        public static final Events mapReloaded
      • cellChanged

        public static final Events cellChanged
        if a cell is changed. Extra information contains Coordinate
      • renderStorageChanged

        public static final Events renderStorageChanged
    • Method Detail

      • values

        public static Events[] 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 (Events c : Events.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Events 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
      • getId

        public int getId​()
        Returns: