Package net.kyori.adventure.text
Interface BlockNBTComponent.WorldPos
- All Superinterfaces:
BlockNBTComponent.Pos
,net.kyori.examination.Examinable
- Enclosing interface:
- BlockNBTComponent
public static interface BlockNBTComponent.WorldPos extends BlockNBTComponent.Pos
A world position.
- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BlockNBTComponent.WorldPos.Coordinate
A coordinate component within aBlockNBTComponent.WorldPos
. -
Method Summary
Modifier and Type Method Description static @NonNull BlockNBTComponent.WorldPos
of(@NonNull BlockNBTComponent.WorldPos.Coordinate x, @NonNull BlockNBTComponent.WorldPos.Coordinate y, @NonNull BlockNBTComponent.WorldPos.Coordinate z)
Creates a world position with the given coordinates.@NonNull BlockNBTComponent.WorldPos.Coordinate
x()
Gets the x coordinate.@NonNull BlockNBTComponent.WorldPos.Coordinate
y()
Gets the y coordinate.@NonNull BlockNBTComponent.WorldPos.Coordinate
z()
Gets the z coordinate.Methods inherited from interface net.kyori.adventure.text.BlockNBTComponent.Pos
asString
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Method Details
-
of
static @NonNull BlockNBTComponent.WorldPos of(@NonNull BlockNBTComponent.WorldPos.Coordinate x, @NonNull BlockNBTComponent.WorldPos.Coordinate y, @NonNull BlockNBTComponent.WorldPos.Coordinate z)Creates a world position with the given coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- a world position
- Since:
- 4.0.0
-
x
@NonNull BlockNBTComponent.WorldPos.Coordinate x()Gets the x coordinate.- Returns:
- the x coordinate
- Since:
- 4.0.0
-
y
@NonNull BlockNBTComponent.WorldPos.Coordinate y()Gets the y coordinate.- Returns:
- the y coordinate
- Since:
- 4.0.0
-
z
@NonNull BlockNBTComponent.WorldPos.Coordinate z()Gets the z coordinate.- Returns:
- the z coordinate
- Since:
- 4.0.0
-