コード例 #1
0
  @Override
  public void build(PacketInputStream input) throws IOException {
    this.window = input.readUnsignedByte();

    short length = input.readShort();
    this.stacks = new ItemStack[length];
    for (int i = 0; i < length; i++) {
      stacks[i] = input.readItemStack();
    }
  }
コード例 #2
0
 @Override
 public void build(PacketInputStream input) throws IOException {
   super.build(input);
   this.yaw = (input.readByte() * 360) / 256D;
 }