Esempio n. 1
0
        public bool CanGrind()
        {
            GrindingProperties grindProps = InputGrindProps;

            if (grindProps == null)
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
        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);
        }