Class BlockEntityColossalBloodChest

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.level.block.entity.LidBlockEntity, 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<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>

public class BlockEntityColossalBloodChest extends BlockEntityWorking<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat> implements net.minecraft.world.MenuProvider, net.minecraft.world.level.block.entity.LidBlockEntity
A machine that can infuse things with blood.
  • Field Details

    • SLOTS_CHEST

      public static final int SLOTS_CHEST
      The amount of slots in the chest.
      See Also:
    • SLOTS

      public static final int SLOTS
      The total amount of slots.
      See Also:
    • SLOT_CONTAINER

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

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

      public static final int MAX_EFFICIENCY
      See Also:
    • METADATA

      public static org.cyclops.evilcraft.blockentity.BlockEntityColossalBloodChest.Metadata METADATA
    • UPGRADEEVENT_SPEED

      public static final Upgrades.UpgradeEventType UPGRADEEVENT_SPEED
    • UPGRADEEVENT_BLOODUSAGE

      public static final Upgrades.UpgradeEventType UPGRADEEVENT_BLOODUSAGE
    • TICKERS

      public static int TICKERS
    • exactSizeValidator

      protected static final org.cyclops.cyclopscore.block.multi.ExactSizeValidator exactSizeValidator
  • Constructor Details

    • BlockEntityColossalBloodChest

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

    • getCubeDetector

      public static org.cyclops.cyclopscore.block.multi.CubeDetector getCubeDetector()
    • addItemHandlerCapabilities

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

      protected void resetSlotHistory()
    • createTank

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

      public boolean isStructureComplete()
      Returns:
      If the structure is valid.
    • getSizeSingular

      public int getSizeSingular()
    • getSize

      public net.minecraft.core.Vec3i getSize()
      Returns:
      the size
    • setSize

      public void setSize(net.minecraft.core.Vec3i size)
      Parameters:
      size - the size to set
    • getTileWorkingMetadata

      public org.cyclops.evilcraft.blockentity.BlockEntityColossalBloodChest.Metadata getTileWorkingMetadata()
      Specified by:
      getTileWorkingMetadata in class BlockEntityWorking<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>
    • 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<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>
      Returns:
      If it is valid and can work.
    • canWork

      public static boolean canWork(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location)
      Check if the spirit furnace on the given location is valid and can start working.
      Parameters:
      world - The world.
      location - The location.
      Returns:
      If it is valid.
    • getWorkTicker

      protected int getWorkTicker()
      Specified by:
      getWorkTicker in class BlockEntityWorking<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>
    • getNewState

      public int getNewState()
      Description copied from class: BlockEntityTickingTankInventory
      Get the new (numerical) state for this tile entity.
      Overrides:
      getNewState in class BlockEntityWorking<BlockEntityColossalBloodChest,org.apache.commons.lang3.mutable.MutableFloat>
      Returns:
      The new state.
    • onStateChanged

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

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

      public boolean triggerEvent(int eventType, int value)
      Overrides:
      triggerEvent in class net.minecraft.world.level.block.entity.BlockEntity
    • startOpen

      public void startOpen(net.minecraft.world.entity.player.Player player)
    • stopOpen

      public void stopOpen(net.minecraft.world.entity.player.Player player)
    • recheckOpen

      public void recheckOpen()
    • signalOpenCount

      protected void signalOpenCount(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, int p_155336_, int value)
    • lidAnimateTick

      public static void lidAnimateTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, BlockEntityColossalBloodChest blockEntity)
    • getOpenNess

      public float getOpenNess(float value)
      Specified by:
      getOpenNess in interface net.minecraft.world.level.block.entity.LidBlockEntity
    • getRenderBoundingBox

      public net.minecraft.world.phys.AABB getRenderBoundingBox()
      Specified by:
      getRenderBoundingBox in interface net.minecraftforge.common.extensions.IForgeBlockEntity
    • setCenter

      public void setCenter(net.minecraft.core.BlockPos center)
    • setRotation

      public void setRotation(net.minecraft.core.Direction rotation)
    • getRotation

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

      public net.minecraft.core.Vec3i getRenderOffset()
    • 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
    • detectStructure

      public static void detectStructure(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location, net.minecraft.core.Vec3i size, boolean valid, net.minecraft.core.BlockPos originCorner)
      Callback for when a structure has been detected for a spirit furnace block.
      Parameters:
      world - The world.
      location - The location of one block of the structure.
      size - The size of the structure.
      valid - If the structure is being validated(/created), otherwise invalidated.
      originCorner - The origin corner
    • getDisplayName

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