Beispiel #1
0
 public override void func_349_a(TileEntity tileentity)
 {
 }
Beispiel #2
0
 public void doNothingWithTileEntity(int i, int j, int k, TileEntity tileentity)
 {
     mcServer.configManager.sentTileEntityToPlayer(i, j, k, tileentity);
 }
Beispiel #3
0
 public override void setChunkBlockTileEntity(int i, int j, int k, TileEntity tileentity)
 {
 }
Beispiel #4
0
 public override void setChunkBlockTileEntity(int i, int j, int k, TileEntity tileentity)
 {
 }
 public void sentTileEntityToPlayer(int i, int j, int k, TileEntity tileentity)
 {
 }
Beispiel #6
0
 public virtual void func_515_b(int i, int j, int k, TileEntity tileentity)
 {
     if (blockExists(i, j, k))
     {
         getChunkFromBlockCoords(i, k).setChunkModified();
     }
     for (int l = 0; l < worldAccesses.size(); l++)
     {
         ((IWorldAccess) worldAccesses.get(l)).doNothingWithTileEntity(i, j, k, tileentity);
     }
 }
Beispiel #7
0
 public override void func_349_a(TileEntity tileentity)
 {
 }
Beispiel #8
0
 public virtual void setBlockTileEntity(int i, int j, int k, TileEntity tileentity)
 {
     Chunk chunk = getChunkFromChunkCoords(i >> 4, k >> 4);
     if (chunk != null)
     {
         chunk.setChunkBlockTileEntity(i & 0xf, j, k & 0xf, tileentity);
     }
 }
Beispiel #9
0
 public virtual void setChunkBlockTileEntity(int i, int j, int k, TileEntity tileentity)
 {
     var 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)] is BlockContainer))
     {
         [email protected]("Attempted to place a tile entity where there was no entity tile!");
         return;
     }
     if (isChunkLoaded)
     {
         if (chunkTileEntityMap.get(chunkposition) != null)
         {
             worldObj.loadedTileEntityList.remove(chunkTileEntityMap.get(chunkposition));
         }
         worldObj.loadedTileEntityList.add(tileentity);
     }
     chunkTileEntityMap.put(chunkposition, tileentity);
 }
Beispiel #10
0
 public virtual void func_349_a(TileEntity tileentity)
 {
     int i = tileentity.xCoord - xPosition*16;
     int j = tileentity.yCoord;
     int k = tileentity.zCoord - zPosition*16;
     setChunkBlockTileEntity(i, j, k, tileentity);
 }
Beispiel #11
0
 private void func_20178_a(TileEntity tileentity)
 {
     if (tileentity != null)
     {
         Packet packet = tileentity.getDescriptionPacket();
         if (packet != null)
         {
             func_776_a(packet);
         }
     }
 }
 public void sentTileEntityToPlayer(int i, int j, int k, TileEntity tileentity)
 {
 }