Interface TrackedVolume
-
- All Superinterfaces:
BlockVolume,LocationBaseDataHolder,LocationBaseDataHolder.Mutable,Volume
public interface TrackedVolume extends BlockVolume, LocationBaseDataHolder.Mutable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M extends BlockVolume.Modifiable<M>>, BlockVolume.Mutable, BlockVolume.Streamable<B extends BlockVolume.Streamable<B>>, BlockVolume.Unmodifiable<U extends BlockVolume.Unmodifiable<U>>
-
Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolder
LocationBaseDataHolder.Mutable
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Optional<UUID>creator(int x, int y, int z)Gets theUUID, if available, of the user who created theBlockSnapshotat passed block position.default Optional<UUID>creator(Vector3i pos)Gets theUUID, if available, of the user who created theBlockSnapshotat passed block position.default Optional<UUID>notifier(int x, int y, int z)Gets theUUID, if available, of the user who last notified theBlockSnapshotlocated at passed block coordinates.default Optional<UUID>notifier(Vector3i pos)Gets theUUID, if available, of the user who last notified theBlockSnapshotlocated at passed block position.default voidsetCreator(int x, int y, int z, @Nullable UUID uuid)Sets theUUIDof the user who created theBlockSnapshotlocated at passed block coordinates.default voidsetCreator(Vector3i pos, @Nullable UUID uuid)Sets theUUIDof the user who created theBlockSnapshotlocated at passed block position.default voidsetNotifier(int x, int y, int z, @Nullable UUID uuid)Sets theUUIDof the user who last notified theBlockSnapshotlocated at passed block coordinates.default voidsetNotifier(Vector3i pos, @Nullable UUID uuid)Sets theUUIDof the user who last notified theBlockSnapshotlocated at passed block position.-
Methods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
block, block, fluid, fluid, highestPositionAt, highestYAt, highestYAt
-
Methods inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolder
get, get, get, get, getDouble, getDouble, getDouble, getDouble, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getValue, getValue, getValue, getValue, getValues, getValues, keys, keys, orElse, orElse, orElse, orElse, orElse, orElse, orElse, orElse, orNull, orNull, orNull, orNull, require, require, require, require, supports, supports, supports, supports, supports, supports
-
Methods inherited from interface org.spongepowered.api.world.volume.game.LocationBaseDataHolder.Mutable
copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, offer, offer, offer, offer, offer, offer, remove, remove, remove, remove, setRawData, setRawData, transform, transform, transform, transform, undo, undo, validateRawData, validateRawData
-
-
-
-
Method Detail
-
creator
default Optional<UUID> creator(Vector3i pos)
Gets theUUID, if available, of the user who created theBlockSnapshotat passed block position.- Parameters:
pos- The position to be checked- Returns:
- The
UUIDif one exists
-
creator
default Optional<UUID> creator(int x, int y, int z)
Gets theUUID, if available, of the user who created theBlockSnapshotat passed block position.- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinate- Returns:
- The
UUIDif one exists
-
notifier
default Optional<UUID> notifier(Vector3i pos)
Gets theUUID, if available, of the user who last notified theBlockSnapshotlocated at passed block position.- Parameters:
pos- The position to be checked- Returns:
- The
UUIDif one exists
-
notifier
default Optional<UUID> notifier(int x, int y, int z)
Gets theUUID, if available, of the user who last notified theBlockSnapshotlocated at passed block coordinates.- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinate- Returns:
- The
UUIDif available
-
setCreator
default void setCreator(Vector3i pos, @Nullable UUID uuid)
Sets theUUIDof the user who created theBlockSnapshotlocated at passed block position.- Parameters:
pos- The block position where the user data should be applieduuid- TheUUIDto set as creator
-
setCreator
default void setCreator(int x, int y, int z, @Nullable UUID uuid)Sets theUUIDof the user who created theBlockSnapshotlocated at passed block coordinates.- Parameters:
x- The x coordinate where the user data should be appliedy- The y coordinate where the user data should be appliedz- The z coordinate where the user data should be applieduuid- TheUUIDto set as creator
-
setNotifier
default void setNotifier(Vector3i pos, @Nullable UUID uuid)
Sets theUUIDof the user who last notified theBlockSnapshotlocated at passed block position.- Parameters:
pos- The block position where the user data should be applieduuid- TheUUIDto set as notifier
-
setNotifier
default void setNotifier(int x, int y, int z, @Nullable UUID uuid)Sets theUUIDof the user who last notified theBlockSnapshotlocated at passed block coordinates.- Parameters:
x- The x coordinate where the user data should be appliedy- The y coordinate where the user data should be appliedz- The z coordinate where the user data should be applieduuid- TheUUIDto set as notifier
-
-