Package net.kyori.adventure.text
Interface BlockNBTComponent.WorldPos.Coordinate
- All Superinterfaces:
net.kyori.examination.Examinable
- Enclosing interface:
- BlockNBTComponent.WorldPos
public static interface BlockNBTComponent.WorldPos.Coordinate
extends net.kyori.examination.Examinable
A coordinate component within a
BlockNBTComponent.WorldPos
.- Since:
- 4.0.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The type of a coordinate. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BlockNBTComponent.WorldPos.Coordinate
absolute
(int value) Creates a absolute coordinate with the given value.static @NotNull BlockNBTComponent.WorldPos.Coordinate
coordinate
(int value, @NotNull BlockNBTComponent.WorldPos.Coordinate.Type type) Creates a coordinate with the given value and type.static @NotNull BlockNBTComponent.WorldPos.Coordinate
of
(int value, @NotNull BlockNBTComponent.WorldPos.Coordinate.Type type) Deprecated.static @NotNull BlockNBTComponent.WorldPos.Coordinate
relative
(int value) Creates a relative coordinate with the given value.type()
Gets the type.int
value()
Gets the value.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Method Details
-
absolute
Creates a absolute coordinate with the given value.- Parameters:
value
- the value- Returns:
- a coordinate
- Since:
- 4.0.0
-
relative
Creates a relative coordinate with the given value.- Parameters:
value
- the value- Returns:
- a coordinate
- Since:
- 4.0.0
-
coordinate
@NotNull static @NotNull BlockNBTComponent.WorldPos.Coordinate coordinate(int value, @NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate.Type type) Creates a coordinate with the given value and type.- Parameters:
value
- the valuetype
- the type- Returns:
- a coordinate
- Since:
- 4.10.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull BlockNBTComponent.WorldPos.Coordinate of(int value, @NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate.Type type) Deprecated.for removal since 4.10.0, usecoordinate(int, Coordinate.Type)
instead.Creates a coordinate with the given value and type.- Parameters:
value
- the valuetype
- the type- Returns:
- a coordinate
- Since:
- 4.0.0
-
value
int value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
type
Gets the type.- Returns:
- the type
- Since:
- 4.0.0
-
coordinate(int, Coordinate.Type)
instead.