コード例 #1
0
 /**
  * Save information about this structure piece to the given tag.
  *
  * @param structurePiece The structure piece to save.
  * @param compound The target tag.
  */
 public void save(T structurePiece, CompoundTag compound) {
   compound.putInt("GD", structurePiece.getGD());
   compound.putInt("O", structurePiece.getNumericOrientation());
   StructureBoundingBox boundingBox = structurePiece.getBoundingBox();
   int[] bb = new int[6];
   bb[0] = boundingBox.getMin().getBlockX();
   bb[1] = boundingBox.getMin().getBlockY();
   bb[2] = boundingBox.getMin().getBlockZ();
   bb[3] = boundingBox.getMax().getBlockX();
   bb[4] = boundingBox.getMax().getBlockY();
   bb[5] = boundingBox.getMax().getBlockZ();
   compound.putIntArray("BB", bb);
 }