Example #1
0
 public void setNewChunkBlockTileEntity(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;
   newChunkTileEntityMap.put(chunkposition, tileentity);
 }
Example #2
0
 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;
   }
 }