コード例 #1
0
 public void func_1005_a(int i, int j, int k, TileEntity tileentity) {
   ChunkPosition chunkposition = new ChunkPosition(i, j, k);
   tileentity.field_824_e = field_1537_d;
   tileentity.field_823_f = field_1531_j * 16 + i;
   tileentity.field_822_g = j;
   tileentity.field_821_h = field_1530_k * 16 + k;
   if (func_1008_a(i, j, k) == 0
       || !(Block.field_345_n[func_1008_a(i, j, k)] instanceof BlockContainer)) {
     return;
   } else {
     tileentity.func_31004_j();
     field_1529_l.put(chunkposition, tileentity);
     return;
   }
 }
コード例 #2
0
ファイル: Chunk.java プロジェクト: talmor/WorldDownloader
 public void setChunkBlockTileEntity(int i, int j, int k, TileEntity tileentity) {
   ChunkPosition chunkposition = new ChunkPosition(i, j, k);
   tileentity.worldObj = worldObj;
   tileentity.xCoord = xPosition * 16 + i;
   tileentity.yCoord = j;
   tileentity.zCoord = zPosition * 16 + k;
   if (getBlockID(i, j, k) == 0
       || !(Block.blocksList[getBlockID(i, j, k)] instanceof BlockContainer)) {
     System.out.println("Attempted to place a tile entity where there was no entity tile!");
     return;
   } else {
     tileentity.func_31004_j();
     chunkTileEntityMap.put(chunkposition, tileentity);
     return;
   }
 }