Class AlternativeEntry

All Implemented Interfaces:
EntryCombiner

public class AlternativeEntry extends CombinedEntry
Mappings:
Namespace Name
official eda
intermediary net/minecraft/class_65
named net/minecraft/loot/entry/AlternativeEntry
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AlternativeEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Leda;a:Lcom/mojang/serialization/Codec;
      intermediary field_45797 Lnet/minecraft/class_65;field_45797:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/entry/AlternativeEntry;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • AlternativeEntry

      AlternativeEntry(List<LootPoolEntry> terms, List<LootCondition> conditions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ledc;<init>(Ljava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_69;<init>(Ljava/util/List;Ljava/util/List;)V
      named <init> Lnet/minecraft/loot/entry/CombinedEntry;<init>(Ljava/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 Ledj;a()Ledk;
      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;
    • combine

      protected EntryCombiner combine(List<? extends EntryCombiner> list)
      Specified by:
      combine in class CombinedEntry
      Mappings:
      Namespace Name Mixin selector
      official a Ledc;a(Ljava/util/List;)Ledb;
      intermediary method_394 Lnet/minecraft/class_69;method_394(Ljava/util/List;)Lnet/minecraft/class_64;
      named combine Lnet/minecraft/loot/entry/CombinedEntry;combine(Ljava/util/List;)Lnet/minecraft/loot/entry/EntryCombiner;
    • validate

      public void validate(LootTableReporter reporter)
      Overrides:
      validate in class CombinedEntry
      Mappings:
      Namespace Name Mixin selector
      official a Ledj;a(Lecz;)V
      intermediary method_415 Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)V
      named validate Lnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
    • builder

      public static AlternativeEntry.Builder builder(LootPoolEntry.Builder<?>[] children)
      Mappings:
      Namespace Name Mixin selector
      official a Leda;a([Ledj$a;)Leda$a;
      intermediary method_386 Lnet/minecraft/class_65;method_386([Lnet/minecraft/class_79$class_80;)Lnet/minecraft/class_65$class_66;
      named builder Lnet/minecraft/loot/entry/AlternativeEntry;builder([Lnet/minecraft/loot/entry/LootPoolEntry$Builder;)Lnet/minecraft/loot/entry/AlternativeEntry$Builder;
    • builder

      public static <E> AlternativeEntry.Builder builder(Collection<E> children, Function<E,LootPoolEntry.Builder<?>> toBuilderFunction)
      Mappings:
      Namespace Name Mixin selector
      official a Leda;a(Ljava/util/Collection;Ljava/util/function/Function;)Leda$a;
      intermediary method_43734 Lnet/minecraft/class_65;method_43734(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_65$class_66;
      named builder Lnet/minecraft/loot/entry/AlternativeEntry;builder(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/loot/entry/AlternativeEntry$Builder;