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,RabbitEntity.EscapeDangerGoal,TameableEntity.TameableEscapeDangerGoal,TurtleEntity.TurtleEscapeDangerGoal
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/EscapeDangerGoalintermediary net/minecraft/class_1374official cbf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprivate final Function<PathAwareEntity, TagKey<DamageType>> protected final PathAwareEntitystatic final intprotected final doubleprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionEscapeDangerGoal(PathAwareEntity mob, double speed) EscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) EscapeDangerGoal(PathAwareEntity mob, double speed, TagKey<DamageType> dangerousDamageTypes) -
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 named RANGE_YLnet/minecraft/entity/ai/goal/EscapeDangerGoal;RANGE_Y:Iintermediary field_36271Lnet/minecraft/class_1374;field_36271:Iofficial bLcbf;b:I
-
mob
- Mappings:
Namespace Name Mixin selector named mobLnet/minecraft/entity/ai/goal/EscapeDangerGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;intermediary field_6549Lnet/minecraft/class_1374;field_6549:Lnet/minecraft/class_1314;official cLcbf;c:Lbtw;
-
speed
protected final double speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/ai/goal/EscapeDangerGoal;speed:Dintermediary field_6548Lnet/minecraft/class_1374;field_6548:Dofficial dLcbf;d:D
-
targetX
protected double targetX- Mappings:
Namespace Name Mixin selector named targetXLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetX:Dintermediary field_6547Lnet/minecraft/class_1374;field_6547:Dofficial eLcbf;e:D
-
targetY
protected double targetY- Mappings:
Namespace Name Mixin selector named targetYLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetY:Dintermediary field_6546Lnet/minecraft/class_1374;field_6546:Dofficial fLcbf;f:D
-
targetZ
protected double targetZ- Mappings:
Namespace Name Mixin selector named targetZLnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetZ:Dintermediary field_6550Lnet/minecraft/class_1374;field_6550:Dofficial gLcbf;g:D
-
active
protected boolean active- Mappings:
Namespace Name Mixin selector named activeLnet/minecraft/entity/ai/goal/EscapeDangerGoal;active:Zintermediary field_23227Lnet/minecraft/class_1374;field_23227:Zofficial hLcbf;h:Z
-
entityToDangerousDamageTypes
- Mappings:
Namespace Name Mixin selector named entityToDangerousDamageTypesLnet/minecraft/entity/ai/goal/EscapeDangerGoal;entityToDangerousDamageTypes:Ljava/util/function/Function;intermediary field_52011Lnet/minecraft/class_1374;field_52011:Ljava/util/function/Function;official aLcbf;a:Ljava/util/function/Function;
-
-
Constructor Details
-
EscapeDangerGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;D)Vintermediary <init>Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;D)Vofficial <init>Lcbf;<init>(Lbtw;D)V
-
EscapeDangerGoal
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLnet/minecraft/registry/tag/TagKey;)Vintermediary <init>Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;DLnet/minecraft/class_6862;)Vofficial <init>Lcbf;<init>(Lbtw;DLawu;)V
-
EscapeDangerGoal
public EscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLjava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;DLjava/util/function/Function;)Vofficial <init>Lcbf;<init>(Lbtw;DLjava/util/function/Function;)V
-
-
Method Details
-
canStart
public boolean canStart() -
isInDanger
protected boolean isInDanger()- Mappings:
Namespace Name Mixin selector named isInDangerLnet/minecraft/entity/ai/goal/EscapeDangerGoal;isInDanger()Zintermediary method_40072Lnet/minecraft/class_1374;method_40072()Zofficial hLcbf;h()Z
-
findTarget
protected boolean findTarget()- Mappings:
Namespace Name Mixin selector named findTargetLnet/minecraft/entity/ai/goal/EscapeDangerGoal;findTarget()Zintermediary method_6301Lnet/minecraft/class_1374;method_6301()Zofficial iLcbf;i()Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector named isActiveLnet/minecraft/entity/ai/goal/EscapeDangerGoal;isActive()Zintermediary method_26337Lnet/minecraft/class_1374;method_26337()Zofficial kLcbf;k()Z
-
start
public void start() -
stop
public void stop() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector named shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial cLcam;c()Z
-
locateClosestWater
@Nullable protected @Nullable BlockPos locateClosestWater(BlockView world, Entity entity, int rangeX) - Mappings:
Namespace Name Mixin selector named locateClosestWaterLnet/minecraft/entity/ai/goal/EscapeDangerGoal;locateClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/util/math/BlockPos;intermediary method_6300Lnet/minecraft/class_1374;method_6300(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2338;official aLcbf;a(Ldcc;Lbsr;I)Ljd;
-