public class ToolItem extends Item
Item.Settings
Modifier and Type | Field and Description |
---|---|
private ToolMaterial |
material |
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM
Constructor and Description |
---|
ToolItem(ToolMaterial material,
Item.Settings settings) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRepair(ItemStack stack,
ItemStack ingredient) |
int |
getEnchantability()
Gets the enchantability of an item.
|
ToolMaterial |
getMaterial() |
appendStacks, appendTooltip, asItem, byRawId, canMine, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntity
private final ToolMaterial material
public ToolItem(ToolMaterial material, Item.Settings settings)
public ToolMaterial getMaterial()
public int getEnchantability()
If the value of this method is 0, the item cannot be enchanted using an enchanting table.
getEnchantability
in class Item