Package org.spongepowered.api.block
Interface BlockSnapshot.Builder
-
- All Superinterfaces:
AbstractBuilder<BlockSnapshot>,Buildable.Builder<BlockSnapshot>,Builder<BlockSnapshot,BlockSnapshot.Builder>,CopyableBuilder<BlockSnapshot,BlockSnapshot.Builder>,DataBuilder<BlockSnapshot>,DataHolderBuilder<BlockSnapshot,BlockSnapshot.Builder>,DataHolderBuilder.Immutable<BlockSnapshot,BlockSnapshot.Builder>,ResettableBuilder<BlockSnapshot,BlockSnapshot.Builder>,SerializableDataHolderBuilder<BlockSnapshot,BlockSnapshot.Builder>,SerializableDataHolderBuilder.Immutable<BlockSnapshot,BlockSnapshot.Builder>
- Enclosing interface:
- BlockSnapshot
public static interface BlockSnapshot.Builder extends SerializableDataHolderBuilder.Immutable<BlockSnapshot,BlockSnapshot.Builder>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolderBuilder
DataHolderBuilder.Immutable<H extends DataHolder.Immutable<H>,B extends DataHolderBuilder.Immutable<H,B>>, DataHolderBuilder.Mutable<H extends DataHolder.Mutable,B extends DataHolderBuilder.Mutable<H,B>>
-
Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolderBuilder
SerializableDataHolderBuilder.Immutable<H extends SerializableDataHolder.Immutable<H>,B extends SerializableDataHolderBuilder.Immutable<H,B>>, SerializableDataHolderBuilder.Mutable<H extends SerializableDataHolder.Mutable,B extends SerializableDataHolderBuilder.Mutable<H,B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockSnapshot.BuilderblockState(BlockState blockState)Sets theBlockStatefor thisBlockSnapshot.BlockSnapshot.Buildercreator(java.util.UUID uuid)Sets theUUIDof the user who created thisBlockSnapshot.BlockSnapshot.Builderfrom(ServerLocation location)Copies over block data from aServerLocation.BlockSnapshot.Buildernotifier(java.util.UUID uuid)Sets theUUIDof the user who last notified thisBlockSnapshot.BlockSnapshot.Builderposition(Vector3i position)Sets the coordinates of thisBlockSnapshotfrom aVector3i.BlockSnapshot.Builderworld(ServerWorldProperties worldProperties)Sets theServerWorldPropertiesfor thisBlockSnapshot.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
world
BlockSnapshot.Builder world(ServerWorldProperties worldProperties)
Sets theServerWorldPropertiesfor thisBlockSnapshot.This is used to grab the
UUIDof the World for this snapshot.- Parameters:
worldProperties- The WorldProperties- Returns:
- This builder, for chaining
-
blockState
BlockSnapshot.Builder blockState(BlockState blockState)
Sets theBlockStatefor thisBlockSnapshot.This method should be called before calling
DataHolderBuilder.add(Value)or any variant thereof.- Parameters:
blockState- The BlockState- Returns:
- This builder, for chaining
-
position
BlockSnapshot.Builder position(Vector3i position)
Sets the coordinates of thisBlockSnapshotfrom aVector3i.- Parameters:
position- The Vector3i representing the coordinates- Returns:
- This builder, for chaining
-
from
BlockSnapshot.Builder from(ServerLocation location)
Copies over block data from aServerLocation.- Parameters:
location- The Location to copy from- Returns:
- This builder, for chaining
-
creator
BlockSnapshot.Builder creator(java.util.UUID uuid)
Sets theUUIDof the user who created thisBlockSnapshot.- Parameters:
uuid- TheUUIDof the creator- Returns:
- This builder, for chaining
-
notifier
BlockSnapshot.Builder notifier(java.util.UUID uuid)
Sets theUUIDof the user who last notified thisBlockSnapshot.- Parameters:
uuid- TheUUIDof the notifier- Returns:
- This builder, for chaining
-
-