Package org.spongepowered.api.world
Interface LocatableBlock.Builder
-
- All Superinterfaces:
AbstractBuilder<LocatableBlock>
,Buildable.Builder<LocatableBlock>
,Builder<LocatableBlock,LocatableBlock.Builder>
,CopyableBuilder<LocatableBlock,LocatableBlock.Builder>
,DataBuilder<LocatableBlock>
,ResettableBuilder<LocatableBlock,LocatableBlock.Builder>
- Enclosing interface:
- LocatableBlock
public static interface LocatableBlock.Builder extends Builder<LocatableBlock,LocatableBlock.Builder>, CopyableBuilder<LocatableBlock,LocatableBlock.Builder>, DataBuilder<LocatableBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocatableBlock
build()
Creates a newLocatableBlock
.LocatableBlock.Builder
from(LocatableBlock value)
Resets this builder to the values of the given built object.LocatableBlock.Builder
location(ServerLocation location)
Sets theBlockState
andposition
for this builder.LocatableBlock.Builder
position(int x, int y, int z)
Sets thex
y
z
positions for this builder.LocatableBlock.Builder
position(Vector3i position)
Sets theposition
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 theBlockState
for this builder.LocatableBlock.Builder
world(ServerWorld world)
Sets theworld
for this builder, used to get theBlockState
for a desired position.-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
state
LocatableBlock.Builder state(BlockState blockState)
Sets theBlockState
for this builder.- Parameters:
blockState
- The block state- Returns:
- This builder, for chaining
-
location
LocatableBlock.Builder location(ServerLocation location)
Sets theBlockState
andposition
for this builder.- Parameters:
location
- The location containing the block state and position- Returns:
- This builder, for chaining
-
position
LocatableBlock.Builder position(Vector3i position)
Sets theposition
for this builder.- Parameters:
position
- The position- Returns:
- This builder, for chaining
-
position
LocatableBlock.Builder position(int x, int y, int z)
Sets thex
y
z
positions for this builder.- Parameters:
x
- The x coordinatey
- The y coordinatez
- The z coordinate- Returns:
- This builder, for chaining
-
world
LocatableBlock.Builder world(ServerWorld world)
Sets theworld
for this builder, used to get theBlockState
for a desired position.- Parameters:
world
- The world- Returns:
- This builder, for chaining
-
reset
LocatableBlock.Builder reset()
Description copied from interface:Builder
Resets this builder to a "default" state such that there is no remaining data to set. This is to be the presumed "default" state.- Specified by:
reset
in interfaceBuilder<LocatableBlock,LocatableBlock.Builder>
- Specified by:
reset
in interfaceResettableBuilder<LocatableBlock,LocatableBlock.Builder>
- Returns:
- This builder, for chaining
-
from
LocatableBlock.Builder from(LocatableBlock value)
Description copied from interface:CopyableBuilder
Resets this builder to the values of the given built object.- Specified by:
from
in interfaceCopyableBuilder<LocatableBlock,LocatableBlock.Builder>
- Parameters:
value
- The built object- Returns:
- This builder, for chaining
-
build
LocatableBlock build()
Creates a newLocatableBlock
.- Specified by:
build
in interfaceAbstractBuilder<LocatableBlock>
- Specified by:
build
in interfaceBuildable.Builder<LocatableBlock>
- Returns:
- The new locatable block
-
-