Class SimpleInventoryBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
All Implemented Interfaces:
net.minecraft.world.Clearable
Direct Known Subclasses:
AvatarBlockEntity, BreweryBlockEntity, ExposedSimpleInventoryBlockEntity, PetalApothecaryBlockEntity, RunicAltarBlockEntity

public abstract class SimpleInventoryBlockEntity extends BotaniaBlockEntity implements net.minecraft.world.Clearable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
  • Field Summary

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

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SimpleInventoryBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected abstract net.minecraft.world.SimpleContainer
     
    final net.minecraft.world.Container
     
    final int
     
    void
    readPacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
     
    void
    writePacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
     

    Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity

    getUpdatePacket, getUpdateTag, loadAdditional, saveAdditional

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

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SimpleInventoryBlockEntity

      protected SimpleInventoryBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • readPacketNBT

      public void readPacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      readPacketNBT in class BotaniaBlockEntity
    • writePacketNBT

      public void writePacketNBT(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      writePacketNBT in class BotaniaBlockEntity
    • inventorySize

      public final int inventorySize()
    • createItemHandler

      protected abstract net.minecraft.world.SimpleContainer createItemHandler()
    • clearContent

      public void clearContent()
      Specified by:
      clearContent in interface net.minecraft.world.Clearable
    • getItemHandler

      public final net.minecraft.world.Container getItemHandler()