public class MiningToolItem extends ToolItem implements Vanishable
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private float |
attackDamage |
private Set<Block> |
effectiveBlocks |
private Multimap<EntityAttribute,EntityAttributeModifier> |
field_23742 |
protected float |
miningSpeed |
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Modifier | Constructor and Description |
|---|---|
protected |
MiningToolItem(float attackDamage,
float attackSpeed,
ToolMaterial material,
Set<Block> effectiveBlocks,
Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
float |
getMiningSpeedMultiplier(ItemStack stack,
BlockState state) |
Multimap<EntityAttribute,EntityAttributeModifier> |
getModifiers(EquipmentSlot equipmentSlot) |
float |
method_26366() |
boolean |
postHit(ItemStack stack,
LivingEntity target,
LivingEntity attacker) |
boolean |
postMine(ItemStack stack,
World world,
BlockState state,
BlockPos pos,
LivingEntity miner) |
canRepair, getEnchantability, getMaterialaddPropertyGetter, appendStacks, appendTooltip, asItem, byRawId, canMine, damage, finishUsing, fromBlock, getDrinkSound, getEatSound, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasPropertyGetters, 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 float attackDamage
private final Multimap<EntityAttribute,EntityAttributeModifier> field_23742
protected MiningToolItem(float attackDamage,
float attackSpeed,
ToolMaterial material,
Set<Block> effectiveBlocks,
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)
public Multimap<EntityAttribute,EntityAttributeModifier> getModifiers(EquipmentSlot equipmentSlot)
getModifiers in class Itempublic float method_26366()