IWaypoint.Tag| Constructor and Description |
|---|
Waypoint(java.lang.String name,
IWaypoint.Tag tag,
BetterBlockPos location) |
Waypoint(java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getCreationTimestamp()
Returns the unix epoch time in milliseconds that this waypoint
was created.
|
BetterBlockPos |
getLocation()
Returns the actual block position of this waypoint.
|
java.lang.String |
getName() |
IWaypoint.Tag |
getTag()
Returns the tag for this waypoint.
|
int |
hashCode() |
java.lang.String |
toString() |
public Waypoint(java.lang.String name, IWaypoint.Tag tag, BetterBlockPos location)
public Waypoint(java.lang.String name, IWaypoint.Tag tag, BetterBlockPos location, long creationTimestamp)
name - The waypoint nametag - The waypoint taglocation - The waypoint locationcreationTimestamp - When the waypoint was createdpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
public IWaypoint.Tag getTag()
IWaypointpublic long getCreationTimestamp()
IWaypointgetCreationTimestamp in interface IWaypointpublic BetterBlockPos getLocation()
IWaypointgetLocation in interface IWaypointpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object