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
Modifier and TypeFieldDescriptionprivate final BlockPos
private final CompoundTag
private final BlockEntityType<?>
-
Constructor Summary
ModifierConstructorDescriptionprivate
ClientboundBlockEntityDataPacket
(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) ClientboundBlockEntityDataPacket
(FriendlyByteBuf p_178621_) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(BlockEntity p_195641_) create
(BlockEntity p_195643_, Function<BlockEntity, CompoundTag> p_195644_) getPos()
getTag()
getType()
void
handle
(ClientGamePacketListener p_131703_) void
write
(FriendlyByteBuf p_131706_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
pos
-
type
-
tag
-
-
Constructor Details
-
ClientboundBlockEntityDataPacket
private ClientboundBlockEntityDataPacket(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) -
ClientboundBlockEntityDataPacket
-
-
Method Details
-
create
public static ClientboundBlockEntityDataPacket create(BlockEntity p_195643_, Function<BlockEntity, CompoundTag> p_195644_) -
create
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getPos
-
getType
-
getTag
-