Exemplo n.º 1
0
 @Override
 public Object[] invoke(TileEntity te, Object[] args) throws Exception {
   TileEntityAdvancedGear adv = (TileEntityAdvancedGear) te;
   if (adv.getGearType() == GearType.CVT) {
     int ratio = ((Double) args[0]).intValue();
     adv.setRatio(ratio);
   }
   return null;
 }