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 ewn
  • Field Details Link icon

    • CODEC Link icon

      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 Lewn;a:Lcom/mojang/serialization/MapCodec;
    • name Link icon

      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 Lewn;j:Laxf;
    • expand Link icon

      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 Lewn;k:Z
  • Constructor Details Link icon

    • TagEntry Link icon

      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> Lewn;<init>(Laxf;ZIILjava/util/List;Ljava/util/List;)V
  • Method Details Link icon

    • getType Link icon

      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 Lewi;a()Lewj;
    • generateLoot Link icon

      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 Lewk;a(Ljava/util/function/Consumer;Levs;)V
    • grow Link icon

      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 Lewn;a(Levs;Ljava/util/function/Consumer;)Z
    • expand Link icon

      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 Lewa;expand(Levs;Ljava/util/function/Consumer;)Z
    • builder Link icon

      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 Lewn;a(Laxf;)Lewk$a;
    • expandBuilder Link icon

      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 Lewn;b(Laxf;)Lewk$a;