Class UsingItemCriterion

All Implemented Interfaces:
Criterion<UsingItemCriterion.Conditions>

public class UsingItemCriterion extends AbstractCriterion<UsingItemCriterion.Conditions>
Mappings:
Namespace Name
official dh
intermediary net/minecraft/class_6409
named net/minecraft/advancement/criterion/UsingItemCriterion
  • Constructor Details

    • UsingItemCriterion

      public UsingItemCriterion()
  • Method Details

    • getConditionsCodec

      public com.mojang.serialization.Codec<UsingItemCriterion.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, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Ldh;a(Lane;Lcmy;)V
      intermediary method_37262 Lnet/minecraft/class_6409;method_37262(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/UsingItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;)V