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
official boj$b
intermediary net/minecraft/class_7898$class_7900
named net/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext
  • 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
      official a Lboj$b;a(Lbok;)Ljava/util/Optional;
      intermediary method_47233 Lnet/minecraft/class_7898$class_7900;method_47233(Lnet/minecraft/class_7906;)Ljava/util/Optional;
      named getOptionalValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;getOptionalValue(Lnet/minecraft/entity/ai/brain/MemoryQueryResult;)Ljava/util/Optional;
    • getValue

      public <Value> Value getValue(MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu,Value> result)
      Mappings:
      Namespace Name Mixin selector
      official b Lboj$b;b(Lbok;)Ljava/lang/Object;
      intermediary method_47243 Lnet/minecraft/class_7898$class_7900;method_47243(Lnet/minecraft/class_7906;)Ljava/lang/Object;
      named getValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;getValue(Lnet/minecraft/entity/ai/brain/MemoryQueryResult;)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
      official a Lboj$b;a(Lbsh;)Lboj;
      intermediary method_47235 Lnet/minecraft/class_7898$class_7900;method_47235(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      named queryMemoryOptional Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryOptional(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
    • queryMemoryValue

      public <Value> TaskTriggerer<E,MemoryQueryResult<com.mojang.datafixers.kinds.IdF.Mu,Value>> queryMemoryValue(MemoryModuleType<Value> type)
      Mappings:
      Namespace Name Mixin selector
      official b Lboj$b;b(Lbsh;)Lboj;
      intermediary method_47244 Lnet/minecraft/class_7898$class_7900;method_47244(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      named queryMemoryValue Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryValue(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
    • 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
      official c Lboj$b;c(Lbsh;)Lboj;
      intermediary method_47245 Lnet/minecraft/class_7898$class_7900;method_47245(Lnet/minecraft/class_4140;)Lnet/minecraft/class_7898;
      named queryMemoryAbsent Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;queryMemoryAbsent(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
    • trigger

      public TaskTriggerer<E,com.mojang.datafixers.util.Unit> trigger(TaskRunnable<? super E> runnable)
      Mappings:
      Namespace Name Mixin selector
      official a Lboj$b;a(Lbom;)Lboj;
      intermediary method_47234 Lnet/minecraft/class_7898$class_7900;method_47234(Lnet/minecraft/class_7911;)Lnet/minecraft/class_7898;
      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;
    • 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
      official a Lboj$b;a(Ljava/lang/Object;)Lboj;
      intermediary method_47240 Lnet/minecraft/class_7898$class_7900;method_47240(Ljava/lang/Object;)Lnet/minecraft/class_7898;
      named point Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;point(Ljava/lang/Object;)Lnet/minecraft/entity/ai/brain/task/TaskTriggerer;
    • supply

      public <A> TaskTriggerer<E,A> supply(Supplier<String> nameSupplier, A value)
      Mappings:
      Namespace Name Mixin selector
      official a Lboj$b;a(Ljava/util/function/Supplier;Ljava/lang/Object;)Lboj;
      intermediary method_47242 Lnet/minecraft/class_7898$class_7900;method_47242(Ljava/util/function/Supplier;Ljava/lang/Object;)Lnet/minecraft/class_7898;
      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;
    • 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
      official lift1 Lboj$b;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;
      named lift1 Lnet/minecraft/entity/ai/brain/task/TaskTriggerer$TaskContext;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
      official a Lboj$b;a(Ljava/util/function/Function;Lcom/mojang/datafixers/kinds/App;)Lboj;
      intermediary method_47241 Lnet/minecraft/class_7898$class_7900;method_47241(Ljava/util/function/Function;Lcom/mojang/datafixers/kinds/App;)Lnet/minecraft/class_7898;
      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;
    • 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
      official a Lboj$b;a(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lboj;
      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;
      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;
    • 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
      official a Lboj$b;a(Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;Lcom/mojang/datafixers/kinds/App;)Lboj;
      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;
      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;
    • 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
      official a Lboj$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;)Lboj;
      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;
      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;