ItemBuilderTool
A special builder that allows you to create items that can be used as tools. You should have set the item's max damage before changing to this builder. Has special methods that allow you to set the mining level for several tool types as well as the attack damage.
This class was added by a mod with mod-id contenttweaker
. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.
Импорт класса
Вам может потребоваться импортировать пакет, если вы столкнетесь с какими-либо проблемами (например, с заливкой массива), так что лучше быть в безопасности, чем извиняться и добавлять импорт.
Implemented Interfaces
ItemBuilderTool implements the following interfaces. That means any method available to them can also be used on this class.
Methods
build
Instructs CoT to actually build whatever this builder is supposed to be building.
withAttackDamage
Allows you to set the attack damage bonus that you get when holding this item
Returns: This builder, used for method chaining
Тип возврата: mods.contenttweaker.item.tool.ItemBuilderTool
withAttackSpeed
Allows you to set the attack speed bonus that you get when holding this item.
Returns: This builder, used for method chaining.
Тип возврата: mods.contenttweaker.item.tool.ItemBuilderTool
withDurabilityCostAttack
Allows you to set the amount of damage that this item will receive when hitting enemies. By default this is 0
Returns: This builder, used for method chaining
Тип возврата: mods.contenttweaker.item.tool.ItemBuilderTool
withDurabilityCostMining
Allows you to set the amount of damage that this item will receive when mining blocks. By default this is 0
Returns: This builder, used for method chaining
Тип возврата: mods.contenttweaker.item.tool.ItemBuilderTool
withToolType
Allows you to add a tool type to this tool. You can specify the type, the mining level and optionally the mining speed when this type is hit as well.
Returns: This builder, used for method chaining
Тип возврата: mods.contenttweaker.item.tool.ItemBuilderTool