public abstract class MiningToolItem extends ToolItem implements Vanishable
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private Multimap<EntityAttribute,EntityAttributeModifier> |
attributeModifiers |
private Set<Block> |
effectiveBlocks |
protected float |
miningSpeed |
BLOCK_ITEMS, group, RANDOM| Modifier | Constructor and Description |
|---|---|
protected |
MiningToolItem(ToolMaterial toolMaterial,
Set<Block> set,
Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAttackDamage() |
Multimap<EntityAttribute,EntityAttributeModifier> |
getAttributeModifiers(EquipmentSlot slot) |
float |
getMiningSpeedMultiplier(ItemStack stack,
BlockState state) |
protected abstract class_5510 |
method_31243() |
boolean |
postHit(ItemStack stack,
LivingEntity target,
LivingEntity attacker) |
boolean |
postMine(ItemStack stack,
World world,
BlockState state,
BlockPos pos,
LivingEntity miner) |
canRepair, getEnchantability, getMaterialappendStacks, appendTooltip, asItem, byRawId, canMine, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnBlock, useOnEntityprotected final float miningSpeed
private final Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers
protected MiningToolItem(ToolMaterial toolMaterial, Set<Block> set, Item.Settings settings)
public float getMiningSpeedMultiplier(ItemStack stack, BlockState state)
getMiningSpeedMultiplier in class Itempublic boolean postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
public boolean postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
protected abstract class_5510 method_31243()
public Multimap<EntityAttribute,EntityAttributeModifier> getAttributeModifiers(EquipmentSlot slot)
getAttributeModifiers in class Itempublic float getAttackDamage()