Basic
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.
import contenttweaker.builder.vanilla.item.Basic;
Extending ItemBuilder<Basic>
Basic extends ItemBuilder<Basic>. That means all methods available in ItemBuilder<Basic> are also available in Basic
Methods
Return Type: ItemReference
Basic.build(name as string) as ItemReference
Parameter | Type |
---|---|
Parameter name | Type string |
Return Type: T
Basic.canAlwaysEat(canEat as boolean) as T
Parameter | Type |
---|---|
Parameter canEat | Type boolean |
Return Type: T
Basic.cloning(properties as ItemProperties) as T
Parameter | Type |
---|---|
Parameter properties | Type ItemProperties |
Return Type: T
Basic.cloning(standard as StandardItemProperties?, food as FoodItemProperties?) as T
Parameter | Type |
---|---|
Parameter standard | Type StandardItemProperties? |
Parameter food | Type FoodItemProperties? |
Return Type: T
Basic.craftRemainder(remainder as ItemReference) as T
Parameter | Type |
---|---|
Parameter remainder | Type ItemReference |
Return Type: T
Basic.durability(damage as int) as T
Parameter | Type |
---|---|
Parameter damage | Type int |
Return Type: T
Basic.fastFood(fast as boolean) as T
Parameter | Type |
---|---|
Parameter fast | Type boolean |
Return Type: T
Basic.fireResistant(fireResistance as boolean) as T
Parameter | Type |
---|---|
Parameter fireResistance | Type boolean |
Return Type: T
Basic.meat(meat as boolean) as T
Parameter | Type |
---|---|
Parameter meat | Type boolean |
Return Type: T
Basic.nutrition(nutrition as int) as T
Parameter | Type |
---|---|
Parameter nutrition | Type int |
Return Type: T
Basic.saturationMod(modifier as float) as T
Parameter | Type |
---|---|
Parameter modifier | Type float |
Return Type: T
Basic.stacksTo(size as int) as T
Parameter | Type |
---|---|
Parameter size | Type int |
Return Type: T
Basic.tab(tab as CreativeTabReference) as T
Parameter | Type |
---|---|
Parameter tab | Type CreativeTabReference |