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 BlockPos
private final CompoundTag
private final BlockEntityType
<?> Used only for vanilla block entities -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ClientboundBlockEntityDataPacket
(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(BlockEntity pBlockEntity) create
(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) getPos()
getTag()
getType()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
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, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundBlockEntityDataPacket> STREAM_CODEC -
pos
-
type
Used only for vanilla block entities -
tag
-
-
Constructor Details
-
ClientboundBlockEntityDataPacket
private ClientboundBlockEntityDataPacket(BlockPos p_195637_, BlockEntityType<?> p_195638_, CompoundTag p_195639_)
-
-
Method Details
-
create
public static ClientboundBlockEntityDataPacket create(BlockEntity pBlockEntity, BiFunction<BlockEntity, RegistryAccess, CompoundTag> pDataGetter) -
create
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getPos
-
getType
-
getTag
-