Esempio n. 1
0
 protected override bool OnBeforeTransfer(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     if (slot == craftingTable.Product)
     {
         PickUpProduct();
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 protected override bool OnPickUp(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     if (slot == craftingTable.Product)
     {
         PickUpProduct();
         return(true);
     }
     else
     {
         BindAll();
         return(false);
     }
 }
Esempio n. 3
0
 protected override bool OnBeforeTransfer(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     if (slot == furnace.Fuel)
     {
         // we can only use blocks as fuel if they have HOF greater than 0
         return(stackInHand.AsEntity.HeatOfCombustion <= 0);
     }
     else if (slot == furnace.Product)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 4
0
 protected override void OnAfterPickUp(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     BindAll();
 }
Esempio n. 5
0
 protected override void OnAfterTransfer(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
 }