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 java.util.Optional<java.util.UUID>
creator(int x, int y, int z)
Gets theUUID
, if available, of the user who created theBlockSnapshot
at passed block position.default java.util.Optional<java.util.UUID>
creator(Vector3i pos)
Gets theUUID
, if available, of the user who created theBlockSnapshot
at passed block position.default java.util.Optional<java.util.UUID>
notifier(int x, int y, int z)
Gets theUUID
, if available, of the user who last notified theBlockSnapshot
located at passed block coordinates.default java.util.Optional<java.util.UUID>
notifier(Vector3i pos)
Gets theUUID
, if available, of the user who last notified theBlockSnapshot
located at passed block position.default void
setCreator(int x, int y, int z, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who created theBlockSnapshot
located at passed block coordinates.default void
setCreator(Vector3i pos, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who created theBlockSnapshot
located at passed block position.default void
setNotifier(int x, int y, int z, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who last notified theBlockSnapshot
located at passed block coordinates.default void
setNotifier(Vector3i pos, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who last notified theBlockSnapshot
located 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 java.util.Optional<java.util.UUID> creator(Vector3i pos)
Gets theUUID
, if available, of the user who created theBlockSnapshot
at passed block position.- Parameters:
pos
- The position to be checked- Returns:
- The
UUID
if one exists
-
creator
default java.util.Optional<java.util.UUID> creator(int x, int y, int z)
Gets theUUID
, if available, of the user who created theBlockSnapshot
at passed block position.- Parameters:
x
- The x coordinatey
- The y coordinatez
- The z coordinate- Returns:
- The
UUID
if one exists
-
notifier
default java.util.Optional<java.util.UUID> notifier(Vector3i pos)
Gets theUUID
, if available, of the user who last notified theBlockSnapshot
located at passed block position.- Parameters:
pos
- The position to be checked- Returns:
- The
UUID
if one exists
-
notifier
default java.util.Optional<java.util.UUID> notifier(int x, int y, int z)
Gets theUUID
, if available, of the user who last notified theBlockSnapshot
located at passed block coordinates.- Parameters:
x
- The x coordinatey
- The y coordinatez
- The z coordinate- Returns:
- The
UUID
if available
-
setCreator
default void setCreator(Vector3i pos, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who created theBlockSnapshot
located at passed block position.- Parameters:
pos
- The block position where the user data should be applieduuid
- TheUUID
to set as creator
-
setCreator
default void setCreator(int x, int y, int z, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who created theBlockSnapshot
located 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
- TheUUID
to set as creator
-
setNotifier
default void setNotifier(Vector3i pos, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who last notified theBlockSnapshot
located at passed block position.- Parameters:
pos
- The block position where the user data should be applieduuid
- TheUUID
to set as notifier
-
setNotifier
default void setNotifier(int x, int y, int z, @Nullable java.util.UUID uuid)
Sets theUUID
of the user who last notified theBlockSnapshot
located 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
- TheUUID
to set as notifier
-
-