public class ReanimateTickAction extends java.lang.Object implements ITickAction<TileSpiritReanimator>
ITickAction that is able to reanimate boxes with spirits.| Constructor and Description |
|---|
ReanimateTickAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToProduceSlot(TileSpiritReanimator tile,
net.minecraft.item.ItemStack itemStack)
Try to add the given item to the production slot.
|
boolean |
canTick(TileSpiritReanimator tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
If this action can tick for the given conditions.
|
protected net.minecraft.item.ItemStack |
getCookStack(TileSpiritFurnace tile) |
protected int |
getRequiredMb(TileSpiritReanimator tile,
int tick) |
float |
getRequiredTicks(TileSpiritReanimator tile,
int slot,
int tick)
Get the required conditions for the given conditions.
|
void |
onTick(TileSpiritReanimator tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
Add one tick.
|
public boolean canTick(TileSpiritReanimator tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActioncanTick in interface ITickAction<TileSpiritReanimator>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)
public void onTick(TileSpiritReanimator tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActiononTick in interface ITickAction<TileSpiritReanimator>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 int getRequiredMb(TileSpiritReanimator tile, int tick)
public float getRequiredTicks(TileSpiritReanimator tile, int slot, int tick)
ITickActiongetRequiredTicks in interface ITickAction<TileSpiritReanimator>tile - The tile entity that ticks.slot - The slot ID for the ticker.tick - The current tick.public boolean addToProduceSlot(TileSpiritReanimator tile, net.minecraft.item.ItemStack itemStack)
tile - The tile where reanimation happened.itemStack - The item to try to put in the output slot.