public class ShovelItem extends MiningToolItem
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private static Set<Block> |
EFFECTIVE_BLOCKS |
protected static Map<Block,BlockState> |
PATH_BLOCKSTATES |
miningSpeedATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER_UUID, BLOCK_ITEMS, group, RANDOM| Constructor and Description |
|---|
ShovelItem(ToolMaterial material,
float attackDamage,
float attackSpeed,
Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEffectiveOn(BlockState state) |
ActionResult |
useOnBlock(ItemUsageContext context) |
getMiningSpeedMultiplier, getModifiers, method_26366, postHit, postMinecanRepair, 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, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntityprotected static final Map<Block,BlockState> PATH_BLOCKSTATES
public ShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Item.Settings settings)
public boolean isEffectiveOn(BlockState state)
isEffectiveOn in class Itempublic ActionResult useOnBlock(ItemUsageContext context)
useOnBlock in class Item