public class BoxCookTickAction extends java.lang.Object implements ITickAction<TileSpiritFurnace>
ITickAction that is able to cook boxes with spirits.| Constructor and Description |
|---|
BoxCookTickAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTick(TileSpiritFurnace tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
If this action can tick for the given conditions.
|
protected void |
doNextDrop(TileSpiritFurnace tile) |
protected net.minecraft.item.ItemStack |
getCookStack(TileSpiritFurnace tile) |
protected int |
getRequiredMb(TileSpiritFurnace tile,
int tick) |
int |
getRequiredTicks(TileSpiritFurnace tile,
int slot)
Get the required conditions for the given conditions.
|
void |
onTick(TileSpiritFurnace tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
Add one tick.
|
public boolean canTick(TileSpiritFurnace tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActioncanTick in interface ITickAction<TileSpiritFurnace>tile - The tile entity that ticks.itemStack - The ItemStack that is in the slot for which this ticker runs.slot - The slot ID for the ticker.tick - The current tick.protected net.minecraft.item.ItemStack getCookStack(TileSpiritFurnace tile)
protected void doNextDrop(TileSpiritFurnace tile)
protected int getRequiredMb(TileSpiritFurnace tile, int tick)
public void onTick(TileSpiritFurnace tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActiononTick in interface ITickAction<TileSpiritFurnace>tile - The tile entity that ticks.itemStack - The ItemStack that is in the slot for which this ticker runs.slot - The slot ID for the ticker.tick - The current tick.public int getRequiredTicks(TileSpiritFurnace tile, int slot)
ITickActiongetRequiredTicks in interface ITickAction<TileSpiritFurnace>tile - The tile entity that ticks.slot - The slot ID for the ticker.