private void getTileEntityInfo(TileEntity tileentity) {
   if (tileentity != null) {
     Packet packet = tileentity.getDescriptionPacket();
     if (packet != null) {
       playerNetServerHandler.sendPacket(packet);
     }
   }
 }
Exemplo n.º 2
0
  /** called from onUpdate for all tileEntity in specific chunks */
  private void sendTileEntityToPlayer(TileEntity par1TileEntity) {
    if (par1TileEntity != null) {
      Packet var2 = par1TileEntity.getDescriptionPacket();

      if (var2 != null) {
        this.playerNetServerHandler.sendPacketToPlayer(var2);
      }
    }
  }