Class ItemCraftedTrigger.Instance

java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
org.cyclops.cyclopscore.advancement.criterion.ItemCraftedTrigger.Instance
All Implemented Interfaces:
net.minecraft.advancements.CriterionTriggerInstance, ICriterionInstanceTestable<net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent>
Enclosing class:
ItemCraftedTrigger

public static class ItemCraftedTrigger.Instance extends net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance implements ICriterionInstanceTestable<net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instance(net.minecraft.resources.ResourceLocation criterionIn, net.minecraft.advancements.critereon.ContextAwarePredicate player, net.minecraft.advancements.critereon.ItemPredicate[] itemPredicates)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(net.minecraft.server.level.ServerPlayer player, net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent criterionData)
     

    Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance

    getCriterion, getPlayerPredicate, serializeToJson, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.advancements.CriterionTriggerInstance

    getCriterion, serializeToJson
  • Constructor Details

    • Instance

      public Instance(net.minecraft.resources.ResourceLocation criterionIn, net.minecraft.advancements.critereon.ContextAwarePredicate player, net.minecraft.advancements.critereon.ItemPredicate[] itemPredicates)
  • Method Details

    • test

      public boolean test(net.minecraft.server.level.ServerPlayer player, net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent criterionData)
      Specified by:
      test in interface ICriterionInstanceTestable<net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent>