Interface IBloodChestRepairAction
- All Known Implementing Classes:
AnvilRepairAction,DamageableItemRepairAction
public interface IBloodChestRepairAction
Actions that can be registered in the
IBloodChestRepairActionRegistry.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanRepair(net.minecraft.world.item.ItemStack itemStack, int tick) Check if a given item can be repaired.booleanisItemValidForSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Blood Chest.org.apache.commons.lang3.tuple.Pair<Float,net.minecraft.world.item.ItemStack> repair(net.minecraft.world.item.ItemStack itemStack, Random random, boolean doAction, boolean isBulk) The repair logic for a given item for one tick.
-
Method Details
-
isItemValidForSlot
boolean isItemValidForSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Blood Chest.- Parameters:
itemStack- TheItemStackthat could be inserted.- Returns:
- If the given item can be inserted into the given slot of the Blood Chest.
-
canRepair
boolean canRepair(net.minecraft.world.item.ItemStack itemStack, int tick) Check if a given item can be repaired.- Parameters:
itemStack- The item that could be repaired.tick- The current tick inside the Blood Chest.- Returns:
- If the given item can be repaired.
-
repair
org.apache.commons.lang3.tuple.Pair<Float,net.minecraft.world.item.ItemStack> repair(net.minecraft.world.item.ItemStack itemStack, Random random, boolean doAction, boolean isBulk) The repair logic for a given item for one tick.- Parameters:
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.- Returns:
- Pair of blood usage multiplier and new itemstack.
-