Package alexiil.mc.lib.net.impl
Class CompactDataPacketToServer
java.lang.Object
alexiil.mc.lib.net.impl.CompactDataPacketToServer
- All Implemented Interfaces:
IPacketCustomId<net.minecraft.server.network.ServerPlayNetworkHandler>
,net.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
public class CompactDataPacketToServer extends java.lang.Object implements IPacketCustomId<net.minecraft.server.network.ServerPlayNetworkHandler>
-
Constructor Summary
Constructors Constructor Description CompactDataPacketToServer()
Used for readingCompactDataPacketToServer(int clientExpectedId, byte[] payload)
-
Method Summary
-
Constructor Details
-
CompactDataPacketToServer
public CompactDataPacketToServer()Used for reading -
CompactDataPacketToServer
public CompactDataPacketToServer(int clientExpectedId, byte[] payload)
-
-
Method Details
-
getReadId
public int getReadId()- Specified by:
getReadId
in interfaceIPacketCustomId<net.minecraft.server.network.ServerPlayNetworkHandler>
- 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 interfacenet.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
- Throws:
java.io.IOException
-
write
public void write(net.minecraft.network.PacketByteBuf buf) throws java.io.IOException- Specified by:
write
in interfacenet.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
- Throws:
java.io.IOException
-
apply
public void apply(net.minecraft.server.network.ServerPlayNetworkHandler netHandler)- Specified by:
apply
in interfacenet.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
-