Package net.minecraft.entity.ai.goal
Class SwimGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.SwimGoal
- Direct Known Subclasses:
FoxEntity.FoxSwimGoal
- Mappings:
Namespace Name official blointermediary net/minecraft/class_1347named net/minecraft/entity/ai/goal/SwimGoal
-
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, shouldContinue, start, stop, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official aLblo;a:Lbfc;intermediary field_6429Lnet/minecraft/class_1347;field_6429:Lnet/minecraft/class_1308;named mobLnet/minecraft/entity/ai/goal/SwimGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
-
Constructor Details
-
SwimGoal
- Mappings:
Namespace Name Mixin selector official <init>Lblo;<init>(Lbfc;)Vintermediary <init>Lnet/minecraft/class_1347;<init>(Lnet/minecraft/class_1308;)Vnamed <init>Lnet/minecraft/entity/ai/goal/SwimGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector official E_Lblu;E_()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()
-