Ejemplo n.º 1
0
 public void func_75132_a(ICrafting p_75132_1_) {
   if (this.field_75149_d.contains(p_75132_1_)) {
     throw new IllegalArgumentException("Listener already listening");
   } else {
     this.field_75149_d.add(p_75132_1_);
     p_75132_1_.func_71110_a(this, this.func_75138_a());
     this.func_75142_b();
   }
 }
Ejemplo n.º 2
0
 @Override
 public void sendGUINetworkData(ContainerEngine containerEngine, ICrafting iCrafting) {
   iCrafting.updateCraftingInventoryInfo(containerEngine, 0, energy);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 1, currentOutput);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 2, heat);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 3, liquidQty);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 4, liquidId);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 5, coolantQty);
   iCrafting.updateCraftingInventoryInfo(containerEngine, 6, coolantId);
 }