Class BlockEntityBloodInfuser.Metadata

java.lang.Object
org.cyclops.evilcraft.core.blockentity.BlockEntityWorking.Metadata
org.cyclops.evilcraft.blockentity.BlockEntityBloodInfuser.Metadata
Enclosing class:
BlockEntityBloodInfuser

public static class BlockEntityBloodInfuser.Metadata extends BlockEntityWorking.Metadata
  • Method Details

    • canConsume

      public boolean canConsume(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world)
      Description copied from class: BlockEntityWorking.Metadata
      Check if the given item can be infused.
      Specified by:
      canConsume in class BlockEntityWorking.Metadata
      Parameters:
      itemStack - The item to check.
      world - The world.
      Returns:
      If it can be infused.
    • canInsertItem

      public boolean canInsertItem(net.minecraft.world.Container inventory, int slot, net.minecraft.world.item.ItemStack itemStack)
      Description copied from class: BlockEntityWorking.Metadata
      Check if the given item can be inserted.
      Overrides:
      canInsertItem in class BlockEntityWorking.Metadata
      Parameters:
      inventory - The tile inventory.
      slot - The slot id.
      itemStack - The item that is being inserted.
      Returns:
      If it can be inserted.
    • getBlock

      protected net.minecraft.world.level.block.Block getBlock()
      Specified by:
      getBlock in class BlockEntityWorking.Metadata
    • getConsumeSlot

      public int getConsumeSlot()
      Get the id of the infusion slot.
      Returns:
      id of the infusion slot.
    • getProduceSlot

      public int getProduceSlot()
      Get the id of the result slot.
      Returns:
      id of the result slot.