@Override
  public void writeDesc(MCDataOutput packet) {
    super.writeDesc(packet);
    packet.writeBoolean(input);
    packet.writeByte(dyeID);

    if (getLink() != null) {
      packet.writeBoolean(true);
      NBTTagCompound nbt = new NBTTagCompound();
      new VectorWorld(getLink().world(), getLink().x(), getLink().y(), getLink().z())
          .writeToNBT(nbt);
      packet.writeNBTTagCompound(nbt);
      packet.writeByte(getLink().placementSide.ordinal());
    } else {
      packet.writeBoolean(false);
    }
  }
 @Override
 public void writeDesc(MCDataOutput packet) {
   packet.writeByte(clientConnMap());
 }
예제 #3
0
 @Override
 public void write(MCDataOutput output) {
   output.writeShort(mValue);
   output.writeShort(mMax);
 }