mirror of https://github.com/LOOHP/Limbo.git
22 lines
452 B
Java
22 lines
452 B
Java
package com.loohp.limbo.Server.Packets;
|
|
|
|
import java.io.DataInputStream;
|
|
import java.io.IOException;
|
|
|
|
public class PacketPlayInHeldItemChange extends PacketIn {
|
|
|
|
private final short slot;
|
|
|
|
public PacketPlayInHeldItemChange(short slot) {
|
|
this.slot = slot;
|
|
}
|
|
|
|
public PacketPlayInHeldItemChange(DataInputStream in) throws IOException {
|
|
this(in.readShort());
|
|
}
|
|
|
|
public short getSlot() {
|
|
return slot;
|
|
}
|
|
}
|