Class RedstoneManagerSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.managers.RedstoneManagerSpigot
- All Implemented Interfaces:
IRedstoneManager
Represents an implementation of
IRedstoneManager for the Spigot platform.-
Nested Class Summary
Nested classes/interfaces inherited from interface IRedstoneManager
IRedstoneManager.RedstoneStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionisBlockPowered(IWorld world, Vector3Di position) Checks if a block is a power block (correct block type) and if it is powered.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IRedstoneManager
isBlockPowered
-
Constructor Details
-
RedstoneManagerSpigot
-
-
Method Details
-
isBlockPowered
Description copied from interface:IRedstoneManagerChecks if a block is a power block (correct block type) and if it is powered.- Specified by:
isBlockPoweredin interfaceIRedstoneManager- Parameters:
world- The world the block is in.position- The position of the block.- Returns:
- True if the block at the given position is a valid power block that is receiving an active redstone signal.
-