Package net.minecraft.predicate.entity
Class LootContextPredicate
java.lang.Object
net.minecraft.predicate.entity.LootContextPredicate
A list of loot conditions applied to entities. All conditions must match for this
unified conditions to match. Mainly used by advancements.
- Mappings:
Namespace Name official bb
intermediary net/minecraft/class_5258
named net/minecraft/predicate/entity/LootContextPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootContextPredicate>
private final Predicate<LootContext>
private final List<LootCondition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootContextPredicate
create
(LootCondition[] conditions) boolean
test
(LootContext context) void
validateConditions
(LootTableReporter reporter)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lbb;a:Lcom/mojang/serialization/Codec;
intermediary field_47234
Lnet/minecraft/class_5258;field_47234:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/predicate/entity/LootContextPredicate;CODEC:Lcom/mojang/serialization/Codec;
-
conditions
- Mappings:
Namespace Name Mixin selector official b
Lbb;b:Ljava/util/List;
intermediary field_24389
Lnet/minecraft/class_5258;field_24389:Ljava/util/List;
named conditions
Lnet/minecraft/predicate/entity/LootContextPredicate;conditions:Ljava/util/List;
-
combinedCondition
- Mappings:
Namespace Name Mixin selector official c
Lbb;c:Ljava/util/function/Predicate;
intermediary field_24390
Lnet/minecraft/class_5258;field_24390:Ljava/util/function/Predicate;
named combinedCondition
Lnet/minecraft/predicate/entity/LootContextPredicate;combinedCondition:Ljava/util/function/Predicate;
-
-
Constructor Details
-
LootContextPredicate
LootContextPredicate(List<LootCondition> conditions) - Mappings:
Namespace Name Mixin selector official <init>
Lbb;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_5258;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/predicate/entity/LootContextPredicate;<init>(Ljava/util/List;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbb;a([Lejv;)Lbb;
intermediary method_27973
Lnet/minecraft/class_5258;method_27973([Lnet/minecraft/class_5341;)Lnet/minecraft/class_5258;
named create
Lnet/minecraft/predicate/entity/LootContextPredicate;create([Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/predicate/entity/LootContextPredicate;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbb;a(Legw;)Z
intermediary method_27806
Lnet/minecraft/class_5258;method_27806(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/predicate/entity/LootContextPredicate;test(Lnet/minecraft/loot/context/LootContext;)Z
-
validateConditions
- Mappings:
Namespace Name Mixin selector official a
Lbb;a(Lehf;)V
intermediary method_54959
Lnet/minecraft/class_5258;method_54959(Lnet/minecraft/class_58;)V
named validateConditions
Lnet/minecraft/predicate/entity/LootContextPredicate;validateConditions(Lnet/minecraft/loot/LootTableReporter;)V
-