Class TargetHitCriterion

All Implemented Interfaces:
Criterion<TargetHitCriterion.Conditions>

public class TargetHitCriterion extends AbstractCriterion<TargetHitCriterion.Conditions>
Mappings:
Namespace Name
named net/minecraft/advancement/criterion/TargetHitCriterion
intermediary net/minecraft/class_4851
official ef
  • Constructor Details

    • TargetHitCriterion

      public TargetHitCriterion()
  • Method Details

    • getConditionsCodec

      public com.mojang.serialization.Codec<TargetHitCriterion.Conditions> getConditionsCodec()
      Mappings:
      Namespace Name Mixin selector
      named getConditionsCodec Lnet/minecraft/advancement/criterion/Criterion;getConditionsCodec()Lcom/mojang/serialization/Codec;
      intermediary method_54937 Lnet/minecraft/class_179;method_54937()Lcom/mojang/serialization/Codec;
      official a Laq;a()Lcom/mojang/serialization/Codec;
    • trigger

      public void trigger(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength)
      Mappings:
      Namespace Name Mixin selector
      named trigger Lnet/minecraft/advancement/criterion/TargetHitCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;I)V
      intermediary method_24861 Lnet/minecraft/class_4851;method_24861(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;I)V
      official a Lef;a(Laqu;Lbsq;Leww;I)V