Class BlockEntityColossalChest

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
org.cyclops.colossalchests.blockentity.BlockEntityColossalChest
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

public class BlockEntityColossalChest extends org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity implements net.minecraft.world.MenuProvider, net.minecraft.world.level.block.entity.LidBlockEntity
A machine that can infuse things with blood.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockEntityColossalChest(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInterface(net.minecraft.core.Vec3i blockPos)
     
    protected int
     
    boolean
    canInteractWith(net.minecraft.world.entity.player.Player entityPlayer)
     
    protected org.cyclops.cyclopscore.inventory.LargeInventory
     
    protected org.cyclops.cyclopscore.inventory.LargeInventory
     
    net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player playerEntity)
     
    static void
    detectStructure(net.minecraft.world.level.LevelReader 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.
    protected void
     
    <T> net.minecraftforge.common.util.LazyOptional<T>
    getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.core.Direction facing)
     
    net.minecraft.network.chat.Component
     
    List<net.minecraft.core.Vec3i>
     
    org.cyclops.cyclopscore.inventory.INBTInventory
     
    org.cyclops.cyclopscore.inventory.SimpleInventory
     
     
    static net.minecraft.core.Vec3i
     
    float
    getOpenNess(float value)
     
    net.minecraft.world.phys.AABB
     
    net.minecraft.world.phys.Vec3
     
    net.minecraft.core.Direction
     
    net.minecraft.core.Vec3i
     
    int
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    net.minecraft.nbt.CompoundTag
     
    boolean
     
    protected boolean
     
    boolean
     
    static void
    lidAnimateTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, BlockEntityColossalChest blockEntity)
     
    void
    read(net.minecraft.nbt.CompoundTag tag)
     
    void
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
     
    void
    setCenter(net.minecraft.world.phys.Vec3 center)
     
    void
    setCustomName(net.minecraft.network.chat.Component name)
     
    void
    setInventory(org.cyclops.cyclopscore.inventory.SimpleInventory inventory)
     
    void
    setLastValidInventory(org.cyclops.cyclopscore.inventory.SimpleInventory lastValidInventory)
     
    void
     
    void
    setRenderOffset(net.minecraft.world.phys.Vec3 renderOffset)
     
    void
    setRotation(net.minecraft.core.Direction rotation)
     
    void
    setSize(net.minecraft.core.Vec3i size)
    Set the size.
    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)
     
    void
    startOpen(net.minecraft.world.entity.player.Player player)
     
    void
    stopOpen(net.minecraft.world.entity.player.Player player)
     
    boolean
    triggerEvent(int eventType, int value)
     

    Methods inherited from class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity

    addCapabilityInternal, addCapabilitySided, getStoredCapabilities, getUpdateBackoff, getUpdateBackoffTicks, invalidateCaps, load, onDataPacket, onDirty, onLoad, onUpdateReceived, readGeneratedFieldsFromNBT, sendUpdate, setUpdateBackoff, shouldSendUpdate, transformFacingForRotation, unsetSendUpdate, writeGeneratedFieldsToNBT, writeToItemStack

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cyclops.cyclopscore.blockentity.IBlockEntityDelayedTickable

    reduceUpdateBackoff, sendImmediateUpdate

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, handleUpdateTag, requestModelDataUpdate, serializeNBT
  • Constructor Details

    • BlockEntityColossalChest

      public BlockEntityColossalChest(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • getSize

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

      public void setSize(net.minecraft.core.Vec3i size)
      Set the size. This will also handle the change in inventory size.
      Parameters:
      size - the size to set
    • setMaterial

      public void setMaterial(ChestMaterial material)
    • getMaterial

      public ChestMaterial getMaterial()
    • getLastValidInventory

      public org.cyclops.cyclopscore.inventory.SimpleInventory getLastValidInventory()
    • setLastValidInventory

      public void setLastValidInventory(org.cyclops.cyclopscore.inventory.SimpleInventory lastValidInventory)
    • getSizeSingular

      public int getSizeSingular()
    • isClientSide

      protected boolean isClientSide()
    • constructInventory

      protected org.cyclops.cyclopscore.inventory.LargeInventory constructInventory()
    • constructInventoryDebug

      protected org.cyclops.cyclopscore.inventory.LargeInventory constructInventoryDebug()
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • read

      public void read(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      read in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • calculateInventorySize

      protected int calculateInventorySize()
    • setInventory

      public void setInventory(org.cyclops.cyclopscore.inventory.SimpleInventory inventory)
    • ensureInventoryInitialized

      protected void ensureInventoryInitialized()
    • getInventory

      public org.cyclops.cyclopscore.inventory.INBTInventory getInventory()
    • getCapability

      public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.core.Direction facing)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider
      Overrides:
      getCapability in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • canInteractWith

      public boolean canInteractWith(net.minecraft.world.entity.player.Player entityPlayer)
      Overrides:
      canInteractWith in class org.cyclops.cyclopscore.blockentity.CyclopsBlockEntity
    • getRenderBoundingBox

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

      public void setCenter(net.minecraft.world.phys.Vec3 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.world.phys.Vec3 getRenderOffset()
    • setRenderOffset

      public void setRenderOffset(net.minecraft.world.phys.Vec3 renderOffset)
    • detectStructure

      public static void detectStructure(net.minecraft.world.level.LevelReader 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
    • isStructureComplete

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

      public static net.minecraft.core.Vec3i getMaxSize()
    • hasCustomName

      public boolean hasCustomName()
    • setCustomName

      public void setCustomName(net.minecraft.network.chat.Component name)
    • addInterface

      public void addInterface(net.minecraft.core.Vec3i blockPos)
    • getInterfaceLocations

      public List<net.minecraft.core.Vec3i> getInterfaceLocations()
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider
    • 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
    • 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, BlockEntityColossalChest blockEntity)
    • getOpenNess

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