Class DoubleDoorsAPI

java.lang.Object
com.janboerman.doubledoors.api.DoubleDoorsAPI

public class DoubleDoorsAPI extends Object
The developer's api for DoubleDoors.
  • Method Details

    • isFakeEvent

      public static boolean isFakeEvent(BlockRedstoneEvent event)

      Tests whether a BlockRedstoneEvent is fake.

      A BlockRedstoneEvent is fake if the block in question does not actually experience a change in redstone power in the game world, but the event was called by DoubleDoors for an adjacent door/trapdoor/fencegate for improved interop with other plugins.

      Parameters:
      event - the (possibly fake) BlockRedstoneEvent
      Returns:
      true if the event is fake, otherwise false
    • isFakeEvent

      public static boolean isFakeEvent(PlayerInteractEvent event)

      Tests whether a PlayerInteractEvent is fake.

      A PlayerInteractEvent is fake the clicked block isn't really clicked by a real player in the world, but the event was called by DobuleDoors for an adjacent door/trapdoor/fencegate for improved interop with other plugins.

      Parameters:
      event - the (possibly fake) PlayerInteractEvent
      Returns:
      true if the event is fake, otherwise false