public interface BlockSnapshotBuilder extends ImmutableDataBuilder<BlockSnapshot,BlockSnapshotBuilder>
Modifier and Type | Method and Description |
---|---|
BlockSnapshotBuilder |
blockState(BlockState blockState)
Sets the
BlockState for this BlockSnapshot |
BlockSnapshotBuilder |
from(Location<World> location)
Copies over block data from a
Location . |
BlockSnapshotBuilder |
position(com.flowpowered.math.vector.Vector3i position)
Sets the coordinates of this
BlockSnapshot from a Vector3i . |
BlockSnapshotBuilder |
world(WorldProperties worldProperties)
Sets the
WorldProperties for this BlockSnapshot . |
add, add, build, from, reset
build
BlockSnapshotBuilder world(WorldProperties worldProperties)
WorldProperties
for this BlockSnapshot
.
This is used to grab the UUID
of the World for this snapshot.
worldProperties
- The WorldPropertiesBlockSnapshotBuilder blockState(BlockState blockState)
BlockState
for this BlockSnapshot
blockState
- The BlockStateBlockSnapshotBuilder position(com.flowpowered.math.vector.Vector3i position)
BlockSnapshot
from a Vector3i
.position
- The Vector3i representing the coordinatesBlockSnapshotBuilder from(Location<World> location)
Location
.location
- The Location to copy from