public class DisenchantPurifyAction extends java.lang.Object implements IPurifierAction
| Modifier and Type | Field and Description |
|---|---|
static Wrapper<net.minecraft.item.Item> |
ALLOWED_BOOK
The allowed book instance.
|
| Constructor and Description |
|---|
DisenchantPurifyAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWork(TilePurifier tile)
Check if he Purifier can work in the current state.
|
protected boolean |
isAllowed(net.minecraft.item.ItemStack itemStack) |
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.
|
boolean |
work(TilePurifier tile)
Execute a valid Purifier action for the given Purifier tile.
|
public static final Wrapper<net.minecraft.item.Item> ALLOWED_BOOK
protected boolean isAllowed(net.minecraft.item.ItemStack itemStack)
public boolean isItemValidForMainSlot(net.minecraft.item.ItemStack itemStack)
IPurifierActionisItemValidForMainSlot in interface IPurifierActionitemStack - The ItemStack that could be inserted.public boolean isItemValidForAdditionalSlot(net.minecraft.item.ItemStack itemStack)
IPurifierActionisItemValidForAdditionalSlot in interface IPurifierActionitemStack - The ItemStack that could be inserted.public boolean canWork(TilePurifier tile)
IPurifierActioncanWork in interface IPurifierActiontile - The Purifier tile.public boolean work(TilePurifier tile)
IPurifierActionwork in interface IPurifierActiontile - The Purifier tile.