Class CompactDataPacketToClient

java.lang.Object
alexiil.mc.lib.net.impl.CompactDataPacketToClient
All Implemented Interfaces:
IPacketCustomId<net.minecraft.client.network.ClientPlayNetworkHandler>, net.minecraft.network.Packet<net.minecraft.client.network.ClientPlayNetworkHandler>

public class CompactDataPacketToClient extends Object implements IPacketCustomId<net.minecraft.client.network.ClientPlayNetworkHandler>
  • Constructor Details

    • CompactDataPacketToClient

      public CompactDataPacketToClient(int serverExpectedId, byte[] payload)
    • CompactDataPacketToClient

      public CompactDataPacketToClient(net.minecraft.network.PacketByteBuf buf)
      Used for reading
  • Method Details

    • getReadId

      public int getReadId()
      Specified by:
      getReadId in interface IPacketCustomId<net.minecraft.client.network.ClientPlayNetworkHandler>
      Returns:
      The integer ID that the other side is expecting.
    • write

      public void write(net.minecraft.network.PacketByteBuf buf)
      Specified by:
      write in interface net.minecraft.network.Packet<net.minecraft.client.network.ClientPlayNetworkHandler>
    • apply

      public void apply(net.minecraft.client.network.ClientPlayNetworkHandler netHandler)
      Specified by:
      apply in interface net.minecraft.network.Packet<net.minecraft.client.network.ClientPlayNetworkHandler>