コード例 #1
0
  @Override
  public void writeToNBT(NBTTagCompound data) {
    super.writeToNBT(data);

    data.setBoolean("chicken", chicken);
    data.setBoolean("cow", cow);
    data.setBoolean("pig", pig);
    data.setBoolean("sheep", sheep);
    data.setBoolean("mooshroom", mooshroom);
    data.setBoolean("wolf", wolf);
    data.setBoolean("other", other);
  }
コード例 #2
0
  @Override
  public void readFromNBT(NBTTagCompound data) {
    super.readFromNBT(data);

    chicken = data.getBoolean("chicken");
    cow = data.getBoolean("cow");
    pig = data.getBoolean("pig");
    sheep = data.getBoolean("sheep");
    mooshroom = data.getBoolean("mooshroom");
    wolf = data.getBoolean("wolf");
    other = data.getBoolean("other");
  }
コード例 #3
0
  @Override
  public void readPacketData(DataInputStream data) throws IOException {
    super.readPacketData(data);

    readGuiData(data, null);
  }
コード例 #4
0
  @Override
  public void writePacketData(DataOutputStream data) throws IOException {
    super.writePacketData(data);

    writeGuiData(data);
  }