Package baritone.api.cache
Class Waypoint
java.lang.Object
baritone.api.cache.Waypoint
- All Implemented Interfaces:
IWaypoint
Basic implementation of
IWaypoint- Author:
- leijurv
-
Nested Class Summary
Nested classes/interfaces inherited from interface baritone.api.cache.IWaypoint
IWaypoint.Tag -
Constructor Summary
ConstructorsConstructorDescriptionWaypoint(String name, IWaypoint.Tag tag, BetterBlockPos location) Waypoint(String name, IWaypoint.Tag tag, BetterBlockPos location, long creationTimestamp) Constructor called when a Waypoint is read from disk, adds the creationTimestamp as a parameter so that it is reserved after a waypoint is wrote to the disk. -
Method Summary
-
Constructor Details
-
Waypoint
-
Waypoint
Constructor called when a Waypoint is read from disk, adds the creationTimestamp as a parameter so that it is reserved after a waypoint is wrote to the disk.- Parameters:
name- The waypoint nametag- The waypoint taglocation- The waypoint locationcreationTimestamp- When the waypoint was created
-
-
Method Details
-
hashCode
-
getName
-
getTag
Description copied from interface:IWaypointReturns the tag for this waypoint. The tag is a category for the waypoint in a sense, it describes the source of the waypoint. -
getCreationTimestamp
Description copied from interface:IWaypointReturns the unix epoch time in milliseconds that this waypoint was created. This value should only be set once, when the waypoint is initially created, and not when it is being loaded from file.- Specified by:
getCreationTimestampin interfaceIWaypoint- Returns:
- The unix epoch milliseconds that this waypoint was created
-
getLocation
Description copied from interface:IWaypointReturns the actual block position of this waypoint.- Specified by:
getLocationin interfaceIWaypoint- Returns:
- The block position of this waypoint
-
toString
-
equals
-