ItemCost
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
components() as DataComponentPredicate
Return Type:
DataComponentPredicate
Getter
Return Type:
int
Getter
Return Type:
ItemDefinition
Getter
Return Type:
IItemStack
static of(stack as IItemStack) as ItemCost
Parameters:
stack: IItemStack
Type: IItemStack
Return Type:
ItemCost
static of(stack as IItemStack, predicate as DataComponentPredicate) as ItemCost
Parameters:
stack: IItemStack
Type: IItemStack
predicate: DataComponentPredicate
Type: DataComponentPredicate
Return Type:
ItemCost
test(stack as IItemStack) as bool
Parameters:
stack: IItemStack
Type: IItemStack
Return Type:
bool
withComponents(operator as UnaryOperator<Builder>) as ItemCost
Parameters:
operator: UnaryOperator<DataComponentPredicateBuilder>
Type: UnaryOperator<DataComponentPredicateBuilder>
Return Type:
ItemCost