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.Object
public java.lang.String getName()
public IWaypoint.Tag getTag()
IWaypoint
public long getCreationTimestamp()
IWaypoint
getCreationTimestamp
in interface IWaypoint
public BetterBlockPos getLocation()
IWaypoint
getLocation
in interface IWaypoint
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object