Class ClientboundBlockEntityDataPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundBlockEntityDataPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosstatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundBlockEntityDataPacket> private final CompoundTagprivate final BlockEntityType<?> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClientboundBlockEntityDataPacket(BlockPos pos, BlockEntityType<?> type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptioncreate(BlockEntity blockEntity) create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> updateTagSaver) getPos()getTag()getType()voidhandle(ClientGamePacketListener listener) type()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundBlockEntityDataPacket> STREAM_CODEC -
pos
-
type
-
tag
-
-
Constructor Details
-
ClientboundBlockEntityDataPacket
-
-
Method Details
-
create
public static ClientboundBlockEntityDataPacket create(BlockEntity blockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> updateTagSaver) -
create
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getPos
-
getType
-
getTag
-