Record Class GoalTwoBlocks
java.lang.Object
java.lang.Record
com.zenith.feature.pathfinder.goals.GoalTwoBlocks
- Record Components:
x- The X block position of this goaly- The Y block position of this goalz- The Z block position of this goal
-
Constructor Summary
ConstructorsConstructorDescriptionGoalTwoBlocks(int x, int y, int z) Creates an instance of aGoalTwoBlocksrecord class.GoalTwoBlocks(BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.doubleheuristic(int x, int y, int z) booleanisInGoal(int x, int y, int z) toString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
GoalTwoBlocks
-
GoalTwoBlocks
-
-
Method Details
-
isInGoal
-
heuristic
-
hashCode
-
toString
-
getGoalPos
- Specified by:
getGoalPosin interfacePosGoal
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
-
y
-
z
-