Class TargetHitCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.TargetHitCriterion.Conditions
All Implemented Interfaces:
AbstractCriterion.Conditions, CriterionConditions
Enclosing class:
TargetHitCriterion

public static class TargetHitCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official de$a
intermediary net/minecraft/class_4851$class_4852
named net/minecraft/advancement/criterion/TargetHitCriterion$Conditions
  • Field Details

    • signalStrength

      private final NumberRange.IntRange signalStrength
      Mappings:
      Namespace Name Mixin selector
      official a Lde$a;a:Lcl$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

      private final Optional<LootContextPredicate> projectile
      Mappings:
      Namespace Name Mixin selector
      official b Lde$a;b:Ljava/util/Optional;
      intermediary field_22512 Lnet/minecraft/class_4851$class_4852;field_22512:Ljava/util/Optional;
      named projectile Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;projectile:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange signalStrength, Optional<LootContextPredicate> projectile)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lde$a;<init>(Ljava/util/Optional;Lcl$d;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4851$class_4852;<init>(Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/Optional;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lde$a;a(Lcl$d;Ljava/util/Optional;)Lam;
      intermediary method_24865 Lnet/minecraft/class_4851$class_4852;method_24865(Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/TargetHitCriterion$Conditions;create(Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
    • test

      public boolean test(LootContext projectile, Vec3d hitPos, int signalStrength)
      Mappings:
      Namespace Name Mixin selector
      official a Lde$a;a(Lecq;Lehn;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