Class Item

java.lang.Object
net.minecraft.world.item.Item
All Implemented Interfaces:
FeatureElement, ItemLike, IItemExtension
Direct Known Subclasses:
AirItem, ArmorItem, ArmorStandItem, ArrowItem, BannerPatternItem, BlockItem, BoatItem, BoneMealItem, BookItem, BottleItem, BowlFoodItem, BrushItem, BucketItem, BundleItem, ChorusFruitItem, CompassItem, ComplexItem, CustomElytraTest.CustomElytra, CustomFluidContainerTest.CustomFluidContainer, CustomShieldTest.CustomShieldItem, CustomTooltipTest.CustomItemWithTooltip, DebugStickItem, DiscFragmentItem, DyeItem, EggItem, ElytraItem, EnchantedBookItem, EnchantedGoldenAppleItem, EndCrystalItem, EnderEyeItem, EnderpearlItem, ExperienceBottleItem, FireChargeItem, FireworkRocketItem, FireworkStarItem, FishingRodItem, FlintAndSteelItem, FoodOnAStickItem, GlowInkSacItem, GravityAttributeTest.ItemGravityStick, HangingEntityItem, HiddenTooltipPartsTest.TestItem, HoneyBottleItem, HoneycombItem, HorseArmorItem, InkSacItem, InstrumentItem, ItemUseAnimationTest.ThingItem, KnowledgeBookItem, LeadItem, MilkBucketItem, MinecartItem, NameTagItem, PotionItem, ProjectileWeaponItem, RecordItem, SaddleItem, ShearsItem, ShieldItem, SimpleFoiledItem, SmithingTemplateItem, SnowballItem, SpawnEggItem, SpyglassItem, StopUsingItemTest.InvertedTelescope, SuspiciousStewItem, TieredItem, TridentItem, WritableBookItem, WrittenBookItem

public class Item extends Object implements FeatureElement, ItemLike, IItemExtension
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • BY_BLOCK

      public static final Map<Block,Item> BY_BLOCK
    • BASE_ATTACK_DAMAGE_UUID

      protected static final UUID BASE_ATTACK_DAMAGE_UUID
    • BASE_ATTACK_SPEED_UUID

      protected static final UUID BASE_ATTACK_SPEED_UUID
    • MAX_STACK_SIZE

      public static final int MAX_STACK_SIZE
      See Also:
    • EAT_DURATION

      public static final int EAT_DURATION
      See Also:
    • MAX_BAR_WIDTH

      public static final int MAX_BAR_WIDTH
      See Also:
    • builtInRegistryHolder

      private final Holder.Reference<Item> builtInRegistryHolder
    • rarity

      private final Rarity rarity
    • maxStackSize

      private final int maxStackSize
    • maxDamage

      private final int maxDamage
    • isFireResistant

      private final boolean isFireResistant
    • craftingRemainingItem

      @Nullable private final Item craftingRemainingItem
    • descriptionId

      @Nullable private String descriptionId
    • foodProperties

      @Nullable private final FoodProperties foodProperties
    • requiredFeatures

      private final FeatureFlagSet requiredFeatures
    • canRepair

      protected final boolean canRepair
    • renderProperties

      private Object renderProperties
  • Constructor Details

  • Method Details