Class ItemEntry

All Implemented Interfaces:
EntryCombiner

public class ItemEntry extends LeafEntry
Mappings:
Namespace Name
official ehm
intermediary net/minecraft/class_77
named net/minecraft/loot/entry/ItemEntry
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ItemEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a:Lcom/mojang/serialization/Codec;
      intermediary field_45801 Lnet/minecraft/class_77;field_45801:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/entry/ItemEntry;CODEC:Lcom/mojang/serialization/Codec;
    • item

      private final RegistryEntry<Item> item
      Mappings:
      Namespace Name Mixin selector
      official j Lehm;j:Lih;
      intermediary field_987 Lnet/minecraft/class_77;field_987:Lnet/minecraft/class_6880;
      named item Lnet/minecraft/loot/entry/ItemEntry;item:Lnet/minecraft/registry/entry/RegistryEntry;
  • Constructor Details

    • ItemEntry

      private ItemEntry(RegistryEntry<Item> item, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lehm;<init>(Lih;IILjava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_77;<init>(Lnet/minecraft/class_6880;IILjava/util/List;Ljava/util/List;)V
      named <init> Lnet/minecraft/loot/entry/ItemEntry;<init>(Lnet/minecraft/registry/entry/RegistryEntry;IILjava/util/List;Ljava/util/List;)V
  • Method Details

    • getType

      public LootPoolEntryType getType()
      Specified by:
      getType in class LootPoolEntry
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a()Lehq;
      intermediary method_29318 Lnet/minecraft/class_79;method_29318()Lnet/minecraft/class_5338;
      named getType Lnet/minecraft/loot/entry/LootPoolEntry;getType()Lnet/minecraft/loot/entry/LootPoolEntryType;
    • generateLoot

      public void generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
      Specified by:
      generateLoot in class LeafEntry
      Mappings:
      Namespace Name Mixin selector
      official a Lehr;a(Ljava/util/function/Consumer;Legw;)V
      intermediary method_433 Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
      named generateLoot Lnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
    • builder

      public static LeafEntry.Builder<?> builder(ItemConvertible drop)
      Mappings:
      Namespace Name Mixin selector
      official a Lehm;a(Lcto;)Lehr$a;
      intermediary method_411 Lnet/minecraft/class_77;method_411(Lnet/minecraft/class_1935;)Lnet/minecraft/class_85$class_86;
      named builder Lnet/minecraft/loot/entry/ItemEntry;builder(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/loot/entry/LeafEntry$Builder;