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 SummaryModifier 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.ComponentBuilderappend, 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- 
posSets the block position.- Parameters:
- pos- the block position
- Returns:
- this builder
- Since:
- 4.0.0
 
- 
localPosSets the block position to aBlockNBTComponent.LocalPoswith the given values.- Parameters:
- left- the left value
- up- the up value
- forwards- the forwards value
- Returns:
- this builder
- Since:
- 4.0.0
 
- 
worldPosdefault @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 coordinate
- y- the y coordinate
- z- the z coordinate
- Returns:
- this builder
- Since:
- 4.0.0
 
- 
absoluteWorldPosSets the block position to an absoluteBlockNBTComponent.WorldPoswith the given coordinates.- Parameters:
- x- the x coordinate
- y- the y coordinate
- z- the z coordinate
- Returns:
- this builder
- Since:
- 4.0.0
 
- 
relativeWorldPosSets the block position to an relativeBlockNBTComponent.WorldPoswith the given coordinates.- Parameters:
- x- the x coordinate
- y- the y coordinate
- z- the z coordinate
- Returns:
- this builder
- Since:
- 4.0.0
 
 
-