Package net.kyori.adventure.text
Interface BlockNBTComponent.Builder
-
- All Superinterfaces:
AbstractBuilder<BlockNBTComponent>
,Buildable.Builder<BlockNBTComponent>
,ComponentBuilder<BlockNBTComponent,BlockNBTComponent.Builder>
,ComponentBuilderApplicable
,ComponentLike
,MutableStyleSetter<BlockNBTComponent.Builder>
,NBTComponentBuilder<BlockNBTComponent,BlockNBTComponent.Builder>
,StyleSetter<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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull BlockNBTComponent.Builder
absoluteWorldPos(int x, int y, int z)
Sets the block position to an absoluteBlockNBTComponent.WorldPos
with the given coordinates.default @NotNull BlockNBTComponent.Builder
localPos(double left, double up, double forwards)
Sets the block position to aBlockNBTComponent.LocalPos
with the given values.@NotNull BlockNBTComponent.Builder
pos(@NotNull BlockNBTComponent.Pos pos)
Sets the block position.default @NotNull BlockNBTComponent.Builder
relativeWorldPos(int x, int y, int z)
Sets the block position to an relativeBlockNBTComponent.WorldPos
with the given coordinates.default @NotNull BlockNBTComponent.Builder
worldPos(@NotNull BlockNBTComponent.WorldPos.Coordinate x, @NotNull BlockNBTComponent.WorldPos.Coordinate y, @NotNull 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, appendNewline, appendSpace, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorationIfAbsent, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
Methods inherited from interface net.kyori.adventure.text.NBTComponentBuilder
interpret, nbtPath, separator
-
-
-
-
Method Detail
-
pos
@Contract("_ -> this") @NotNull @NotNull BlockNBTComponent.Builder pos(@NotNull @NotNull BlockNBTComponent.Pos pos)
Sets the block position.- Parameters:
pos
- the block position- Returns:
- this builder
- Since:
- 4.0.0
-
localPos
@Contract("_, _, _ -> this") @NotNull default @NotNull BlockNBTComponent.Builder localPos(double left, double up, double forwards)
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
@Contract("_, _, _ -> this") @NotNull default @NotNull BlockNBTComponent.Builder worldPos(@NotNull BlockNBTComponent.WorldPos.Coordinate x, @NotNull BlockNBTComponent.WorldPos.Coordinate y, @NotNull 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
@Contract("_, _, _ -> this") @NotNull default @NotNull BlockNBTComponent.Builder absoluteWorldPos(int x, int y, int z)
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
@Contract("_, _, _ -> this") @NotNull default @NotNull BlockNBTComponent.Builder relativeWorldPos(int x, int y, int z)
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
-
-