@FunctionalInterface public interface MultiBlockInteractionHandler extends ItemHandler
ItemHandler
is called whenever a Player
interacts with
this MultiBlock
.
Note that this MultiBlockInteractionHandler
should be assigned to
a class that inherits from MultiBlockMachine
.ItemHandler
,
MultiBlock
,
MultiBlockMachine
Modifier and Type | Method and Description |
---|---|
default java.lang.Class<? extends ItemHandler> |
getIdentifier()
This method returns the identifier for this
ItemHandler . |
boolean |
onInteract(Player p,
MultiBlock mb,
Block b) |
isPrivate
boolean onInteract(Player p, MultiBlock mb, Block b)
default java.lang.Class<? extends ItemHandler> getIdentifier()
ItemHandler
ItemHandler
.
We use a Class
identifier to group Item Handlers together.getIdentifier
in interface ItemHandler
Class
identifier for this ItemHandler