Package baritone.api.pathing.goals
Class GoalXZ
java.lang.Object
baritone.api.pathing.goals.GoalXZ
- All Implemented Interfaces:
Goal
Useful for long-range goals that don't have a specific Y level.
- Author:
- leijurv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecalculate(double xDiff, double zDiff) booleanstatic GoalXZfromDirection(net.minecraft.world.phys.Vec3 origin, float yaw, double distance) intgetX()intgetZ()inthashCode()doubleheuristic(int x, int y, int z) Estimate the number of ticks it will take to get to the goalbooleanisInGoal(int x, int y, int z) Returns whether or not the specified position meets the requirement for this goal based.toString()
-
Constructor Details
-
GoalXZ
-
GoalXZ
-
-
Method Details
-
isInGoal
Description copied from interface:GoalReturns whether or not the specified position meets the requirement for this goal based. -
heuristic
Description copied from interface:GoalEstimate the number of ticks it will take to get to the goal -
equals
-
hashCode
-
toString
-
calculate
-
fromDirection
public static GoalXZ fromDirection(net.minecraft.world.phys.Vec3 origin, float yaw, double distance) -
getX
-
getZ
-