Package net.minecraft.entity.ai.goal
Class EscapeDangerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeDangerGoal
- Direct Known Subclasses:
FoxEntity.EscapeWhenNotAggressiveGoal,PandaEntity.PandaEscapeDangerGoal,PolarBearEntity.PolarBearEscapeDangerGoal,RabbitEntity.EscapeDangerGoal,TurtleEntity.TurtleEscapeDangerGoal,WolfEntity.WolfEscapeDangerGoal
- Mappings:
Namespace Name official bnmintermediary net/minecraft/class_1374named net/minecraft/entity/ai/goal/EscapeDangerGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
RANGE_Y
public static final int RANGE_Y- See Also:
- Mappings:
Namespace Name Mixin selector official aLbnm;a:Iintermediary field_36271Lnet/minecraft/class_1374;field_36271:Inamed RANGE_YLnet/minecraft/entity/ai/goal/EscapeDangerGoal;RANGE_Y:I
-
mob
- Mappings:
Namespace Name Mixin selector official bLbnm;b:Lbgg;intermediary field_6549Lnet/minecraft/class_1374;field_6549:Lnet/minecraft/class_1314;named mobLnet/minecraft/entity/ai/goal/EscapeDangerGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
speed
protected final double speed- Mappings:
Namespace Name Mixin selector official cLbnm;c:Dintermediary field_6548Lnet/minecraft/class_1374;field_6548:Dnamed speedLnet/minecraft/entity/ai/goal/EscapeDangerGoal;speed:D
-
targetX
protected double targetX- Mappings:
Namespace Name Mixin selector official dLbnm;d:Dintermediary field_6547Lnet/minecraft/class_1374;field_6547:Dnamed targetXLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetX:D
-
targetY
protected double targetY- Mappings:
Namespace Name Mixin selector official eLbnm;e:Dintermediary field_6546Lnet/minecraft/class_1374;field_6546:Dnamed targetYLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetY:D
-
targetZ
protected double targetZ- Mappings:
Namespace Name Mixin selector official fLbnm;f:Dintermediary field_6550Lnet/minecraft/class_1374;field_6550:Dnamed targetZLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetZ:D
-
active
protected boolean active- Mappings:
Namespace Name Mixin selector official gLbnm;g:Zintermediary field_23227Lnet/minecraft/class_1374;field_23227:Znamed activeLnet/minecraft/entity/ai/goal/EscapeDangerGoal;active:Z
-
-
Constructor Details
-
EscapeDangerGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbnm;<init>(Lbgg;D)Vintermediary <init>Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;D)Vnamed <init>Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;D)V
-
-
Method Details
-
canStart
public boolean canStart() -
isInDanger
protected boolean isInDanger()- Mappings:
Namespace Name Mixin selector official hLbnm;h()Zintermediary method_40072Lnet/minecraft/class_1374;method_40072()Znamed isInDangerLnet/minecraft/entity/ai/goal/EscapeDangerGoal;isInDanger()Z
-
findTarget
protected boolean findTarget()- Mappings:
Namespace Name Mixin selector official iLbnm;i()Zintermediary method_6301Lnet/minecraft/class_1374;method_6301()Znamed findTargetLnet/minecraft/entity/ai/goal/EscapeDangerGoal;findTarget()Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector official kLbnm;k()Zintermediary method_26337Lnet/minecraft/class_1374;method_26337()Znamed isActiveLnet/minecraft/entity/ai/goal/EscapeDangerGoal;isActive()Z
-
start
public void start() -
stop
public void stop() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector official bLbmt;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
locateClosestWater
@Nullable protected @Nullable BlockPos locateClosestWater(BlockView world, Entity entity, int rangeX) - Mappings:
Namespace Name Mixin selector official aLbnm;a(Lclq;Lbfh;I)Lgu;intermediary method_6300Lnet/minecraft/class_1374;method_6300(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2338;named locateClosestWaterLnet/minecraft/entity/ai/goal/EscapeDangerGoal;locateClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/util/math/BlockPos;
-