Esempio n. 1
0
 @Override
 public void a(OTileEntityFurnace var1) {
   // CanaryMod - onOpenInventory - Furnace
   CanaryFurnace furnace = var1.getFurnace();
   CancelableHook hook =
       (CancelableHook)
           Canary.hooks()
               .callCancelableHook(new InventoryHook(canaryPlayer, furnace.getInventory(), false));
   if (!hook.isCanceled()) {
     this.bc();
     this.a.b(
         (new OPacket100OpenWindow(this.cl, 2, var1.getInventoryName(), var1.getInventorySize())));
     this.m = new OContainerFurnace(this.k, var1);
     this.m.f = this.cl;
     this.m.a((OICrafting) this);
     this.m.setInventory(furnace.getInventory());
   }
 }