Class ItemCriterion

All Implemented Interfaces:
Criterion<ItemCriterion.Conditions>

public class ItemCriterion extends AbstractCriterion<ItemCriterion.Conditions>
Mappings:
Namespace Name
official cb
intermediary net/minecraft/class_4711
named net/minecraft/advancement/criterion/ItemCriterion
  • Constructor Details

    • ItemCriterion

      public ItemCriterion()
  • Method Details

    • getConditionsCodec

      public com.mojang.serialization.Codec<ItemCriterion.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, BlockPos pos, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcb;a(Lane;Lhx;Lcmy;)V
      intermediary method_23889 Lnet/minecraft/class_4711;method_23889(Lnet/minecraft/class_3222;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/ItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V