public interface IPurifierActionRegistry
extends org.cyclops.cyclopscore.init.IRegistry
IPurifierAction instances.| Modifier and Type | Method and Description |
|---|---|
int |
canWork(TilePurifier tile)
Check if he Purifier can work in the current state.
|
boolean |
isItemValidForAdditionalSlot(net.minecraft.item.ItemStack itemStack)
Check if the given item can be inserted into the additional slot of the Purifier.
|
boolean |
isItemValidForMainSlot(net.minecraft.item.ItemStack itemStack)
Check if the given item can be inserted into the Purifier to purify.
|
void |
register(IPurifierAction purifyAction)
Register a new repair action.
|
boolean |
work(int actionId,
TilePurifier tile)
Execute a valid Purifier action for the given Purifier tile.
|
void register(IPurifierAction purifyAction)
purifyAction - The repair action instance.boolean isItemValidForMainSlot(net.minecraft.item.ItemStack itemStack)
itemStack - The ItemStack that could be inserted.boolean isItemValidForAdditionalSlot(net.minecraft.item.ItemStack itemStack)
itemStack - The ItemStack that could be inserted.int canWork(TilePurifier tile)
tile - The Purifier tile.boolean work(int actionId,
TilePurifier tile)
actionId - -1 if none of the actions apply, otherwise the actionId that applies.tile - The Purifier tile.