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 interfaceBlockNBTComponent.WorldPos.CoordinateA coordinate component within aBlockNBTComponent.WorldPos. -
Method Summary
Modifier and Type Method Description static @NonNull BlockNBTComponent.WorldPosof(@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.Coordinatex()Gets the x coordinate.@NonNull BlockNBTComponent.WorldPos.Coordinatey()Gets the y coordinate.@NonNull BlockNBTComponent.WorldPos.Coordinatez()Gets the z coordinate.
-
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
-