Class PacketDescription
java.lang.Object
me.desht.pneumaticcraft.common.network.LocationIntPacket
me.desht.pneumaticcraft.common.network.PacketDescription
Sent to: CLIENT
This is the primary mechanism for syncing block entity data to clients when it changes.
-
Field Summary
Fields inherited from class me.desht.pneumaticcraft.common.network.LocationIntPacket
pos -
Constructor Summary
ConstructorsConstructorDescriptionPacketDescription(IDescSynced te, boolean fullSync) PacketDescription(net.minecraft.nbt.CompoundTag compound) PacketDescription(net.minecraft.network.FriendlyByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasData()voidvoidprocessPacket(net.minecraft.world.level.block.entity.BlockEntity blockEntity) voidtoBytes(net.minecraft.network.FriendlyByteBuf buf) net.minecraft.nbt.CompoundTagwriteNBT(net.minecraft.nbt.CompoundTag compound) These two methods are only used for initial chunk sending (getUpdateTag() and handleUpdateTag())
-
Constructor Details
-
PacketDescription
-
PacketDescription
public PacketDescription(net.minecraft.network.FriendlyByteBuf buf) -
PacketDescription
public PacketDescription(net.minecraft.nbt.CompoundTag compound)
-
-
Method Details
-
toBytes
public void toBytes(net.minecraft.network.FriendlyByteBuf buf) - Overrides:
toBytesin classLocationIntPacket
-
process
-
processPacket
public void processPacket(net.minecraft.world.level.block.entity.BlockEntity blockEntity) -
writeNBT
public net.minecraft.nbt.CompoundTag writeNBT(net.minecraft.nbt.CompoundTag compound) These two methods are only used for initial chunk sending (getUpdateTag() and handleUpdateTag()) -
hasData
public boolean hasData()
-