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