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 java.lang.Object
implements IPacketCustomId<net.minecraft.client.network.ClientPlayNetworkHandler>
  • Constructor Summary

    Constructors 
    Constructor Description
    CompactDataPacketToClient()
    Used for reading
    CompactDataPacketToClient​(int serverExpectedId, byte[] payload)  
  • Method Summary

    Modifier and Type Method Description
    void apply​(net.minecraft.client.network.ClientPlayNetworkHandler netHandler)  
    int getReadId()  
    void read​(net.minecraft.network.PacketByteBuf buf)  
    void write​(net.minecraft.network.PacketByteBuf buf)  

    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.Packet

    isWritingErrorSkippable
  • Constructor Details

  • 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.
    • read

      public void read​(net.minecraft.network.PacketByteBuf buf) throws java.io.IOException
      Specified by:
      read in interface net.minecraft.network.Packet<net.minecraft.client.network.ClientPlayNetworkHandler>
      Throws:
      java.io.IOException
    • write

      public void write​(net.minecraft.network.PacketByteBuf buf) throws java.io.IOException
      Specified by:
      write in interface net.minecraft.network.Packet<net.minecraft.client.network.ClientPlayNetworkHandler>
      Throws:
      java.io.IOException
    • apply

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