public interface IBloodChestRepairActionRegistry
extends org.cyclops.cyclopscore.init.IRegistry
IBloodChestRepairAction instances.| Modifier and Type | Method and Description |
|---|---|
int |
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.
|
void |
register(IBloodChestRepairAction repairAction)
Register a new repair action.
|
float |
repair(net.minecraft.item.ItemStack itemStack,
java.util.Random random,
int actionID,
boolean doAction,
boolean isBulk)
The repair logic for a given item for one tick.
|
void |
setBlacklist(java.lang.String[] blacklist)
Set the blacklist of item names.
|
void register(IBloodChestRepairAction repairAction)
repairAction - The repair action instance.boolean isItemValidForSlot(net.minecraft.item.ItemStack itemStack)
itemStack - The ItemStack that could be inserted.int canRepair(net.minecraft.item.ItemStack itemStack,
int tick)
itemStack - The item that could be repaired.tick - The current tick inside the Blood Chest.float repair(net.minecraft.item.ItemStack itemStack,
java.util.Random random,
int actionID,
boolean doAction,
boolean isBulk)
itemStack - The item to repair.random - A random instance.actionID - the ID of the action to call.doAction - If the actual repair action should be performed, otherwise this is just a simulation.isBulk - If the repairing container repairs things in bulk.void setBlacklist(java.lang.String[] blacklist)
blacklist - The names of items that are not allowed into the blood chest.