Package org.spongepowered.api.block
Interface BlockSnapshot.Builder
- All Superinterfaces:
AbstractBuilder<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
Modifier and TypeMethodDescriptionblockState
(BlockState blockState) Sets theBlockState
for thisBlockSnapshot
.Sets theUUID
of the user who created thisBlockSnapshot
.from
(ServerLocation location) Copies over block data from aServerLocation
.Sets theUUID
of the user who last notified thisBlockSnapshot
.Sets the coordinates of thisBlockSnapshot
from aVector3i
.world
(ServerWorldProperties worldProperties) Sets theServerWorldProperties
for thisBlockSnapshot
.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
Method Details
-
world
Sets theServerWorldProperties
for thisBlockSnapshot
.This is used to grab the
UUID
of the World for this snapshot.- Parameters:
worldProperties
- The WorldProperties- Returns:
- This builder, for chaining
-
blockState
Sets theBlockState
for 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
Sets the coordinates of thisBlockSnapshot
from aVector3i
.- Parameters:
position
- The Vector3i representing the coordinates- Returns:
- This builder, for chaining
-
from
Copies over block data from aServerLocation
.- Parameters:
location
- The Location to copy from- Returns:
- This builder, for chaining
-
creator
Sets theUUID
of the user who created thisBlockSnapshot
.- Parameters:
uuid
- TheUUID
of the creator- Returns:
- This builder, for chaining
-
notifier
Sets theUUID
of the user who last notified thisBlockSnapshot
.- Parameters:
uuid
- TheUUID
of the notifier- Returns:
- This builder, for chaining
-