Record Class NodeState
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.NodeState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockPositionrecord component.booleanIndicates whether some other object is "equal to" this one.static NodeStateforInfo(SFVec3i blockPosition, ProjectedInventory inventory) inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of theusableBlockItemsrecord component.
-
Constructor Details
-
NodeState
Creates an instance of aNodeStaterecord class.- Parameters:
blockPosition- the value for theblockPositionrecord componentusableBlockItems- the value for theusableBlockItemsrecord component
-
-
Method Details
-
forInfo
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
usableBlockItems
public int usableBlockItems()Returns the value of theusableBlockItemsrecord component.- Returns:
- the value of the
usableBlockItemsrecord component
-