Class Item

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

public class Item extends Object implements FeatureElement, ItemLike, IForgeItem
  • 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