Interface IPurifierActionRegistry
- All Superinterfaces:
org.cyclops.cyclopscore.init.IRegistry
- All Known Implementing Classes:
PurifierActionRegistry
public interface IPurifierActionRegistry
extends org.cyclops.cyclopscore.init.IRegistry
Registry for
IPurifierAction instances.-
Method Summary
Modifier and TypeMethodDescriptionintcanWork(BlockEntityPurifier tile) Check if he Purifier can work in the current state.booleanisItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the additional slot of the Purifier.booleanisItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Purifier to purify.voidregister(IPurifierAction purifyAction) Register a new repair action.booleanwork(int actionId, BlockEntityPurifier tile) Execute a valid Purifier action for the given Purifier tile.
-
Method Details
-
register
Register a new repair action.- Parameters:
purifyAction- The repair action instance.
-
isItemValidForMainSlot
boolean isItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the Purifier to purify.- Parameters:
itemStack- TheItemStackthat could be inserted.- Returns:
- If the given item can be inserted into the Purifier.
-
isItemValidForAdditionalSlot
boolean isItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted into the additional slot of the Purifier.- Parameters:
itemStack- TheItemStackthat could be inserted.- Returns:
- If the given item can be inserted into the additional slot of the Purifier.
-
canWork
Check if he Purifier can work in the current state.- Parameters:
tile- The Purifier tile.- Returns:
- The action id for the workable action.
-
work
Execute a valid Purifier action for the given Purifier tile.- Parameters:
actionId- -1 if none of the actions apply, otherwise the actionId that applies.tile- The Purifier tile.- Returns:
- If work is done
-