Class TaskTriggerer.TaskContext<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.TaskTriggerer.TaskContext<E>
All Implemented Interfaces:
com.mojang.datafixers.kinds.App<TaskTriggerer.TaskContext.Mu<E>,TaskTriggerer.K1<E>>, com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E>,TaskTriggerer.TaskContext.Mu<E>>, com.mojang.datafixers.kinds.Functor<TaskTriggerer.K1<E>,TaskTriggerer.TaskContext.Mu<E>>, com.mojang.datafixers.kinds.Kind1<TaskTriggerer.K1<E>,TaskTriggerer.TaskContext.Mu<E>>
Enclosing class:
TaskTriggerer<E extends LivingEntity,M>

public static final class TaskTriggerer.TaskContext<E extends LivingEntity> extends Object implements com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E>,TaskTriggerer.TaskContext.Mu<E>>
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext
intermediary net/minecraft/class_7898$class_7900
official byw$b
  • Constructor Details

    • TaskContext

      public TaskContext()
  • Method Details

    • getOptionalValue

      public <Value> Optional<Value> getOptionalValue(MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu,Value> result)
      Mappings:
      Namespace Name Mixin selector
      named getOptionalValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;getOptionalValue(Lnet/minecraft/entity/ai/brain/MemoryQueryResult;)Ljava/util/Optional;
      intermediary method_47233 Lnet/minecraft/class_7898$class_7900;method_47233(Lnet/minecraft/class_7906;)Ljava/util/Optional;
      official a Lbyw$b;a(Lbyx;)Ljava/util/Optional;
    • getValue

      public <Value> Value getValue(MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu,Value> result)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;getValue(Lnet/minecraft/entity/ai/brain/MemoryQueryResult;)Ljava/lang/Object;
      intermediary method_47243 Lnet/minecraft/class_7898$class_7900;method_47243(Lnet/minecraft/class_7906;)Ljava/lang/Object;
      official b Lbyw$b;b(Lbyx;)Ljava/lang/Object;
    • queryMemoryOptional

      public <Value> TaskTriggerer<E,MemoryQueryResult<com.mojang.datafixers.kinds.OptionalBox.Mu,Value>> queryMemoryOptional(MemoryModuleType<Value> type)
      Mappings:
      Namespace Name Mixin selector
      named queryMemoryOptional Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryOptional(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47235 Lnet/minecraft/class_7898$class_7900;method_47235(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Lccu;)Lbyw;
    • queryMemoryValue

      public <Value> TaskTriggerer<E,MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu,Value>> queryMemoryValue(MemoryModuleType<Value> type)
      Mappings:
      Namespace Name Mixin selector
      named queryMemoryValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryValue(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47244 Lnet/minecraft/class_7898$class_7900;method_47244(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      official b Lbyw$b;b(Lccu;)Lbyw;
    • queryMemoryAbsent

      public <Value> TaskTriggerer<E,MemoryQueryResult<com.mojang.datafixers.kinds.Const.Mu<com.mojang.datafixers.util.Unit>,Value>> queryMemoryAbsent(MemoryModuleType<Value> type)
      Mappings:
      Namespace Name Mixin selector
      named queryMemoryAbsent Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryAbsent(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47245 Lnet/minecraft/class_7898$class_7900;method_47245(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      official c Lbyw$b;c(Lccu;)Lbyw;
    • trigger

      public TaskTriggerer<E,com.mojang.datafixers.util.Unit> trigger(TaskRunnable<? super E> runnable)
      Mappings:
      Namespace Name Mixin selector
      named trigger Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;trigger(Lnet/minecraft/entity/ai/brain/task/TaskRunnable;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47234 Lnet/minecraft/class_7898$class_7900;method_47234(Lnet/minecraft/class_7911;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Lbyz;)Lbyw;
    • point

      public <A> TaskTriggerer<E,A> point(A a)
      Specified by:
      point in interface com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named point Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;point(Ljava/lang/Object;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47240 Lnet/minecraft/class_7898$class_7900;method_47240(Ljava/lang/Object;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Ljava/lang/Object;)Lbyw;
    • supply

      public <A> TaskTriggerer<E,A> supply(Supplier<String> nameSupplier, A value)
      Mappings:
      Namespace Name Mixin selector
      named supply Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;supply(Ljava/util/function/Supplier;Ljava/lang/Object;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47242 Lnet/minecraft/class_7898$class_7900;method_47242(Ljava/util/function/Supplier;Ljava/lang/Object;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Ljava/util/function/Supplier;Ljava/lang/Object;)Lbyw;
    • lift1

      public <A, R> Function<com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,A>,com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,R>> lift1(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,Function<A,R>> app)
      Specified by:
      lift1 in interface com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named lift1 Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;lift1(Lcom/mojang/datafixers/kinds/App;)Ljava/util/function/Function;
      intermediary lift1 Lnet/minecraft/class_7898$class_7900;lift1(Lcom/mojang/datafixers/kinds/App;)Ljava/util/function/Function;
      official lift1 Lbyw$b;lift1(Lcom/mojang/datafixers/kinds/App;)Ljava/util/function/Function;
    • map

      public <T, R> TaskTriggerer<E,R> map(Function<? super T,? extends R> function, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T> app)
      Specified by:
      map in interface com.mojang.datafixers.kinds.Functor<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;map(Ljava/util/function/Function;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47241 Lnet/minecraft/class_7898$class_7900;method_47241(Ljava/util/function/Function;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Ljava/util/function/Function;Lcom/mojang/datafixers/kinds/App;)Lbyw;
    • ap2

      public <A, B, R> TaskTriggerer<E,R> ap2(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,BiFunction<A,B,R>> app, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,A> app2, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,B> app3)
      Specified by:
      ap2 in interface com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named ap2 Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;ap2(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47237 Lnet/minecraft/class_7898$class_7900;method_47237(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lbyw;
    • ap3

      public <T1, T2, T3, R> TaskTriggerer<E,R> ap3(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,com.mojang.datafixers.util.Function3<T1,T2,T3,R>> app, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T1> app2, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T2> app3, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T3> app4)
      Specified by:
      ap3 in interface com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named ap3 Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;ap3(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47238 Lnet/minecraft/class_7898$class_7900;method_47238(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lbyw;
    • ap4

      public <T1, T2, T3, T4, R> TaskTriggerer<E,R> ap4(com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,com.mojang.datafixers.util.Function4<T1,T2,T3,T4,R>> app, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T1> app2, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T2> app3, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T3> app4, com.mojang.datafixers.kinds.App<TaskTriggerer.K1<E>,T4> app5)
      Specified by:
      ap4 in interface com.mojang.datafixers.kinds.Applicative<TaskTriggerer.K1<E extends LivingEntity>,TaskTriggerer.TaskContext.Mu<E extends LivingEntity>>
      Mappings:
      Namespace Name Mixin selector
      named ap4 Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;ap4(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
      intermediary method_47239 Lnet/minecraft/class_7898$class_7900;method_47239(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/class_7898;
      official a Lbyw$b;a(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lbyw;