public static interface BlockSnapshot.Builder extends ImmutableDataBuilder<BlockSnapshot,BlockSnapshot.Builder>
| Modifier and Type | Method and Description |
|---|---|
BlockSnapshot.Builder |
blockState(BlockState blockState)
Sets the
BlockState for this BlockSnapshot. |
BlockSnapshot.Builder |
creator(UUID uuid)
Sets the
UUID of the user who created this
BlockSnapshot. |
BlockSnapshot.Builder |
from(Location<World> location)
Copies over block data from a
Location. |
BlockSnapshot.Builder |
notifier(UUID uuid)
Sets the
UUID of the user who last notified this
BlockSnapshot. |
BlockSnapshot.Builder |
position(com.flowpowered.math.vector.Vector3i position)
Sets the coordinates of this
BlockSnapshot from a Vector3i. |
BlockSnapshot.Builder |
world(WorldProperties worldProperties)
Sets the
WorldProperties for this BlockSnapshot. |
add, add, add, build, from, resetbuildBlockSnapshot.Builder world(WorldProperties worldProperties)
WorldProperties for this BlockSnapshot.
This is used to grab the UUID of the World for this snapshot.
worldProperties - The WorldPropertiesBlockSnapshot.Builder blockState(BlockState blockState)
BlockState for this BlockSnapshot.blockState - The BlockStateBlockSnapshot.Builder position(com.flowpowered.math.vector.Vector3i position)
BlockSnapshot from a Vector3i.position - The Vector3i representing the coordinatesBlockSnapshot.Builder from(Location<World> location)
Location.location - The Location to copy fromBlockSnapshot.Builder creator(UUID uuid)
UUID of the user who created this
BlockSnapshot.uuid - The UUID of the creatorBlockSnapshot.Builder notifier(UUID uuid)
UUID of the user who last notified this
BlockSnapshot.uuid - The UUID of the notifier