java.lang.Object
net.neoforged.neoforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
tech.anonymoushacker1279.immersiveweapons.blockentity.AbstractInventoryBlockEntity
tech.anonymoushacker1279.immersiveweapons.blockentity.ShelfBlockEntity
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.level.block.EntityBlock, net.neoforged.neoforge.common.capabilities.ICapabilityProvider, net.neoforged.neoforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.neoforged.neoforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.neoforged.neoforge.common.extensions.IBlockEntityExtension, net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class ShelfBlockEntity extends AbstractInventoryBlockEntity
  • Nested Class Summary

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

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

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

    level, remove, worldPosition
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    net.minecraft.nbt.CompoundTag
    Get the update tag.
    boolean
     
    void
    load(net.minecraft.nbt.CompoundTag tag)
    Load NBT data.
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
    Create a block entity for the block.
    protected void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
    Save NBT data.
    void
    setLocked(boolean locked)
     

    Methods inherited from class tech.anonymoushacker1279.immersiveweapons.blockentity.AbstractInventoryBlockEntity

    addItem, clearContent, getInventory, getInventorySize, getUpdatePacket, inventoryChanged, removeItem

    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, triggerEvent

    Methods inherited from class net.neoforged.neoforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    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.level.block.EntityBlock

    getListener, getTicker

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT

    Methods inherited from interface net.neoforged.neoforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability
  • Constructor Details

    • ShelfBlockEntity

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

    • newBlockEntity

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity newBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
      Create a block entity for the block.
      Parameters:
      blockPos - the BlockPos the block is at
      blockState - the BlockState of the block
      Returns:
      BlockEntity
    • isLocked

      public boolean isLocked()
    • setLocked

      public void setLocked(boolean locked)
    • saveAdditional

      protected void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Description copied from class: AbstractInventoryBlockEntity
      Save NBT data.
      Overrides:
      saveAdditional in class AbstractInventoryBlockEntity
      Parameters:
      tag - the CompoundNBT to save
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Description copied from class: AbstractInventoryBlockEntity
      Load NBT data.
      Overrides:
      load in class AbstractInventoryBlockEntity
      Parameters:
      tag - the CompoundNBT to load
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Description copied from class: AbstractInventoryBlockEntity
      Get the update tag.
      Overrides:
      getUpdateTag in class AbstractInventoryBlockEntity
      Returns:
      CompoundTag