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 Type
    Method
    Description
    int
    Check if he Purifier can work in the current state.
    boolean
    isItemValidForAdditionalSlot(net.minecraft.world.item.ItemStack itemStack)
    Check if the given item can be inserted into the additional slot of the Purifier.
    boolean
    isItemValidForMainSlot(net.minecraft.world.item.ItemStack itemStack)
    Check if the given item can be inserted into the Purifier to purify.
    void
    register(IPurifierAction purifyAction)
    Register a new repair action.
    boolean
    work(int actionId, BlockEntityPurifier tile)
    Execute a valid Purifier action for the given Purifier tile.
  • Method Details

    • register

      void register(IPurifierAction purifyAction)
      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 - The ItemStack that 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 - The ItemStack that could be inserted.
      Returns:
      If the given item can be inserted into the additional slot of the Purifier.
    • canWork

      int canWork(BlockEntityPurifier tile)
      Check if he Purifier can work in the current state.
      Parameters:
      tile - The Purifier tile.
      Returns:
      The action id for the workable action.
    • work

      boolean work(int actionId, BlockEntityPurifier tile)
      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