public interface IBloodChestRepairAction
IBloodChestRepairActionRegistry.| Modifier and Type | Method and Description |
|---|---|
boolean |
canRepair(net.minecraft.item.ItemStack itemStack,
int tick)
Check if a given item can be repaired.
|
boolean |
isItemValidForSlot(net.minecraft.item.ItemStack itemStack)
Check if the given item can be inserted into the Blood Chest.
|
org.apache.commons.lang3.tuple.Pair<java.lang.Float,net.minecraft.item.ItemStack> |
repair(net.minecraft.item.ItemStack itemStack,
java.util.Random random,
boolean doAction,
boolean isBulk)
The repair logic for a given item for one tick.
|
boolean isItemValidForSlot(net.minecraft.item.ItemStack itemStack)
itemStack - The ItemStack that could be inserted.boolean canRepair(net.minecraft.item.ItemStack itemStack,
int tick)
itemStack - The item that could be repaired.tick - The current tick inside the Blood Chest.org.apache.commons.lang3.tuple.Pair<java.lang.Float,net.minecraft.item.ItemStack> repair(net.minecraft.item.ItemStack itemStack,
java.util.Random random,
boolean doAction,
boolean isBulk)
itemStack - The item to repair.random - A random instance.doAction - If the actual repair action should be performed, otherwise this is just a simulation.isBulk - If the repairing container repairs things in bulk.