Package net.minecraft.entity.mob
Class EndermanEntity.TeleportTowardsPlayerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.FollowTargetGoal<PlayerEntity>
net.minecraft.entity.mob.EndermanEntity.TeleportTowardsPlayerGoal
- Enclosing class:
- EndermanEntity
static class EndermanEntity.TeleportTowardsPlayerGoal extends FollowTargetGoal<PlayerEntity>
- Mappings:
Namespace Name official bev$c
intermediary net/minecraft/class_1560$class_1562
named net/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private EndermanEntity
enderman
private int
lookAtPlayerWarmup
private TargetPredicate
staringPlayerPredicate
private PlayerEntity
targetPlayer
private int
ticksSinceUnseenTeleport
private TargetPredicate
validTargetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description TeleportTowardsPlayerGoal(EndermanEntity enderman, Predicate<LivingEntity> predicate)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
findClosestTarget, getSearchBox, setTargetEntity
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
enderman
- Mappings:
Namespace Name Mixin selector official i
Lbev$c;i:Lbev;
intermediary field_7260
Lnet/minecraft/class_1560$class_1562;field_7260:Lnet/minecraft/class_1560;
named enderman
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;enderman:Lnet/minecraft/entity/mob/EndermanEntity;
-
targetPlayer
- Mappings:
Namespace Name Mixin selector official j
Lbev$c;j:Lbhl;
intermediary field_7259
Lnet/minecraft/class_1560$class_1562;field_7259:Lnet/minecraft/class_1657;
named targetPlayer
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;targetPlayer:Lnet/minecraft/entity/player/PlayerEntity;
-
lookAtPlayerWarmup
private int lookAtPlayerWarmup- Mappings:
Namespace Name Mixin selector official k
Lbev$c;k:I
intermediary field_7262
Lnet/minecraft/class_1560$class_1562;field_7262:I
named lookAtPlayerWarmup
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;lookAtPlayerWarmup:I
-
ticksSinceUnseenTeleport
private int ticksSinceUnseenTeleport- Mappings:
Namespace Name Mixin selector official l
Lbev$c;l:I
intermediary field_7261
Lnet/minecraft/class_1560$class_1562;field_7261:I
named ticksSinceUnseenTeleport
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;ticksSinceUnseenTeleport:I
-
staringPlayerPredicate
- Mappings:
Namespace Name Mixin selector official m
Lbev$c;m:Lbal;
intermediary field_18127
Lnet/minecraft/class_1560$class_1562;field_18127:Lnet/minecraft/class_4051;
named staringPlayerPredicate
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;staringPlayerPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
validTargetPredicate
- Mappings:
Namespace Name Mixin selector official n
Lbev$c;n:Lbal;
intermediary field_18876
Lnet/minecraft/class_1560$class_1562;field_18876:Lnet/minecraft/class_4051;
named validTargetPredicate
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;validTargetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
-
Constructor Details
-
TeleportTowardsPlayerGoal
public TeleportTowardsPlayerGoal(EndermanEntity enderman, @Nullable Predicate<LivingEntity> predicate)- Mappings:
Namespace Name Mixin selector official <init>
Lbev$c;<init>(Lbev;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1560$class_1562;<init>(Lnet/minecraft/class_1560;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/mob/EndermanEntity$TeleportTowardsPlayerGoal;<init>(Lnet/minecraft/entity/mob/EndermanEntity;Ljava/util/function/Predicate;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classFollowTargetGoal<PlayerEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawx;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
start
in classFollowTargetGoal<PlayerEntity>
- Mappings:
Namespace Name Mixin selector official c
Lawx;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-
stop
public void stop()- Overrides:
stop
in classTrackTargetGoal
- Mappings:
Namespace Name Mixin selector official d
Lawx;d()V
intermediary method_6270
Lnet/minecraft/class_1352;method_6270()V
named stop
Lnet/minecraft/entity/ai/goal/Goal;stop()V
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classTrackTargetGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
tick
public void tick()
-