public abstract class BloodInfuserTickAction extends java.lang.Object implements ITickAction<TileBloodInfuser>
ITickAction that can infuse items with blood.| Modifier and Type | Field and Description |
|---|---|
protected static int |
MB_PER_TICK |
| Constructor and Description |
|---|
BloodInfuserTickAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToProduceSlot(TileBloodInfuser tile,
net.minecraft.item.ItemStack itemStack)
Try to add the given item to the production slot.
|
boolean |
canTick(TileBloodInfuser tile,
net.minecraft.item.ItemStack itemStack,
int slot,
int tick)
If this action can tick for the given conditions.
|
net.minecraft.item.ItemStack |
getInfuseStack(TileBloodInfuser tile)
Get the stack in the infusion slot.
|
int |
getRequiredTicks(TileBloodInfuser tile,
int slot)
Get the required conditions for the given conditions.
|
abstract int |
getUnmodifiedRequiredTicks(TileBloodInfuser tile,
int slot)
Get the unmodified required conditions for the given conditions.
|
abstract net.minecraft.item.ItemStack |
willProduceItem(TileBloodInfuser tile)
Get the item of the item that will be produced after infusion.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonTickprotected static final int MB_PER_TICK
public boolean canTick(TileBloodInfuser tile, net.minecraft.item.ItemStack itemStack, int slot, int tick)
ITickActioncanTick in interface ITickAction<TileBloodInfuser>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 net.minecraft.item.ItemStack getInfuseStack(TileBloodInfuser tile)
tile - The tile to check the slot for.public abstract net.minecraft.item.ItemStack willProduceItem(TileBloodInfuser tile)
tile - The tile that performs the infusion.public boolean addToProduceSlot(TileBloodInfuser tile, net.minecraft.item.ItemStack itemStack)
tile - The tile where infusion happened.itemStack - The item to try to put in the production slot.public abstract int getUnmodifiedRequiredTicks(TileBloodInfuser tile, int slot)
tile - The tile entity that ticks.slot - The slot ID for the ticker.public final int getRequiredTicks(TileBloodInfuser tile, int slot)
ITickActiongetRequiredTicks in interface ITickAction<TileBloodInfuser>tile - The tile entity that ticks.slot - The slot ID for the ticker.