Class HandheldItem

java.lang.Object
net.minecraft.item.Item
me.tnoctua.nmodutils.init.impl.item.HandheldItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.item.ItemConvertible, net.minecraft.resource.featuretoggle.ToggleableFeature

public class HandheldItem extends net.minecraft.item.Item
  • Nested Class Summary

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

    net.minecraft.item.Item.Settings, net.minecraft.item.Item.TooltipContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ArrayList<net.minecraft.item.Item>
     

    Fields inherited from class net.minecraft.item.Item

    BASE_ATTACK_DAMAGE_MODIFIER_ID, BASE_ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_BLOCKS_ATTACKS_MAX_USE_TIME, DEFAULT_MAX_COUNT, ENTRY_CODEC, ENTRY_PACKET_CODEC, ITEM_BAR_STEPS, MAX_MAX_COUNT, translationKey

    Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    FEATURE_ENABLED_REGISTRY_KEYS
  • Constructor Summary

    Constructors
    Constructor
    Description
    HandheldItem(net.minecraft.item.Item.Settings settings)
    Generic item with a "handheld" model, adds instances to a list for data generation purposes.
  • Method Summary

    Methods inherited from class net.minecraft.item.Item

    appendTooltip, asItem, byRawId, canBeNested, canMine, finishUsing, fromBlock, getBonusAttackDamage, getComponents, getDamageSource, getDefaultStack, getItemBarColor, getItemBarStep, getMaxCount, getMaxUseTime, getMiningSpeed, getName, getName, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getUseAction, hasGlint, inventoryTick, isCorrectForDrops, isItemBarVisible, isUsedOnRelease, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postDamageEntity, postHit, postMine, postProcessComponents, raycast, shouldShowOperatorBlockWarnings, toString, usageTick, use, useOnBlock, useOnEntity

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith, getRecipeRemainder

    Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature

    isEnabled
  • Field Details

    • ITEMS

      public static final ArrayList<net.minecraft.item.Item> ITEMS
  • Constructor Details

    • HandheldItem

      public HandheldItem(net.minecraft.item.Item.Settings settings)
      Generic item with a "handheld" model, adds instances to a list for data generation purposes.
      Parameters:
      settings - item settings