Class SplineFloatGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.SplineFloatGoal
public class SplineFloatGoal
extends net.minecraft.world.entity.ai.goal.Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Constructor Summary
ConstructorsConstructorDescriptionSplineFloatGoal(net.minecraft.world.entity.Mob entity, SplineFloatGoalConfig config, Predicate<net.minecraft.world.entity.Mob> canUseCondition) Constructor with custom configuration. -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, stop, toString
-
Constructor Details
-
SplineFloatGoal
public SplineFloatGoal(net.minecraft.world.entity.Mob entity, SplineFloatGoalConfig config, Predicate<net.minecraft.world.entity.Mob> canUseCondition) Constructor with custom configuration.- Parameters:
entity- The mob to control.config- Configuration for pathfinding behavior.canUseCondition- Additional condition for when the goal can be used.
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-