Ejemplo n.º 1
0
 protected override bool OnBeforeTransfer(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     if (slot == craftingTable.Product)
     {
         PickUpProduct();
         return(true);
     }
     return(false);
 }
Ejemplo 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);
     }
 }
Ejemplo 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);
 }
Ejemplo n.º 4
0
 protected override void OnAfterPickUp(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
     BindAll();
 }
Ejemplo n.º 5
0
 protected override void OnAfterTransfer(Controls.GuiPanel guiSlot, Controls.GuiStackControl guiStack, Slot slot)
 {
 }