CustomTool
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.CustomTool;
Extending ToolBuilder<CustomTool>
CustomTool extends ToolBuilder<CustomTool>. That means all methods available in ToolBuilder<CustomTool> are also available in CustomTool
Methods
Return Type: T
CustomTool.attackSpeed(attackSpeed as float) as T
Parameter | Type |
---|---|
Parameter attackSpeed | Type float |
Return Type: T
CustomTool.baseAttackDamage(attackDamageBase as float) as T
Parameter | Type |
---|---|
Parameter attackDamageBase | Type float |
Return Type: ItemReference
CustomTool.build(name as string) as ItemReference
Parameter | Type |
---|---|
Parameter name | Type string |
Return Type: T
CustomTool.canAlwaysEat(canEat as boolean) as T
Parameter | Type |
---|---|
Parameter canEat | Type boolean |
Return Type: T
CustomTool.cloning(properties as ItemProperties) as T
Parameter | Type |
---|---|
Parameter properties | Type ItemProperties |
Return Type: T
CustomTool.cloning(standard as StandardItemProperties?, food as FoodItemProperties?) as T
Parameter | Type |
---|---|
Parameter standard | Type StandardItemProperties? |
Parameter food | Type FoodItemProperties? |
Return Type: T
CustomTool.craftRemainder(remainder as ItemReference) as T
Parameter | Type |
---|---|
Parameter remainder | Type ItemReference |
Return Type: T
CustomTool.durability(damage as int) as T
Parameter | Type |
---|---|
Parameter damage | Type int |
Return Type: T
CustomTool.fastFood(fast as boolean) as T
Parameter | Type |
---|---|
Parameter fast | Type boolean |
Return Type: T
CustomTool.fireResistant(fireResistance as boolean) as T
Parameter | Type |
---|---|
Parameter fireResistance | Type boolean |
Return Type: T
CustomTool.meat(meat as boolean) as T
Parameter | Type |
---|---|
Parameter meat | Type boolean |
Return Type: T
CustomTool.nutrition(nutrition as int) as T
Parameter | Type |
---|---|
Parameter nutrition | Type int |
Return Type: T
CustomTool.rarity(rarity as Rarity) as T
Parameter | Type |
---|---|
Parameter rarity | Type Rarity |
Return Type: T
CustomTool.saturationMod(modifier as float) as T
Parameter | Type |
---|---|
Parameter modifier | Type float |
Return Type: T
CustomTool.stacksTo(size as int) as T
Parameter | Type |
---|---|
Parameter size | Type int |
Return Type: T
CustomTool.tab(tab as CreativeTabReference) as T
Parameter | Type |
---|---|
Parameter tab | Type CreativeTabReference |
Return Type: CustomTool
CustomTool.tag(tag as ResourceLocation) as CustomTool
Parameter | Type |
---|---|
Parameter tag | Type ResourceLocation |
Return Type: T
CustomTool.tier(tier as TierReference) as T
Parameter | Type |
---|---|
Parameter tier | Type TierReference |