Class TagEntry

All Implemented Interfaces:
EntryCombiner

public class TagEntry extends LeafEntry
Mappings:
Namespace Name
named net/minecraft/loot/entry/TagEntry
intermediary net/minecraft/class_91
official ere
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<TagEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/entry/TagEntry;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45805 Lnet/minecraft/class_91;field_45805:Lcom/mojang/serialization/MapCodec;
      official a Lere;a:Lcom/mojang/serialization/MapCodec;
    • name

      private final TagKey<Item> name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/loot/entry/TagEntry;name:Lnet/minecraft/registry/tag/TagKey;
      intermediary field_1005 Lnet/minecraft/class_91;field_1005:Lnet/minecraft/class_6862;
      official j Lere;j:Laxf;
    • expand

      private final boolean expand
      Mappings:
      Namespace Name Mixin selector
      named expand Lnet/minecraft/loot/entry/TagEntry;expand:Z
      intermediary field_1006 Lnet/minecraft/class_91;field_1006:Z
      official k Lere;k:Z
  • Constructor Details

    • TagEntry

      private TagEntry(TagKey<Item> name, boolean expand, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/entry/TagEntry;<init>(Lnet/minecraft/registry/tag/TagKey;ZIILjava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_91;<init>(Lnet/minecraft/class_6862;ZIILjava/util/List;Ljava/util/List;)V
      official <init> Lere;<init>(Laxf;ZIILjava/util/List;Ljava/util/List;)V
  • Method Details

    • getType

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

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

      private boolean grow(LootContext context, Consumer<LootChoice> lootChoiceExpander)
      Mappings:
      Namespace Name Mixin selector
      named grow Lnet/minecraft/loot/entry/TagEntry;grow(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z
      intermediary method_447 Lnet/minecraft/class_91;method_447(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Z
      official a Lere;a(Leqj;Ljava/util/function/Consumer;)Z
    • expand

      public boolean expand(LootContext context, Consumer<LootChoice> choiceConsumer)
      Specified by:
      expand in interface EntryCombiner
      Overrides:
      expand in class LeafEntry
      Mappings:
      Namespace Name Mixin selector
      named expand Lnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z
      intermediary expand Lnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Z
      official expand Leqr;expand(Leqj;Ljava/util/function/Consumer;)Z
    • builder

      public static LeafEntry.Builder<?> builder(TagKey<Item> name)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/entry/TagEntry;builder(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/loot/entry/LeafEntry$Builder;
      intermediary method_35517 Lnet/minecraft/class_91;method_35517(Lnet/minecraft/class_6862;)Lnet/minecraft/class_85$class_86;
      official a Lere;a(Laxf;)Lerb$a;
    • expandBuilder

      public static LeafEntry.Builder<?> expandBuilder(TagKey<Item> name)
      Mappings:
      Namespace Name Mixin selector
      named expandBuilder Lnet/minecraft/loot/entry/TagEntry;expandBuilder(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/loot/entry/LeafEntry$Builder;
      intermediary method_445 Lnet/minecraft/class_91;method_445(Lnet/minecraft/class_6862;)Lnet/minecraft/class_85$class_86;
      official b Lere;b(Laxf;)Lerb$a;