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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static @NotNull BlockNBTComponent.WorldPos
of(@NotNull BlockNBTComponent.WorldPos.Coordinate x, @NotNull BlockNBTComponent.WorldPos.Coordinate y, @NotNull BlockNBTComponent.WorldPos.Coordinate z)
Creates a world position with the given coordinates.@NotNull BlockNBTComponent.WorldPos.Coordinate
x()
Gets the x coordinate.@NotNull BlockNBTComponent.WorldPos.Coordinate
y()
Gets the y coordinate.@NotNull BlockNBTComponent.WorldPos.Coordinate
z()
Gets the z coordinate.-
Methods inherited from interface net.kyori.adventure.text.BlockNBTComponent.Pos
asString
-
-
-
-
Method Detail
-
of
@NotNull static @NotNull BlockNBTComponent.WorldPos of(@NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate x, @NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate y, @NotNull @NotNull 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
@NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate x()
Gets the x coordinate.- Returns:
- the x coordinate
- Since:
- 4.0.0
-
y
@NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate y()
Gets the y coordinate.- Returns:
- the y coordinate
- Since:
- 4.0.0
-
z
@NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate z()
Gets the z coordinate.- Returns:
- the z coordinate
- Since:
- 4.0.0
-
-