package net.minecraft.server; import java.io.IOException; public class PacketPlayInEntityAction implements Packet<PacketListenerPlayIn> { private int a; private PacketPlayInEntityAction.EnumPlayerAction animation; private int c; public PacketPlayInEntityAction() {} @Override public void a(PacketDataSerializer packetdataserializer) throws IOException { this.a = packetdataserializer.i(); this.animation = (PacketPlayInEntityAction.EnumPlayerAction) packetdataserializer.a(PacketPlayInEntityAction.EnumPlayerAction.class); this.c = packetdataserializer.i(); } @Override public void b(PacketDataSerializer packetdataserializer) throws IOException { packetdataserializer.d(this.a); packetdataserializer.a((Enum) this.animation); packetdataserializer.d(this.c); } public void a(PacketListenerPlayIn packetlistenerplayin) { packetlistenerplayin.a(this); } public PacketPlayInEntityAction.EnumPlayerAction c() { return this.animation; } public int d() { return this.c; } public static enum EnumPlayerAction { PRESS_SHIFT_KEY, RELEASE_SHIFT_KEY, STOP_SLEEPING, START_SPRINTING, STOP_SPRINTING, START_RIDING_JUMP, STOP_RIDING_JUMP, OPEN_INVENTORY, START_FALL_FLYING; private EnumPlayerAction() {} } }