Class BlockEntitySpiritReanimator

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
All Implemented Interfaces:
net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable, org.cyclops.cyclopscore.persist.IDirtyMarkListener, org.cyclops.cyclopscore.persist.nbt.INBTProvider, IUpgradable<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>

public class BlockEntitySpiritReanimator extends BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble> implements net.minecraft.world.MenuProvider
A furnace that is able to cook spirits for their inner entity drops.
  • Field Details

    • SLOT_CONTAINER

      public static final int SLOT_CONTAINER
      The id of the fluid container drainer slot.
      See Also:
    • SLOT_BOX

      public static final int SLOT_BOX
      The id of the box slot.
      See Also:
    • SLOT_EGG

      public static final int SLOT_EGG
      The id of the egg slot.
      See Also:
    • SLOTS_OUTPUT

      public static final int SLOTS_OUTPUT
      The id of the output slot.
      See Also:
    • SLOTS

      public static final int SLOTS
      The total amount of slots in this machine.
      See Also:
    • METADATA

      public static org.cyclops.evilcraft.blockentity.BlockEntitySpiritReanimator.Metadata METADATA
    • LIQUID_PER_SLOT

      public static final int LIQUID_PER_SLOT
      The capacity of the tank.
      See Also:
    • TICKERS

      public static int TICKERS
    • UPGRADEEVENT_SPEED

      public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
    • UPGRADEEVENT_BLOODUSAGE

      public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
  • Constructor Details

    • BlockEntitySpiritReanimator

      public BlockEntitySpiritReanimator(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
      Make a new instance.
  • Method Details

    • addItemHandlerCapabilities

      protected void addItemHandlerCapabilities()
      Overrides:
      addItemHandlerCapabilities in class BlockEntityTankInventory
    • createInventory

      protected org.cyclops.cyclopscore.inventory.SimpleInventory createInventory(int inventorySize, int stackSize)
      Overrides:
      createInventory in class BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>
    • getRotation

      public net.minecraft.core.Direction getRotation()
      Overrides:
      getRotation in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • createTank

      protected org.cyclops.cyclopscore.fluid.SingleUseTank createTank(int tankSize)
      Overrides:
      createTank in class BlockEntityTankInventory
    • getWorkTicker

      protected int getWorkTicker()
      Specified by:
      getWorkTicker in class BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>
    • getEntityType

      @Nullable public net.minecraft.world.entity.EntityType<?> getEntityType()
      Get the entity type that is contained in a box.
      Returns:
      The entity type or null if no box or invalid box.
    • getAllowedCookItem

      public static net.minecraft.world.item.Item getAllowedCookItem()
      Get the allowed cooking item for this furnace.
      Returns:
      The allowed item.
    • getConsumeSlot

      public int getConsumeSlot()
      Get the id of the box slot.
      Returns:
      id of the box slot.
    • getTileWorkingMetadata

      public org.cyclops.evilcraft.blockentity.BlockEntitySpiritReanimator.Metadata getTileWorkingMetadata()
      Specified by:
      getTileWorkingMetadata in class BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>
    • canWork

      public boolean canWork()
      Description copied from class: BlockEntityWorking
      Check if this tile is valid and can start working. Mostly defined by environmental parameters.
      Specified by:
      canWork in class BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>
      Returns:
      If it is valid and can work.
    • onStateChanged

      public void onStateChanged()
      Description copied from class: BlockEntityTickingTankInventory
      What needs to happen when the (numerical) state is changed.
      Overrides:
      onStateChanged in class BlockEntityWorking<BlockEntitySpiritReanimator,org.apache.commons.lang3.mutable.MutableDouble>
    • createMenu

      @Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider