Package net.minecraft.loot.entry
Class AlternativeEntry
java.lang.Object
net.minecraft.loot.entry.LootPoolEntry
net.minecraft.loot.entry.CombinedEntry
net.minecraft.loot.entry.AlternativeEntry
- All Implemented Interfaces:
EntryCombiner
- Mappings:
Namespace Name official ehgintermediary net/minecraft/class_65named net/minecraft/loot/entry/AlternativeEntry
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.loot.entry.CombinedEntry
CombinedEntry.Factory<T extends CombinedEntry> -
Field Summary
FieldsFields inherited from class net.minecraft.loot.entry.CombinedEntry
childrenFields inherited from class net.minecraft.loot.entry.LootPoolEntry
conditionsFields inherited from interface net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> AlternativeEntry.Builderbuilder(Collection<E> children, Function<E, LootPoolEntry.Builder<?>> toBuilderFunction) static AlternativeEntry.Builderbuilder(LootPoolEntry.Builder<?>[] children) protected EntryCombinercombine(List<? extends EntryCombiner> terms) getType()voidvalidate(LootTableReporter reporter) Methods inherited from class net.minecraft.loot.entry.CombinedEntry
createCodec, expandMethods inherited from class net.minecraft.loot.entry.LootPoolEntry
addConditionsField, testMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.entry.EntryCombiner
and, or
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLehg;a:Lcom/mojang/serialization/Codec;intermediary field_45797Lnet/minecraft/class_65;field_45797:Lcom/mojang/serialization/Codec;named CODECLnet/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>Lehi;<init>(Ljava/util/List;Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_69;<init>(Ljava/util/List;Ljava/util/List;)Vnamed <init>Lnet/minecraft/loot/entry/CombinedEntry;<init>(Ljava/util/List;Ljava/util/List;)V
-
-
Method Details
-
getType
- Specified by:
getTypein classLootPoolEntry- Mappings:
Namespace Name Mixin selector official aLehp;a()Lehq;intermediary method_29318Lnet/minecraft/class_79;method_29318()Lnet/minecraft/class_5338;named getTypeLnet/minecraft/loot/entry/LootPoolEntry;getType()Lnet/minecraft/loot/entry/LootPoolEntryType;
-
combine
- Specified by:
combinein classCombinedEntry- Mappings:
Namespace Name Mixin selector official aLehi;a(Ljava/util/List;)Lehh;intermediary method_394Lnet/minecraft/class_69;method_394(Ljava/util/List;)Lnet/minecraft/class_64;named combineLnet/minecraft/loot/entry/CombinedEntry;combine(Ljava/util/List;)Lnet/minecraft/loot/entry/EntryCombiner;
-
validate
- Overrides:
validatein classCombinedEntry- Mappings:
Namespace Name Mixin selector official aLehp;a(Lehf;)Vintermediary method_415Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
builder
- Mappings:
Namespace Name Mixin selector official aLehg;a([Lehp$a;)Lehg$a;intermediary method_386Lnet/minecraft/class_65;method_386([Lnet/minecraft/class_79$class_80;)Lnet/minecraft/class_65$class_66;named builderLnet/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 aLehg;a(Ljava/util/Collection;Ljava/util/function/Function;)Lehg$a;intermediary method_43734Lnet/minecraft/class_65;method_43734(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_65$class_66;named builderLnet/minecraft/loot/entry/AlternativeEntry;builder(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/loot/entry/AlternativeEntry$Builder;
-