Class InventoryChangedCriterion

All Implemented Interfaces:
Criterion<InventoryChangedCriterion.Conditions>

public class InventoryChangedCriterion extends AbstractCriterion<InventoryChangedCriterion.Conditions>
Mappings:
Namespace Name
official bz
intermediary net/minecraft/class_2066
named net/minecraft/advancement/criterion/InventoryChangedCriterion
  • Constructor Details

    • InventoryChangedCriterion

      public InventoryChangedCriterion()
  • Method Details

    • conditionsFromJson

      public InventoryChangedCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<InventoryChangedCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lbz$a;
      intermediary method_8952 Lnet/minecraft/class_2066;method_8952(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2066$class_2068;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/InventoryChangedCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/InventoryChangedCriterion$Conditions;
    • trigger

      public void trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a(Lakr;Lcbt;Lcjf;)V
      intermediary method_8950 Lnet/minecraft/class_2066;method_8950(Lnet/minecraft/class_3222;Lnet/minecraft/class_1661;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/InventoryChangedCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/item/ItemStack;)V
    • trigger

      private void trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a(Lakr;Lcbt;Lcjf;III)V
      intermediary method_24362 Lnet/minecraft/class_2066;method_24362(Lnet/minecraft/class_3222;Lnet/minecraft/class_1661;Lnet/minecraft/class_1799;III)V
      named trigger Lnet/minecraft/advancement/criterion/InventoryChangedCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/item/ItemStack;III)V