Class PickItem

java.lang.Object
net.minecraft.world.item.Item
com.idark.valoria.registries.item.types.PickItem
All Implemented Interfaces:
ICustomAnimationItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Vanishable, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class PickItem extends net.minecraft.world.item.Item implements ICustomAnimationItem, net.minecraft.world.item.Vanishable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static PickAnim
     
    float
     
    float
     
    float
     
    static final double
    Deprecated.

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    PickItem(net.minecraft.world.item.Item.Properties pProperties, int attackDamageIn, float attackSpeedIn, int speed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAnimation(net.minecraft.world.item.ItemStack stack)
     
    com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier>
    getDefaultAttributeModifiers(net.minecraft.world.entity.EquipmentSlot equipmentSlot)
     
    static List<net.minecraft.world.item.ItemStack>
    getExcavationAccessories(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.item.UseAnim
    getUseAnimation(net.minecraft.world.item.ItemStack pStack)
     
    int
    getUseDuration(net.minecraft.world.item.ItemStack pStack)
     
    void
    onUseTick(net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, net.minecraft.world.item.ItemStack pStack, int pRemainingUseDuration)
     
    void
    spawnDustParticles(net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.BlockHitResult pHitResult, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.phys.Vec3 pPos, net.minecraft.world.entity.HumanoidArm pArm)
     
    net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext pContext)
     

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeItem

    canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Field Details

    • animation

      public static PickAnim animation
    • MAX_BRUSH_DISTANCE

      @Deprecated public static final double MAX_BRUSH_DISTANCE
      Deprecated.
    • excavationSpeed

      public float excavationSpeed
    • attackDamageIn

      public float attackDamageIn
    • attackSpeedIn

      public float attackSpeedIn
  • Constructor Details

    • PickItem

      public PickItem(net.minecraft.world.item.Item.Properties pProperties, int attackDamageIn, float attackSpeedIn, int speed)
  • Method Details

    • getExcavationAccessories

      public static List<net.minecraft.world.item.ItemStack> getExcavationAccessories(net.minecraft.world.entity.player.Player player)
    • getDefaultAttributeModifiers

      public com.google.common.collect.Multimap<net.minecraft.world.entity.ai.attributes.Attribute,net.minecraft.world.entity.ai.attributes.AttributeModifier> getDefaultAttributeModifiers(net.minecraft.world.entity.EquipmentSlot equipmentSlot)
      Overrides:
      getDefaultAttributeModifiers in class net.minecraft.world.item.Item
    • useOn

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext pContext)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • getUseAnimation

      public net.minecraft.world.item.UseAnim getUseAnimation(net.minecraft.world.item.ItemStack pStack)
      Overrides:
      getUseAnimation in class net.minecraft.world.item.Item
    • getAnimation

      public ItemAnims getAnimation(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getAnimation in interface ICustomAnimationItem
    • getUseDuration

      public int getUseDuration(net.minecraft.world.item.ItemStack pStack)
      Overrides:
      getUseDuration in class net.minecraft.world.item.Item
    • onUseTick

      public void onUseTick(net.minecraft.world.level.Level pLevel, net.minecraft.world.entity.LivingEntity pLivingEntity, net.minecraft.world.item.ItemStack pStack, int pRemainingUseDuration)
      Overrides:
      onUseTick in class net.minecraft.world.item.Item
    • spawnDustParticles

      public void spawnDustParticles(net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.BlockHitResult pHitResult, net.minecraft.world.level.block.state.BlockState pState, net.minecraft.world.phys.Vec3 pPos, net.minecraft.world.entity.HumanoidArm pArm)