Package baritone.api.pathing.goals
Class GoalTwoBlocks
java.lang.Object
baritone.api.pathing.goals.GoalTwoBlocks
- All Implemented Interfaces:
Goal,IGoalRenderPos
Useful if the goal is just to mine a block. This goal will be satisfied if the specified
BlockPos is at to or above the specified position for this goal.- Author:
- leijurv
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGoalTwoBlocks(int x, int y, int z) GoalTwoBlocks(net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionbooleannet.minecraft.core.BlockPosinthashCode()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()
-
Field Details
-
x
The X block position of this goal -
y
The Y block position of this goal -
z
The Z block position of this goal
-
-
Constructor Details
-
GoalTwoBlocks
-
GoalTwoBlocks
-
-
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 -
getGoalPos
- Specified by:
getGoalPosin interfaceIGoalRenderPos
-
equals
-
hashCode
-
toString
-