public override void func_349_a(TileEntity tileentity) { }
public void doNothingWithTileEntity(int i, int j, int k, TileEntity tileentity) { mcServer.configManager.sentTileEntityToPlayer(i, j, k, tileentity); }
public override void setChunkBlockTileEntity(int i, int j, int k, TileEntity tileentity) { }
public void sentTileEntityToPlayer(int i, int j, int k, TileEntity tileentity) { }
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); } }
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); } }
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); }
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); }
private void func_20178_a(TileEntity tileentity) { if (tileentity != null) { Packet packet = tileentity.getDescriptionPacket(); if (packet != null) { func_776_a(packet); } } }