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 Object
implements IPacketCustomId<net.minecraft.server.network.ServerPlayNetworkHandler>
-
Constructor Summary
ConstructorDescriptionCompactDataPacketToServer(int clientExpectedId, byte[] payload)
CompactDataPacketToServer(net.minecraft.network.PacketByteBuf buf)
Used for reading -
Method Summary
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
-
CompactDataPacketToServer
public CompactDataPacketToServer(int clientExpectedId, byte[] payload) -
CompactDataPacketToServer
public CompactDataPacketToServer(net.minecraft.network.PacketByteBuf buf)Used for reading
-
-
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.
-
write
public void write(net.minecraft.network.PacketByteBuf buf)- Specified by:
write
in interfacenet.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
-
apply
public void apply(net.minecraft.server.network.ServerPlayNetworkHandler netHandler)- Specified by:
apply
in interfacenet.minecraft.network.Packet<net.minecraft.server.network.ServerPlayNetworkHandler>
-