Class PartReaderAspectTrigger

java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<PartReaderAspectTrigger.Instance>
org.cyclops.integrateddynamics.advancement.criterion.PartReaderAspectTrigger
All Implemented Interfaces:
net.minecraft.advancements.CriterionTrigger<PartReaderAspectTrigger.Instance>

public class PartReaderAspectTrigger extends net.minecraft.advancements.critereon.SimpleCriterionTrigger<PartReaderAspectTrigger.Instance>
Triggers when a part reader aspect is set.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger

    net.minecraft.advancements.CriterionTrigger.Listener<T extends net.minecraft.advancements.CriterionTriggerInstance>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createInstance(com.google.gson.JsonObject json, net.minecraft.advancements.critereon.ContextAwarePredicate entityPredicate, net.minecraft.advancements.critereon.DeserializationContext conditionsParser)
     
    net.minecraft.resources.ResourceLocation
     
    void
     
    void
    test(net.minecraft.server.level.ServerPlayer player, PartReaderAspectEvent event)
     

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

    addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartReaderAspectTrigger

      public PartReaderAspectTrigger()
  • Method Details

    • getId

      public net.minecraft.resources.ResourceLocation getId()
    • createInstance

      public PartReaderAspectTrigger.Instance createInstance(com.google.gson.JsonObject json, net.minecraft.advancements.critereon.ContextAwarePredicate entityPredicate, net.minecraft.advancements.critereon.DeserializationContext conditionsParser)
      Specified by:
      createInstance in class net.minecraft.advancements.critereon.SimpleCriterionTrigger<PartReaderAspectTrigger.Instance>
    • test

      public void test(net.minecraft.server.level.ServerPlayer player, PartReaderAspectEvent event)
    • onEvent

      public void onEvent(PartReaderAspectEvent event)