Package net.kyori.adventure.text
Interface BlockNBTComponent
- All Superinterfaces:
- Buildable<BlockNBTComponent,BlockNBTComponent.Builder>,- BuildableComponent<BlockNBTComponent,BlockNBTComponent.Builder>,- Component,- ComponentBuilderApplicable,- ComponentLike,- net.kyori.examination.Examinable,- HoverEventSource<Component>,- NBTComponent<BlockNBTComponent,BlockNBTComponent.Builder>,- ScopedComponent<BlockNBTComponent>
public interface BlockNBTComponent extends NBTComponent<BlockNBTComponent,BlockNBTComponent.Builder>, ScopedComponent<BlockNBTComponent>
A block NBT component.
- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceBlockNBTComponent.BuilderAn NBT component builder.static interfaceBlockNBTComponent.LocalPosA local position.static interfaceBlockNBTComponent.PosA position.static interfaceBlockNBTComponent.WorldPosA world position.
- 
Method SummaryModifier and Type Method Description default @NonNull BlockNBTComponentabsoluteWorldPos(int x, int y, int z)Sets the block position to an absoluteBlockNBTComponent.WorldPoswith the given coordinates.default @NonNull BlockNBTComponentlocalPos(double left, double up, double forwards)Sets the block position to aBlockNBTComponent.LocalPoswith the given coordinates.@NonNull BlockNBTComponent.Pospos()Gets the block position.@NonNull BlockNBTComponentpos(@NonNull BlockNBTComponent.Pos pos)Sets the block position.default @NonNull BlockNBTComponentrelativeWorldPos(int x, int y, int z)Sets the block position to an relativeBlockNBTComponent.WorldPoswith the given coordinates.default @NonNull BlockNBTComponentworldPos(@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.ComponentasComponent, asHoverEvent, children, clickEvent, color, componentBuilderApply, contains, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, insertion, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, style, styleMethods inherited from interface net.kyori.examination.ExaminableexaminableName, examinableProperties, examineMethods inherited from interface net.kyori.adventure.text.NBTComponentinterpret, interpret, nbtPath, nbtPathMethods inherited from interface net.kyori.adventure.text.ScopedComponentappend, append, append, children, clickEvent, color, colorIfAbsent, decorate, decoration, decoration, hoverEvent, insertion, mergeStyle, mergeStyle, mergeStyle, style, style, style
- 
Method Details- 
pos@NonNull BlockNBTComponent.Pos pos()Gets the block position.- Returns:
- the block position
- Since:
- 4.0.0
 
- 
posSets the block position.- Parameters:
- pos- the block position
- Returns:
- a block NBT component
- Since:
- 4.0.0
 
- 
localPosSets the block position to aBlockNBTComponent.LocalPoswith the given coordinates.- Parameters:
- left- the left coordinate
- up- the up coordinate
- forwards- the forwards coordinate
- Returns:
- a block NBT component
- Since:
- 4.0.0
 
- 
worldPosdefault @NonNull BlockNBTComponent 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:
- a block NBT component
- 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:
- a block NBT component
- 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:
- a block NBT component
- Since:
- 4.0.0
 
 
-