Package net.kyori.adventure.text
Interface BlockNBTComponent.Builder
- All Superinterfaces:
Buildable.Builder<BlockNBTComponent>
,ComponentBuilder<BlockNBTComponent,BlockNBTComponent.Builder>
,ComponentBuilderApplicable
,ComponentLike
,NBTComponentBuilder<BlockNBTComponent,BlockNBTComponent.Builder>
- Enclosing interface:
- BlockNBTComponent
public static interface BlockNBTComponent.Builder extends NBTComponentBuilder<BlockNBTComponent,BlockNBTComponent.Builder>
An NBT component builder.
- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description default @NonNull BlockNBTComponent.Builder
absoluteWorldPos(int x, int y, int z)
Sets the block position to an absoluteBlockNBTComponent.WorldPos
with the given coordinates.default @NonNull BlockNBTComponent.Builder
localPos(double left, double up, double forwards)
Sets the block position to aBlockNBTComponent.LocalPos
with the given values.@NonNull BlockNBTComponent.Builder
pos(@NonNull BlockNBTComponent.Pos pos)
Sets the block position.default @NonNull BlockNBTComponent.Builder
relativeWorldPos(int x, int y, int z)
Sets the block position to an relativeBlockNBTComponent.WorldPos
with the given coordinates.default @NonNull BlockNBTComponent.Builder
worldPos(@NonNull BlockNBTComponent.WorldPos.Coordinate x, @NonNull BlockNBTComponent.WorldPos.Coordinate y, @NonNull BlockNBTComponent.WorldPos.Coordinate z)
Sets the block position to aBlockNBTComponent.WorldPos
with the given coordinates.Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, applicableApply, apply, applyDeep, asComponent, build, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
Method Details
-
pos
Sets the block position.- Parameters:
pos
- the block position- Returns:
- this builder
- Since:
- 4.0.0
-
localPos
Sets the block position to aBlockNBTComponent.LocalPos
with the given values.- Parameters:
left
- the left valueup
- the up valueforwards
- the forwards value- Returns:
- this builder
- Since:
- 4.0.0
-
worldPos
default @NonNull BlockNBTComponent.Builder worldPos(@NonNull BlockNBTComponent.WorldPos.Coordinate x, @NonNull BlockNBTComponent.WorldPos.Coordinate y, @NonNull BlockNBTComponent.WorldPos.Coordinate z)Sets the block position to aBlockNBTComponent.WorldPos
with the given coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- this builder
- Since:
- 4.0.0
-
absoluteWorldPos
Sets the block position to an absoluteBlockNBTComponent.WorldPos
with the given coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- this builder
- Since:
- 4.0.0
-
relativeWorldPos
Sets the block position to an relativeBlockNBTComponent.WorldPos
with the given coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- this builder
- Since:
- 4.0.0
-