Class MultiTickTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
- All Implemented Interfaces:
Task<E>
- Direct Known Subclasses:
ArmadilloBrain.RollUpTask
,BoneMealTask
,BreedTask
,BreezeJumpTask
,BreezeShootIfStuckTask
,BreezeShootTask
,BreezeSlideTowardsTargetTask
,CamelBrain.SitOrStandTask
,CelebrateRaidWinTask
,CroakTask
,CrossbowAttackTask
,DigTask
,DismountVehicleTask
,EmergeTask
,FarmerVillagerTask
,FleeTask
,FollowCustomerTask
,FrogEatEntityTask
,GatherItemsVillagerTask
,GiveGiftsToHeroTask
,GiveInventoryToLookTargetTask
,HoldTradeOffersTask
,JumpInBedTask
,LeapingChargeTask
,LongJumpTask
,LookAroundTask
,PanicTask
,PlayDeadTask
,PrepareRamTask
,RamImpactTask
,RandomLookAroundTask
,RoarTask
,SleepTask
,SnifferBrain.DiggingTask
,SnifferBrain.FeelHappyTask
,SnifferBrain.FinishDiggingTask
,SnifferBrain.ScentingTask
,SnifferBrain.SearchingTask
,SnifferBrain.SniffingTask
,SniffTask
,SonicBoomTask
,StayAboveWaterTask
,TemptationCooldownTask
,TemptTask
,VillagerBreedTask
,VillagerWorkTask
,WalkTowardJobSiteTask
,WanderAroundTask
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/MultiTickTask
intermediary net/minecraft/class_4097
official bvk
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private long
private final int
private final int
protected final Map
<MemoryModuleType<?>, MemoryModuleState> private MultiTickTask.Status
-
Constructor Summary
ConstructorDescriptionMultiTickTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState) MultiTickTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, int runTime) MultiTickTask
(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, int minRunTime, int maxRunTime) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld world, E entity, long time) getName()
protected boolean
hasRequiredMemoryState
(E entity) protected boolean
isTimeLimitExceeded
(long time) protected void
keepRunning
(ServerWorld world, E entity, long time) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldKeepRunning
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) final void
stop
(ServerWorld world, E entity, long time) final void
tick
(ServerWorld world, E entity, long time) final boolean
tryStarting
(ServerWorld world, E entity, long time)
-
Field Details
-
DEFAULT_RUN_TIME
public static final int DEFAULT_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;DEFAULT_RUN_TIME:I
intermediary field_30112
Lnet/minecraft/class_4097;field_30112:I
official a
Lbvk;a:I
-
requiredMemoryStates
- Mappings:
Namespace Name Mixin selector named requiredMemoryStates
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;requiredMemoryStates:Ljava/util/Map;
intermediary field_19291
Lnet/minecraft/class_4097;field_19291:Ljava/util/Map;
official b
Lbvk;b:Ljava/util/Map;
-
status
- Mappings:
Namespace Name Mixin selector named status
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;status:Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
intermediary field_18333
Lnet/minecraft/class_4097;field_18333:Lnet/minecraft/class_4097$class_4098;
official c
Lbvk;c:Lbvk$a;
-
endTime
private long endTime- Mappings:
Namespace Name Mixin selector named endTime
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;endTime:J
intermediary field_18334
Lnet/minecraft/class_4097;field_18334:J
official d
Lbvk;d:J
-
minRunTime
private final int minRunTime- Mappings:
Namespace Name Mixin selector named minRunTime
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;minRunTime:I
intermediary field_18335
Lnet/minecraft/class_4097;field_18335:I
official e
Lbvk;e:I
-
maxRunTime
private final int maxRunTime- Mappings:
Namespace Name Mixin selector named maxRunTime
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;maxRunTime:I
intermediary field_18336
Lnet/minecraft/class_4097;field_18336:I
official f
Lbvk;f:I
-
-
Constructor Details
-
MultiTickTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;)V
official <init>
Lbvk;<init>(Ljava/util/Map;)V
-
MultiTickTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;I)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;I)V
official <init>
Lbvk;<init>(Ljava/util/Map;I)V
-
MultiTickTask
public MultiTickTask(Map<MemoryModuleType<?>, MemoryModuleState> requiredMemoryState, int minRunTime, int maxRunTime) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;II)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;II)V
official <init>
Lbvk;<init>(Ljava/util/Map;II)V
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named getStatus
Lnet/minecraft/entity/ai/brain/task/Task;getStatus()Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
intermediary method_18921
Lnet/minecraft/class_7893;method_18921()Lnet/minecraft/class_4097$class_4098;
official a
Lbvl;a()Lbvk$a;
-
tryStarting
- Specified by:
tryStarting
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named tryStarting
Lnet/minecraft/entity/ai/brain/task/Task;tryStarting(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
intermediary method_18922
Lnet/minecraft/class_7893;method_18922(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
official e
Lbvl;e(Larf;Lbtr;J)Z
-
run
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official d
Lbvk;d(Larf;Lbtr;J)V
-
tick
- Specified by:
tick
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/entity/ai/brain/task/Task;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18923
Lnet/minecraft/class_7893;method_18923(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official f
Lbvl;f(Larf;Lbtr;J)V
-
keepRunning
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official c
Lbvk;c(Larf;Lbtr;J)V
-
stop
- Specified by:
stop
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named stop
Lnet/minecraft/entity/ai/brain/task/Task;stop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18925
Lnet/minecraft/class_7893;method_18925(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official g
Lbvl;g(Larf;Lbtr;J)V
-
finishRunning
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18926
Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official b
Lbvk;b(Larf;Lbtr;J)V
-
shouldKeepRunning
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
official a
Lbvk;a(Larf;Lbtr;J)Z
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time) - Mappings:
Namespace Name Mixin selector named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;isTimeLimitExceeded(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
official a
Lbvk;a(J)Z
-
shouldRun
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
official a
Lbvk;a(Larf;Lbtr;)Z
-
getName
- Specified by:
getName
in interfaceTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/entity/ai/brain/task/Task;getName()Ljava/lang/String;
intermediary method_46910
Lnet/minecraft/class_7893;method_46910()Ljava/lang/String;
official b
Lbvl;b()Ljava/lang/String;
-
hasRequiredMemoryState
- Mappings:
Namespace Name Mixin selector named hasRequiredMemoryState
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;hasRequiredMemoryState(Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_19546
Lnet/minecraft/class_4097;method_19546(Lnet/minecraft/class_1309;)Z
official a
Lbvk;a(Lbtr;)Z
-