Class TargetHitCriterion

All Implemented Interfaces:
Criterion<TargetHitCriterion.Conditions>

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

    • TargetHitCriterion

      public TargetHitCriterion()
  • Method Details

    • getConditionsCodec

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

      public void trigger(ServerPlayerEntity player, Entity projectile, Vec3d hitPos, int signalStrength)
      Mappings:
      Namespace Name Mixin selector
      official a Ldd;a(Lane;Lblv;Lelt;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
      named trigger Lnet/minecraft/advancement/criterion/TargetHitCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;I)V