Class PlayWithVillagerBabiesTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.PlayWithVillagerBabiesTask
- Mappings:
Namespace Name official awo
intermediary net/minecraft/class_4218
named net/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private static float
private static int
private static int
private static float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate @Nullable LivingEntity
findVisibleVillagerBaby(LivingEntity entity)
private Map<LivingEntity,Integer>
private LivingEntity
getInteractionTarget(LivingEntity entity)
private Optional<LivingEntity>
private Optional<LivingEntity>
getVisibleMob(PathAwareEntity entity)
private List<LivingEntity>
getVisibleVillagerBabies(PathAwareEntity entity)
private boolean
hasInteractionTarget(LivingEntity entity)
private boolean
hasVisibleVillagerBabies(PathAwareEntity entity)
private boolean
isInteractionTargetOf(LivingEntity entity, LivingEntity other)
protected void
run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
private void
setGroundTarget(ServerWorld world, PathAwareEntity entity, LivingEntity unusedBaby)
private static void
setPlayTarget(PathAwareEntity entity, LivingEntity target)
protected boolean
shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lawo;a:I
intermediary field_30151
Lnet/minecraft/class_4218;field_30151:I
named HORIZONTAL_RANGE
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;HORIZONTAL_RANGE:I
-
VERTICAL_RANGE
private static final int VERTICAL_RANGE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Lawo;c:I
intermediary field_30152
Lnet/minecraft/class_4218;field_30152:I
named VERTICAL_RANGE
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;VERTICAL_RANGE:I
-
WALK_SPEED
private static final float WALK_SPEED- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lawo;d:F
intermediary field_30153
Lnet/minecraft/class_4218;field_30153:F
named WALK_SPEED
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;WALK_SPEED:F
-
PLAYING_WALK_SPEED
private static final float PLAYING_WALK_SPEED- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lawo;e:F
intermediary field_30154
Lnet/minecraft/class_4218;field_30154:F
named PLAYING_WALK_SPEED
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;PLAYING_WALK_SPEED:F
-
MAX_BABY_INTERACTION_COUNT
private static final int MAX_BABY_INTERACTION_COUNT- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lawo;f:I
intermediary field_30155
Lnet/minecraft/class_4218;field_30155:I
named MAX_BABY_INTERACTION_COUNT
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;MAX_BABY_INTERACTION_COUNT:I
-
RUN_CHANCE
private static final int RUN_CHANCE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Lawo;g:I
intermediary field_30156
Lnet/minecraft/class_4218;field_30156:I
named RUN_CHANCE
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;RUN_CHANCE:I
-
-
Constructor Details
-
PlayWithVillagerBabiesTask
public PlayWithVillagerBabiesTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Labr;Lauc;)Z
intermediary method_19583
Lnet/minecraft/class_4218;method_19583(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Labr;Lauc;J)V
intermediary method_19584
Lnet/minecraft/class_4218;method_19584(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
setGroundTarget
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Labr;Lauc;Latt;)V
intermediary method_19585
Lnet/minecraft/class_4218;method_19585(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;Lnet/minecraft/class_1309;)V
named setGroundTarget
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;setGroundTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V
-
setPlayTarget
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Lauc;Latt;)V
intermediary method_19580
Lnet/minecraft/class_4218;method_19580(Lnet/minecraft/class_1314;Lnet/minecraft/class_1309;)V
named setPlayTarget
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;setPlayTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getVisibleMob
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Lauc;)Ljava/util/Optional;
intermediary method_19579
Lnet/minecraft/class_4218;method_19579(Lnet/minecraft/class_1314;)Ljava/util/Optional;
named getVisibleMob
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getVisibleMob(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
-
getLeastPopularBabyInteractionTarget
- Mappings:
Namespace Name Mixin selector official b
Lawo;b(Lauc;)Ljava/util/Optional;
intermediary method_19588
Lnet/minecraft/class_4218;method_19588(Lnet/minecraft/class_1314;)Ljava/util/Optional;
named getLeastPopularBabyInteractionTarget
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getLeastPopularBabyInteractionTarget(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Optional;
-
getBabyInteractionTargetCounts
- Mappings:
Namespace Name Mixin selector official c
Lawo;c(Lauc;)Ljava/util/Map;
intermediary method_19592
Lnet/minecraft/class_4218;method_19592(Lnet/minecraft/class_1314;)Ljava/util/Map;
named getBabyInteractionTargetCounts
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getBabyInteractionTargetCounts(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/Map;
-
getVisibleVillagerBabies
- Mappings:
Namespace Name Mixin selector official d
Lawo;d(Lauc;)Ljava/util/List;
intermediary method_19594
Lnet/minecraft/class_4218;method_19594(Lnet/minecraft/class_1314;)Ljava/util/List;
named getVisibleVillagerBabies
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getVisibleVillagerBabies(Lnet/minecraft/entity/mob/PathAwareEntity;)Ljava/util/List;
-
getInteractionTarget
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Latt;)Latt;
intermediary method_19576
Lnet/minecraft/class_4218;method_19576(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
named getInteractionTarget
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;getInteractionTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
-
findVisibleVillagerBaby
- Mappings:
Namespace Name Mixin selector official b
Lawo;b(Latt;)Latt;
intermediary method_19586
Lnet/minecraft/class_4218;method_19586(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
named findVisibleVillagerBaby
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;findVisibleVillagerBaby(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
-
hasInteractionTarget
- Mappings:
Namespace Name Mixin selector official c
Lawo;c(Latt;)Z
intermediary method_19593
Lnet/minecraft/class_4218;method_19593(Lnet/minecraft/class_1309;)Z
named hasInteractionTarget
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;hasInteractionTarget(Lnet/minecraft/entity/LivingEntity;)Z
-
isInteractionTargetOf
- Mappings:
Namespace Name Mixin selector official a
Lawo;a(Latt;Latt;)Z
intermediary method_19577
Lnet/minecraft/class_4218;method_19577(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named isInteractionTargetOf
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;isInteractionTargetOf(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
hasVisibleVillagerBabies
- Mappings:
Namespace Name Mixin selector official e
Lawo;e(Lauc;)Z
intermediary method_19590
Lnet/minecraft/class_4218;method_19590(Lnet/minecraft/class_1314;)Z
named hasVisibleVillagerBabies
Lnet/minecraft/entity/ai/brain/task/PlayWithVillagerBabiesTask;hasVisibleVillagerBabies(Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-