Class VTrappedChestBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.ChestBlockEntity
io.github.vampirestudios.vampirelib.blocks.entity.VChestBlockEntity
io.github.vampirestudios.vampirelib.blocks.entity.VTrappedChestBlockEntity
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.level.block.entity.LidBlockEntity, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable

public class VTrappedChestBlockEntity extends VChestBlockEntity
A VChestBlockEntity extension used for Blueprint's trapped chests.
  • Field Summary

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

    LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeed

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

    level, remove, worldPosition

    Fields inherited from interface net.minecraft.world.Container

    LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    VTrappedChestBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    signalOpenCount(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int int1, int int2)
     

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

    createMenu, getContainerSize, getDefaultName, getItems, getOpenCount, getOpenNess, lidAnimateTick, load, recheckOpen, saveAdditional, setItems, startOpen, stopOpen, swapContents, triggerEvent

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

    canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, stillValid, tryLoadLootTable, trySaveLootTable, unpackLootTable

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

    canUnlock, getCustomName, getDisplayName, getName, setCustomName

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

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName
  • Constructor Details

    • VTrappedChestBlockEntity

      public VTrappedChestBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • signalOpenCount

      protected void signalOpenCount(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int int1, int int2)
      Overrides:
      signalOpenCount in class net.minecraft.world.level.block.entity.ChestBlockEntity