Class TargetHitCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.TargetHitCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- TargetHitCriterion
public static class TargetHitCriterion.Conditions extends AbstractCriterionConditions
- Mappings:
Namespace Name official cp$a
intermediary net/minecraft/class_4851$class_4852
named net/minecraft/advancement/criterion/TargetHitCriterion$Conditions
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.Extended
projectile
private NumberRange.IntRange
signalStrength
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, NumberRange.IntRange signalStrength, EntityPredicate.Extended projectile)
-
Method Summary
Modifier and Type Method Description static TargetHitCriterion.Conditions
create(NumberRange.IntRange signalStrength, EntityPredicate.Extended projectile)
boolean
test(LootContext projectileContext, Vec3d hitPos, int signalStrength)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
signalStrength
- Mappings:
Namespace Name Mixin selector official a
Lcp$a;a:Lbz$d;
intermediary field_22430
Lnet/minecraft/class_4851$class_4852;field_22430:Lnet/minecraft/class_2096$class_2100;
named signalStrength
Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;signalStrength:Lnet/minecraft/predicate/NumberRange$IntRange;
-
projectile
- Mappings:
Namespace Name Mixin selector official b
Lcp$a;b:Lbg$b;
intermediary field_22512
Lnet/minecraft/class_4851$class_4852;field_22512:Lnet/minecraft/class_2048$class_5258;
named projectile
Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;projectile:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, NumberRange.IntRange signalStrength, EntityPredicate.Extended projectile)- Mappings:
Namespace Name Mixin selector official <init>
Lcp$a;<init>(Lbg$b;Lbz$d;Lbg$b;)V
intermediary <init>
Lnet/minecraft/class_4851$class_4852;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2048$class_5258;)V
named <init>
Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;)V
-
-
Method Details
-
create
public static TargetHitCriterion.Conditions create(NumberRange.IntRange signalStrength, EntityPredicate.Extended projectile)- Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Lbz$d;Lbg$b;)Lcp$a;
intermediary method_24865
Lnet/minecraft/class_4851$class_4852;method_24865(Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2048$class_5258;)Lnet/minecraft/class_4851$class_4852;
named create
Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;create(Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;)Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lag;a(Lci;)Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcp$a;a(Ldei;Ldiu;I)Z
intermediary method_24952
Lnet/minecraft/class_4851$class_4852;method_24952(Lnet/minecraft/class_47;Lnet/minecraft/class_243;I)Z
named test
Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;test(Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/util/math/Vec3d;I)Z
-