コード例 #1
0
 /**
  * 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());
   }
 }
コード例 #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;
 }
コード例 #3
0
 /**
  * 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());
 }