Package net.minecraft.entity.mob
Class PatrolEntity.PatrolGoal<T extends PatrolEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.mob.PatrolEntity.PatrolGoal<T>
- Enclosing class:
- PatrolEntity
public static class PatrolEntity.PatrolGoal<T extends PatrolEntity> extends Goal
- Mappings:
Namespace Name official bfg$a
intermediary net/minecraft/class_3732$class_3733
named net/minecraft/entity/mob/PatrolEntity$PatrolGoal
-
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 T
entity
private double
followSpeed
private double
leaderSpeed
private long
nextPatrolSearchTime
-
Constructor Summary
Constructors Constructor Description PatrolGoal(T entity, double leaderSpeed, double followSpeed)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private List<PatrolEntity>
findPatrolTargets()
void
start()
void
stop()
void
tick()
private boolean
wander()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, shouldContinue, toString
-
Field Details
-
entity
- Mappings:
Namespace Name Mixin selector official a
Lbfg$a;a:Lbfg;
intermediary field_16481
Lnet/minecraft/class_3732$class_3733;field_16481:Lnet/minecraft/class_3732;
named entity
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;entity:Lnet/minecraft/entity/mob/PatrolEntity;
-
leaderSpeed
private final double leaderSpeed- Mappings:
Namespace Name Mixin selector official b
Lbfg$a;b:D
intermediary field_16480
Lnet/minecraft/class_3732$class_3733;field_16480:D
named leaderSpeed
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;leaderSpeed:D
-
followSpeed
private final double followSpeed- Mappings:
Namespace Name Mixin selector official c
Lbfg$a;c:D
intermediary field_16535
Lnet/minecraft/class_3732$class_3733;field_16535:D
named followSpeed
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;followSpeed:D
-
nextPatrolSearchTime
private long nextPatrolSearchTime- Mappings:
Namespace Name Mixin selector official d
Lbfg$a;d:J
intermediary field_20701
Lnet/minecraft/class_3732$class_3733;field_20701:J
named nextPatrolSearchTime
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;nextPatrolSearchTime:J
-
-
Constructor Details
-
PatrolGoal
- Mappings:
Namespace Name Mixin selector official <init>
Lbfg$a;<init>(Lbfg;DD)V
intermediary <init>
Lnet/minecraft/class_3732$class_3733;<init>(Lnet/minecraft/class_3732;DD)V
named <init>
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;<init>(Lnet/minecraft/entity/mob/PatrolEntity;DD)V
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start() -
stop
public void stop() -
tick
public void tick() -
findPatrolTargets
- Mappings:
Namespace Name Mixin selector official g
Lbfg$a;g()Ljava/util/List;
intermediary method_22333
Lnet/minecraft/class_3732$class_3733;method_22333()Ljava/util/List;
named findPatrolTargets
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;findPatrolTargets()Ljava/util/List;
-
wander
private boolean wander()- Mappings:
Namespace Name Mixin selector official h
Lbfg$a;h()Z
intermediary method_16222
Lnet/minecraft/class_3732$class_3733;method_16222()Z
named wander
Lnet/minecraft/entity/mob/PatrolEntity$PatrolGoal;wander()Z
-