SizedFluidIngredient
Link to sizedfluidingredient
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.neoforge.api.item.SizedFluidIngredient;
Static Methods
Link to static-methods
Name: of
Return Type: SizedFluidIngredient
ZenScript CopySizedFluidIngredient.of(stack as invalid) as SizedFluidIngredient
Parameter | Type |
---|---|
Parameter stack | Type invalid |
Name: of
Return Type: SizedFluidIngredient
ZenScript CopySizedFluidIngredient.of(fluid as Fluid, amount as int) as SizedFluidIngredient
Parameter | Type |
---|---|
Parameter fluid | Type Fluid |
Parameter amount | Type int |
Name: of
Return Type: SizedFluidIngredient
ZenScript CopySizedFluidIngredient.of(tag as KnownTag<Fluid>, amount as int) as SizedFluidIngredient
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<Fluid> |
Parameter amount | Type int |
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type FluidIngredient | Is Implicit true |
Methods
Link to methods
Name: test
Return Type: boolean
ZenScript CopySizedFluidIngredient.test(stack as IFluidStack) as boolean
Parameter | Type |
---|---|
Parameter stack | Type IFluidStack |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name amount | Type int | Has Getter true | Has Setter false |
Name fluids | Type IFluidStack[] | Has Getter true | Has Setter false |
Name ingredient | Type FluidIngredient | Has Getter true | Has Setter false |