public interface IBlockInteractHandler
ICustomBlockInteract.doInteract(BlockPos, IDrone, IBlockInteractHandler, boolean).| Modifier and Type | Method and Description |
|---|---|
void |
abort()
When invoked, the drone will abort searching the area.
|
void |
decreaseCount(int count)
When
useCount() returns true, this should be called to notify the amount actually transferred. |
int |
getRemainingCount()
When
useCount() returns true, transfer only up to this much of the resource in question. |
boolean[] |
getSides()
Returns a boolean[6] of all sides, in order D,U,N,S,W,E; you can use
Direction.get3DDataValue() to get
an index into this array to get the facing direction, or you use the isSideAccessible(Direction)
convenience method. |
default boolean |
isSideAccessible(net.minecraft.util.Direction face)
Convenience method to check if a given face is accessible.
|
boolean |
useCount()
This is controlled by players setting the "Use Count" checkbox in the widget GUI.
|
boolean[] getSides()
Direction.get3DDataValue() to get
an index into this array to get the facing direction, or you use the isSideAccessible(Direction)
convenience method.boolean useCount()
void decreaseCount(int count)
useCount() returns true, this should be called to notify the amount actually transferred.count - the amount to notifyint getRemainingCount()
useCount() returns true, transfer only up to this much of the resource in question.void abort()
default boolean isSideAccessible(net.minecraft.util.Direction face)
face - the face to check