Class BoneMealTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.BoneMealTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/BoneMealTask
intermediary net/minecraft/class_4982
official bxx
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private long
private static final int
private long
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addLookWalkTargets
(VillagerEntity villager) private boolean
canBoneMeal
(BlockPos pos, ServerWorld world) findBoneMealPos
(ServerWorld world, VillagerEntity entity) protected void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
MAX_DURATION
private static final int MAX_DURATION- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_DURATION
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;MAX_DURATION:I
intermediary field_30184
Lnet/minecraft/class_4982;field_30184:I
official c
Lbxx;c:I
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector named startTime
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;startTime:J
intermediary field_23222
Lnet/minecraft/class_4982;field_23222:J
official d
Lbxx;d:J
-
lastEndEntityAge
private long lastEndEntityAge- Mappings:
Namespace Name Mixin selector named lastEndEntityAge
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;lastEndEntityAge:J
intermediary field_23223
Lnet/minecraft/class_4982;field_23223:J
official e
Lbxx;e:J
-
duration
private int duration- Mappings:
Namespace Name Mixin selector named duration
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;duration:I
intermediary field_23224
Lnet/minecraft/class_4982;field_23224:I
official f
Lbxx;f:I
-
pos
- Mappings:
Namespace Name Mixin selector named pos
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;pos:Ljava/util/Optional;
intermediary field_23225
Lnet/minecraft/class_4982;field_23225:Ljava/util/Optional;
official g
Lbxx;g:Ljava/util/Optional;
-
-
Constructor Details
-
BoneMealTask
public BoneMealTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_26327
Lnet/minecraft/class_4982;method_26327(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official a
Lbxx;a(Laqm;Lcly;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_26328
Lnet/minecraft/class_4982;method_26328(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official a
Lbxx;a(Laqm;Lcly;J)Z
-
findBoneMealPos
- Mappings:
Namespace Name Mixin selector named findBoneMealPos
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;findBoneMealPos(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
intermediary method_26329
Lnet/minecraft/class_4982;method_26329(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Ljava/util/Optional;
official b
Lbxx;b(Laqm;Lcly;)Ljava/util/Optional;
-
canBoneMeal
- Mappings:
Namespace Name Mixin selector named canBoneMeal
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;canBoneMeal(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
intermediary method_26326
Lnet/minecraft/class_4982;method_26326(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
official a
Lbxx;a(Lja;Laqm;)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_26330
Lnet/minecraft/class_4982;method_26330(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official b
Lbxx;b(Laqm;Lcly;J)V
-
addLookWalkTargets
- Mappings:
Namespace Name Mixin selector named addLookWalkTargets
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;addLookWalkTargets(Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_26324
Lnet/minecraft/class_4982;method_26324(Lnet/minecraft/class_1646;)V
official a
Lbxx;a(Lcly;)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_26331
Lnet/minecraft/class_4982;method_26331(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official c
Lbxx;c(Laqm;Lcly;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/BoneMealTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_26332
Lnet/minecraft/class_4982;method_26332(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official d
Lbxx;d(Laqm;Lcly;J)V
-