Class CustomItemDisplayContextTest.ItemHangerBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraftforge.debug.client.model.CustomItemDisplayContextTest.ItemHangerBlockEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
- Enclosing class:
- CustomItemDisplayContextTest
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends 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
ConstructorDescriptionItemHangerBlockEntity
(BlockPos blockPos, BlockState blockState) ItemHangerBlockEntity
(BlockEntityType<?> type, BlockPos blockPos, BlockState blockState) -
Method Summary
Modifier and TypeMethodDescription@Nullable Packet<ClientGamePacketListener>
void
Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag()
, is received on the client.void
load
(CompoundTag tag) void
Called when you receive a TileEntityData packet for the location this TileEntity is currently in.protected void
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.minecraftforge.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.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
heldItem
-
-
Constructor Details
-
ItemHangerBlockEntity
-
ItemHangerBlockEntity
-
-
Method Details
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
handleUpdateTag
Description copied from interface:IForgeBlockEntity
Called when the chunk's TE update tag, gotten fromBlockEntity.getUpdateTag()
, is received on the client.Used to handle this tag in a special way. By default this simply calls
BlockEntity.load(CompoundTag)
.- Parameters:
tag
- TheCompoundTag
sent fromBlockEntity.getUpdateTag()
-
onDataPacket
Description copied from interface:IForgeBlockEntity
Called when you receive a TileEntityData packet for the location this TileEntity is currently in. On the client, the NetworkManager will always be the remote server. On the server, it will be whomever is responsible for sending the packet.- Parameters:
net
- The NetworkManager the packet originated frompkt
- The data packet
-
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-