public class InventoryChangedCriterion extends AbstractCriterion<InventoryChangedCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
InventoryChangedCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
InventoryChangedCriterion() |
Modifier and Type | Method and Description |
---|---|
InventoryChangedCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
PlayerInventory inventory,
ItemStack stack) |
private void |
trigger(ServerPlayerEntity player,
PlayerInventory inventory,
ItemStack stack,
int full,
int empty,
int occupied) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private static final Identifier ID
public Identifier getId()
public InventoryChangedCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<InventoryChangedCriterion.Conditions>
public void trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack)
private void trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)