Class PacketDescription

java.lang.Object
me.desht.pneumaticcraft.common.network.LocationIntPacket
me.desht.pneumaticcraft.common.network.PacketDescription

public class PacketDescription extends LocationIntPacket
Sent to: CLIENT This is the primary mechanism for syncing block entity data to clients when it changes.
  • Constructor Details

    • PacketDescription

      public PacketDescription(IDescSynced te, boolean fullSync)
    • 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:
      toBytes in class LocationIntPacket
    • process

      public void process(Supplier<net.minecraftforge.network.NetworkEvent.Context> ctx)
    • 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()