Class BehaviorBuilder<E extends LivingEntity,M>
java.lang.Object
net.minecraft.world.entity.ai.behavior.declarative.BehaviorBuilder<E,M>
- All Implemented Interfaces:
com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>,
M>
- Direct Known Subclasses:
BehaviorBuilder.Constant
,BehaviorBuilder.PureMemory
,BehaviorBuilder.TriggerWrapper
public class BehaviorBuilder<E extends LivingEntity,M>
extends Object
implements com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>,M>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final class
BehaviorBuilder.Constant<E extends LivingEntity,
A> static final class
BehaviorBuilder.Instance<E extends LivingEntity>
static final class
BehaviorBuilder.Mu<E extends LivingEntity>
(package private) static final class
BehaviorBuilder.PureMemory<E extends LivingEntity,
F extends com.mojang.datafixers.kinds.K1, Value> (package private) static interface
BehaviorBuilder.TriggerWithResult<E extends LivingEntity,
R> (package private) static final class
BehaviorBuilder.TriggerWrapper<E extends LivingEntity>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends LivingEntity>
OneShot<E> create
(Function<BehaviorBuilder.Instance<E>, ? extends com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, Trigger<E>>> p_259386_) (package private) static <E extends LivingEntity,
M>
BehaviorBuilder<E, M> create
(BehaviorBuilder.TriggerWithResult<E, M> p_259575_) (package private) static <E extends LivingEntity,
M>
BehaviorBuilder.TriggerWithResult<E, M> get
(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259615_) static <E extends LivingEntity>
BehaviorBuilder.Instance<E> instance()
static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> triggerIf
(BiPredicate<ServerLevel, E> p_259227_) static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity>
OneShot<E> static <E extends LivingEntity,
M>
BehaviorBuilder<E, M> unbox
(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259593_)
-
Field Details
-
trigger
-
-
Constructor Details
-
BehaviorBuilder
BehaviorBuilder(BehaviorBuilder.TriggerWithResult<E, M> p_260164_)
-
-
Method Details
-
unbox
public static <E extends LivingEntity,M> BehaviorBuilder<E,M> unbox(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259593_) -
instance
-
create
public static <E extends LivingEntity> OneShot<E> create(Function<BehaviorBuilder.Instance<E>, ? extends com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, Trigger<E>>> p_259386_) -
sequence
public static <E extends LivingEntity> OneShot<E> sequence(Trigger<? super E> p_260174_, Trigger<? super E> p_259134_) -
triggerIf
public static <E extends LivingEntity> OneShot<E> triggerIf(Predicate<E> p_260059_, OneShot<? super E> p_259640_) -
triggerIf
-
triggerIf
-
get
static <E extends LivingEntity,M> BehaviorBuilder.TriggerWithResult<E,M> get(com.mojang.datafixers.kinds.App<BehaviorBuilder.Mu<E>, M> p_259615_) -
create
static <E extends LivingEntity,M> BehaviorBuilder<E,M> create(BehaviorBuilder.TriggerWithResult<E, M> p_259575_)
-