public bool CanGrind() { GrindingProperties grindProps = InputGrindProps; if (grindProps == null) { return(false); } return(true); }
public bool CanGrind() { GrindingProperties grindProps = InputGrindProps; if (grindProps == null) { return(false); } if (OutputSlot.Itemstack == null) { return(true); } int mergableQuantity = OutputSlot.Itemstack.Collectible.GetMergableQuantity(OutputSlot.Itemstack, grindProps.GrindedStack.ResolvedItemstack); return(mergableQuantity >= grindProps.GrindedStack.ResolvedItemstack.StackSize); }