public class PurifierActionRegistry extends java.lang.Object implements IPurifierActionRegistry
| Constructor and Description |
|---|
PurifierActionRegistry() |
| 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.
|
public void register(IPurifierAction purifyAction)
IPurifierActionRegistryregister in interface IPurifierActionRegistrypurifyAction - The repair action instance.public boolean isItemValidForMainSlot(net.minecraft.item.ItemStack itemStack)
IPurifierActionRegistryisItemValidForMainSlot in interface IPurifierActionRegistryitemStack - The ItemStack that could be inserted.public boolean isItemValidForAdditionalSlot(net.minecraft.item.ItemStack itemStack)
IPurifierActionRegistryisItemValidForAdditionalSlot in interface IPurifierActionRegistryitemStack - The ItemStack that could be inserted.public int canWork(TilePurifier tile)
IPurifierActionRegistrycanWork in interface IPurifierActionRegistrytile - The Purifier tile.public boolean work(int actionId,
TilePurifier tile)
IPurifierActionRegistrywork in interface IPurifierActionRegistryactionId - -1 if none of the actions apply, otherwise the actionId that applies.tile - The Purifier tile.