Package org.spongepowered.api.world
Interface LocatableBlock.Builder
- All Superinterfaces:
AbstractBuilder<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
Modifier and TypeMethodDescriptionbuild()
Creates a newLocatableBlock
.from
(LocatableBlock value) Resets this builder to the values of the given built object.location
(ServerLocation location) Sets theBlockState
andposition
for this builder.position
(int x, int y, int z) Sets thex
y
z
positions for this builder.Sets theposition
for this builder.reset()
Resets this builder to a "default" state such that there is no remaining data to set.state
(BlockState blockState) Sets theBlockState
for this 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 Details
-
state
Sets theBlockState
for this builder.- Parameters:
blockState
- The block state- Returns:
- This builder, for chaining
-
location
Sets theBlockState
andposition
for this builder.- Parameters:
location
- The location containing the block state and position- Returns:
- This builder, for chaining
-
position
Sets theposition
for this builder.- Parameters:
position
- The position- Returns:
- This builder, for chaining
-
position
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
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
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>
- Returns:
- The new locatable block
-