MCItemDefinition
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.
Casters
Result type | Is Implicit |
---|---|
Result type IItemStack | Is Implicit true |
Methods
Return Type: IItemStack
Gets the tags that contain this item.
Returns: a list of tags that contain this item.
Return Type: stdlib.List<MCTag<MCItemDefinition>>
Checks if this item is in the given tag.
Returns: True if the tag contains this item.
Return Type: boolean
Parameter | Type | Description |
---|---|---|
Parameter tag | Type MCTag<MCItemDefinition> | Description The tag to check against. |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false | Description No Description Provided |
Name defaultInstance | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |