T - The type of location snapshot for self referencingpublic interface LocatableSnapshot<T extends LocatableSnapshot<T>> extends ImmutableDataHolder<T>
ImmutableDataHolder that may be linked to a particular
Location. Being that a LocatableSnapshot may be built
by an ImmutableDataBuilder, the Location may be
null such that getLocation() returns
Optional.empty().| Modifier and Type | Method and Description |
|---|---|
Optional<Location<World>> |
getLocation()
Gets the
Location of the snapshot at which it may have been
taken from. |
com.flowpowered.math.vector.Vector3i |
getPosition()
Gets the saved block position.
|
UUID |
getWorldUniqueId()
Gets the
UUID of the world. |
T |
withLocation(Location<World> location)
Creates a copy of the snapshot with the provided
Location. |
getManipulatorsgetContentVersion, toContainergetApplicableProperties, getPropertyget, getContainers, getOrCreate, merge, merge, supports, transform, with, with, with, with, withoutcom.flowpowered.math.vector.Vector3i getPosition()
Optional<Location<World>> getLocation()
Location of the snapshot at which it may have been
taken from. The Location being immutable signifies that the
LocatableSnapshot can be re-created at the desired
Location.