Class DoubleDoorsAPI
java.lang.Object
com.janboerman.doubledoors.api.DoubleDoorsAPI
The developer's api for DoubleDoors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisFakeEvent(BlockRedstoneEvent event) Tests whether a BlockRedstoneEvent is fake.static booleanisFakeEvent(PlayerInteractEvent event) Tests whether a PlayerInteractEvent is fake.
-
Method Details
-
isFakeEvent
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
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
-