Class Task<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
- Direct Known Subclasses:
AdmireItemTask
,AdmireItemTimeLimitTask
,AttackTask
,BoneMealTask
,BreedTask
,CelebrateRaidWinTask
,CompositeTask
,ConditionalTask
,CrossbowAttackTask
,DefeatTargetTask
,EndRaidTask
,FarmerVillagerTask
,FindEntityTask
,FindInteractionTargetTask
,FindPointOfInterestTask
,FindWalkTargetTask
,FollowCustomerTask
,FollowMobTask
,ForgetAngryAtTargetTask
,ForgetAttackTargetTask
,ForgetBellRingTask
,ForgetCompletedPointOfInterestTask
,ForgetTask
,GatherItemsVillagerTask
,GiveGiftsToHeroTask
,GoToCelebrateTask
,GoToIfNearbyTask
,GoToNearbyPositionTask
,GoToPointOfInterestTask
,GoToRememberedPositionTask
,GoToSecondaryPositionTask
,GoTowardsLookTarget
,GoToWorkTask
,HideInHomeTask
,HideWhenBellRingsTask
,HoldTradeOffersTask
,HuntFinishTask
,HuntHoglinTask
,JumpInBedTask
,LeapingChargeTask
,LongJumpTask
,LookAroundTask
,LoseJobOnSiteLossTask
,MeetVillagerTask
,MeleeAttackTask
,MemoryTransferTask
,OpenDoorsTask
,PacifyTask
,PanicTask
,PlayDeadTask
,PlayDeadTimerTask
,PlayWithVillagerBabiesTask
,PrepareRamTask
,RamImpactTask
,RangedApproachTask
,RemoveOffHandItemTask
,RidingTask
,RingBellTask
,ScheduleActivityTask
,SeekSkyTask
,SeekWaterTask
,SleepTask
,StartRaidTask
,StartRidingTask
,StayAboveWaterTask
,StopPanickingTask
,StrollTask
,TakeJobSiteTask
,TemptationCooldownTask
,TemptTask
,TimeLimitedTask
,UpdateAttackTargetTask
,VillagerBreedTask
,VillagerWalkTowardsTask
,VillagerWorkTask
,WaitTask
,WakeUpTask
,WalkHomeTask
,WalkTask
,WalkToNearestVisibleWantedItemTask
,WalkTowardClosestAdultTask
,WalkTowardJobSiteTask
,WanderAroundTask
,WanderIndoorsTask
,WantNewItemTask
,WorkStationCompetitionTask
- Mappings:
Namespace Name official avg
intermediary net/minecraft/class_4097
named net/minecraft/entity/ai/brain/task/Task
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private long
private int
private int
protected Map<MemoryModuleType<?>,MemoryModuleState>
private Task.Status
-
Constructor Summary
ConstructorDescriptionTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState)
Task(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, int runTime)
Task(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, int minRunTime, int maxRunTime)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning(ServerWorld world, E entity, long time)
private 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)
void
stop(ServerWorld world, E entity, long time)
void
tick(ServerWorld world, E entity, long time)
toString()
boolean
tryStarting(ServerWorld world, E entity, long time)
-
Field Details
-
DEFAULT_RUN_TIME
private static final int DEFAULT_RUN_TIME- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lavg;a:I
intermediary field_30112
Lnet/minecraft/class_4097;field_30112:I
named DEFAULT_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/Task;DEFAULT_RUN_TIME:I
-
requiredMemoryStates
- Mappings:
Namespace Name Mixin selector official b
Lavg;b:Ljava/util/Map;
intermediary field_19291
Lnet/minecraft/class_4097;field_19291:Ljava/util/Map;
named requiredMemoryStates
Lnet/minecraft/entity/ai/brain/task/Task;requiredMemoryStates:Ljava/util/Map;
-
status
- Mappings:
Namespace Name Mixin selector official c
Lavg;c:Lavg$a;
intermediary field_18333
Lnet/minecraft/class_4097;field_18333:Lnet/minecraft/class_4097$class_4098;
named status
Lnet/minecraft/entity/ai/brain/task/Task;status:Lnet/minecraft/entity/ai/brain/task/Task$Status;
-
endTime
private long endTime- Mappings:
Namespace Name Mixin selector official d
Lavg;d:J
intermediary field_18334
Lnet/minecraft/class_4097;field_18334:J
named endTime
Lnet/minecraft/entity/ai/brain/task/Task;endTime:J
-
minRunTime
private final int minRunTime- Mappings:
Namespace Name Mixin selector official e
Lavg;e:I
intermediary field_18335
Lnet/minecraft/class_4097;field_18335:I
named minRunTime
Lnet/minecraft/entity/ai/brain/task/Task;minRunTime:I
-
maxRunTime
private final int maxRunTime- Mappings:
Namespace Name Mixin selector official f
Lavg;f:I
intermediary field_18336
Lnet/minecraft/class_4097;field_18336:I
named maxRunTime
Lnet/minecraft/entity/ai/brain/task/Task;maxRunTime:I
-
-
Constructor Details
-
Task
- Mappings:
Namespace Name Mixin selector official <init>
Lavg;<init>(Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/Task;<init>(Ljava/util/Map;)V
-
Task
- Mappings:
Namespace Name Mixin selector official <init>
Lavg;<init>(Ljava/util/Map;I)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/Task;<init>(Ljava/util/Map;I)V
-
Task
public Task(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, int minRunTime, int maxRunTime)- Mappings:
Namespace Name Mixin selector official <init>
Lavg;<init>(Ljava/util/Map;II)V
intermediary <init>
Lnet/minecraft/class_4097;<init>(Ljava/util/Map;II)V
named <init>
Lnet/minecraft/entity/ai/brain/task/Task;<init>(Ljava/util/Map;II)V
-
-
Method Details
-
getStatus
- Mappings:
Namespace Name Mixin selector official a
Lavg;a()Lavg$a;
intermediary method_18921
Lnet/minecraft/class_4097;method_18921()Lnet/minecraft/class_4097$class_4098;
named getStatus
Lnet/minecraft/entity/ai/brain/task/Task;getStatus()Lnet/minecraft/entity/ai/brain/task/Task$Status;
-
tryStarting
- Mappings:
Namespace Name Mixin selector official e
Lavg;e(Labr;Latt;J)Z
intermediary method_18922
Lnet/minecraft/class_4097;method_18922(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
named tryStarting
Lnet/minecraft/entity/ai/brain/task/Task;tryStarting(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-
run
- Mappings:
Namespace Name Mixin selector official a
Lavg;a(Labr;Latt;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
tick
- Mappings:
Namespace Name Mixin selector official f
Lavg;f(Labr;Latt;J)V
intermediary method_18923
Lnet/minecraft/class_4097;method_18923(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named tick
Lnet/minecraft/entity/ai/brain/task/Task;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
keepRunning
- Mappings:
Namespace Name Mixin selector official d
Lavg;d(Labr;Latt;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
stop
- Mappings:
Namespace Name Mixin selector official g
Lavg;g(Labr;Latt;J)V
intermediary method_18925
Lnet/minecraft/class_4097;method_18925(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named stop
Lnet/minecraft/entity/ai/brain/task/Task;stop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
finishRunning
- Mappings:
Namespace Name Mixin selector official c
Lavg;c(Labr;Latt;J)V
intermediary method_18926
Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/Task;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
shouldKeepRunning
- Mappings:
Namespace Name Mixin selector official b
Lavg;b(Labr;Latt;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time)- Mappings:
Namespace Name Mixin selector official a
Lavg;a(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/Task;isTimeLimitExceeded(J)Z
-
shouldRun
- Mappings:
Namespace Name Mixin selector official a
Lavg;a(Labr;Latt;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
toString
-
hasRequiredMemoryState
- Mappings:
Namespace Name Mixin selector official a
Lavg;a(Latt;)Z
intermediary method_19546
Lnet/minecraft/class_4097;method_19546(Lnet/minecraft/class_1309;)Z
named hasRequiredMemoryState
Lnet/minecraft/entity/ai/brain/task/Task;hasRequiredMemoryState(Lnet/minecraft/entity/LivingEntity;)Z
-