Class ShelfBlockEntity
java.lang.Object
net.minecraftforge.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.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>
-
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, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionShelfBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.nbt.CompoundTagGet the update tag.booleanisLocked()voidload(net.minecraft.nbt.CompoundTag tag) Load NBT data.@Nullable net.minecraft.world.level.block.entity.BlockEntitynewBlockEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) Create a block entity for the block.protected voidsaveAdditional(net.minecraft.nbt.CompoundTag tag) Save NBT data.voidsetLocked(boolean locked) Methods inherited from class tech.anonymoushacker1279.immersiveweapons.blockentity.AbstractInventoryBlockEntity
addItem, clearContent, getInventory, getInventorySize, getUpdatePacket, inventoryChanged, removeItemMethods 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, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlock
getListener, getTickerMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
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- theBlockPosthe block is atblockState- theBlockStateof 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:AbstractInventoryBlockEntitySave NBT data.- Overrides:
saveAdditionalin classAbstractInventoryBlockEntity- Parameters:
tag- theCompoundNBTto save
-
load
public void load(net.minecraft.nbt.CompoundTag tag) Description copied from class:AbstractInventoryBlockEntityLoad NBT data.- Overrides:
loadin classAbstractInventoryBlockEntity- Parameters:
tag- theCompoundNBTto load
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()Description copied from class:AbstractInventoryBlockEntityGet the update tag.- Overrides:
getUpdateTagin classAbstractInventoryBlockEntity- Returns:
- CompoundTag
-