Enum Class RedstoneWorld.Update

java.lang.Object
java.lang.Enum<RedstoneWorld.Update>
fr.fidorial.world.redstone.RedstoneWorld.Update
All Implemented Interfaces:
Serializable, Comparable<RedstoneWorld.Update>, Constable
Enclosing interface:
RedstoneWorld

public static enum RedstoneWorld.Update extends Enum<RedstoneWorld.Update>
How far a block change made through RedstoneWorld.setBlock(BlockPosition, BlockData, Update) spreads. Whatever it is, the RedstoneBehaviour.onPlace(RedstoneWorld, BlockPosition, BlockData, BlockData) of the new state runs, as in vanilla.
Since:
0.1.0
  • Enum Constant Details

    • NEIGHBORS

      public static final RedstoneWorld.Update NEIGHBORS
      The neighbours are told the block changed, and their shapes follow: what placing or breaking a block does.
    • SHAPES

      public static final RedstoneWorld.Update SHAPES
      Only the shapes of the neighbours follow, which is enough for redstone dust or an observer next to it: what a repeater or a lamp changing state does.
    • QUIET

      public static final RedstoneWorld.Update QUIET
      Neither the neighbours nor their shapes react.
  • Method Details

    • values

      public static RedstoneWorld.Update[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RedstoneWorld.Update valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null