Package net.minecraft.loot.condition
Class AlternativeLootCondition
java.lang.Object
net.minecraft.loot.condition.AlternativeLootCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootCondition
,LootContextAware
- Direct Known Subclasses:
AllOfLootCondition
,AnyOfLootCondition
- Mappings:
Namespace Name official ejm
intermediary net/minecraft/class_186
named net/minecraft/loot/condition/AlternativeLootCondition
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
protected final List<LootCondition>
-
Constructor Summary
ModifierConstructorDescriptionprotected
AlternativeLootCondition
(List<LootCondition> terms, Predicate<LootContext> predicate) -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T extends AlternativeLootCondition>
com.mojang.serialization.Codec<T>createCodec
(Function<List<LootCondition>, T> termsToCondition) protected static <T extends AlternativeLootCondition>
com.mojang.serialization.Codec<T>createInlineCodec
(Function<List<LootCondition>, T> termsToCondition) final boolean
test
(LootContext lootContext) void
validate
(LootTableReporter reporter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.condition.LootCondition
getType
Methods inherited from interface net.minecraft.loot.context.LootContextAware
getRequiredParameters
-
Field Details
-
terms
- Mappings:
Namespace Name Mixin selector official c
Lejm;c:Ljava/util/List;
intermediary field_1246
Lnet/minecraft/class_186;field_1246:Ljava/util/List;
named terms
Lnet/minecraft/loot/condition/AlternativeLootCondition;terms:Ljava/util/List;
-
predicate
- Mappings:
Namespace Name Mixin selector official a
Lejm;a:Ljava/util/function/Predicate;
intermediary field_1247
Lnet/minecraft/class_186;field_1247:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/loot/condition/AlternativeLootCondition;predicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
AlternativeLootCondition
- Mappings:
Namespace Name Mixin selector official <init>
Lejm;<init>(Ljava/util/List;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_186;<init>(Ljava/util/List;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/loot/condition/AlternativeLootCondition;<init>(Ljava/util/List;Ljava/util/function/Predicate;)V
-
-
Method Details
-
createCodec
protected static <T extends AlternativeLootCondition> com.mojang.serialization.Codec<T> createCodec(Function<List<LootCondition>, T> termsToCondition) - Mappings:
Namespace Name Mixin selector official a
Lejm;a(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_53407
Lnet/minecraft/class_186;method_53407(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/loot/condition/AlternativeLootCondition;createCodec(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
createInlineCodec
protected static <T extends AlternativeLootCondition> com.mojang.serialization.Codec<T> createInlineCodec(Function<List<LootCondition>, T> termsToCondition) - Mappings:
Namespace Name Mixin selector official b
Lejm;b(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_53410
Lnet/minecraft/class_186;method_53410(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named createInlineCodec
Lnet/minecraft/loot/condition/AlternativeLootCondition;createInlineCodec(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
test
- Specified by:
test
in interfacePredicate<LootContext>
- Mappings:
Namespace Name Mixin selector official a
Lejm;a(Legw;)Z
intermediary method_825
Lnet/minecraft/class_186;method_825(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/loot/condition/AlternativeLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
-
validate
- Specified by:
validate
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official a
Legx;a(Lehf;)V
intermediary method_292
Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
named validate
Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
-