public static interface LocatableBlock.Builder extends DataBuilder<LocatableBlock>
| Modifier and Type | Method and Description |
|---|---|
LocatableBlock |
build()
Creates a new
LocatableBlock. |
LocatableBlock.Builder |
from(LocatableBlock value)
Resets this builder to the values of the given built object.
|
LocatableBlock.Builder |
location(Location<World> location)
Sets the
BlockState and position for this
builder. |
LocatableBlock.Builder |
position(int x,
int y,
int z)
Sets the
x y z positions for this builder. |
LocatableBlock.Builder |
position(com.flowpowered.math.vector.Vector3i position)
Sets the
position for this builder. |
LocatableBlock.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
LocatableBlock.Builder |
state(BlockState blockState)
Sets the
BlockState for this builder. |
LocatableBlock.Builder |
world(World world)
Sets the
World for this builder, used to get the BlockState
for a desired position. |
buildLocatableBlock.Builder state(BlockState blockState)
BlockState for this builder.blockState - The block stateLocatableBlock.Builder location(Location<World> location)
BlockState and position for this
builder.location - The location containing the block state and positionLocatableBlock.Builder position(com.flowpowered.math.vector.Vector3i position)
position for this builder.position - The positionLocatableBlock.Builder position(int x, int y, int z)
x y z positions for this builder.x - The x coordinatey - The y coordinatez - The z coordinateLocatableBlock.Builder world(World world)
World for this builder, used to get the BlockState
for a desired position.world - The worldLocatableBlock.Builder reset()
ResettableBuilderreset in interface DataBuilder<LocatableBlock>reset in interface ResettableBuilder<LocatableBlock,DataBuilder<LocatableBlock>>LocatableBlock.Builder from(LocatableBlock value)
ResettableBuilderfrom in interface DataBuilder<LocatableBlock>from in interface ResettableBuilder<LocatableBlock,DataBuilder<LocatableBlock>>value - The built objectLocatableBlock build()
LocatableBlock.