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.BuilderabsoluteWorldPos(int x, int y, int z)Sets the block position to an absoluteBlockNBTComponent.WorldPoswith the given coordinates.default @NonNull BlockNBTComponent.BuilderlocalPos(double left, double up, double forwards)Sets the block position to aBlockNBTComponent.LocalPoswith the given values.@NonNull BlockNBTComponent.Builderpos(@NonNull BlockNBTComponent.Pos pos)Sets the block position.default @NonNull BlockNBTComponent.BuilderrelativeWorldPos(int x, int y, int z)Sets the block position to an relativeBlockNBTComponent.WorldPoswith the given coordinates.default @NonNull BlockNBTComponent.BuilderworldPos(@NonNull BlockNBTComponent.WorldPos.Coordinate x, @NonNull BlockNBTComponent.WorldPos.Coordinate y, @NonNull BlockNBTComponent.WorldPos.Coordinate z)Sets the block position to aBlockNBTComponent.WorldPoswith 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.LocalPoswith 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.WorldPoswith 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.WorldPoswith 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.WorldPoswith the given coordinates.- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate- Returns:
- this builder
- Since:
- 4.0.0
-