/**
  * Returns the TileEntitySpecialRenderer used to render this TileEntity instance, or null if it
  * has no special renderer
  */
 public TileEntitySpecialRenderer getSpecialRendererForEntity(TileEntity par1TileEntity) {
   if (par1TileEntity == null) {
     return null;
   } else {
     return getSpecialRendererForClass(par1TileEntity.getClass());
   }
 }
Esempio n. 2
0
 @Override
 public boolean isTileAnalyser(TileEntity tile) {
   if (!has_all) {
     return false;
   }
   try {
     if (tileMachine.isAssignableFrom(tile.getClass())) {
       Object obj = machine_in_TileMachine.get(tile);
       if (analyserClass.isAssignableFrom(obj.getClass())) {
         return true;
       }
     }
   } catch (Exception e) {
   }
   return false;
 }
 /**
  * Returns the TileEntitySpecialRenderer used to render this TileEntity instance, or null if it
  * has no special renderer
  */
 public TileEntitySpecialRenderer getSpecialRendererForEntity(TileEntity par1TileEntity) {
   return par1TileEntity == null
       ? null
       : this.getSpecialRendererForClass(par1TileEntity.getClass());
 }