Module net.kyori.adventure.api
Package net.kyori.adventure.text
Interface BlockNBTComponent.WorldPos.Coordinate
- Enclosing interface:
BlockNBTComponent.WorldPos
public static interface BlockNBTComponent.WorldPos.Coordinate
A coordinate component within a
BlockNBTComponent.WorldPos.- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of a coordinate. -
Method Summary
Modifier and TypeMethodDescriptionabsolute(int value) Creates a absolute coordinate with the given value.coordinate(int value, BlockNBTComponent.WorldPos.Coordinate.Type type) Creates a coordinate with the given value and type.relative(int value) Creates a relative coordinate with the given value.type()Gets the type.intvalue()Gets the value.
-
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
static BlockNBTComponent.WorldPos.Coordinate coordinate(int value, 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
-
value
int value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
type
Gets the type.- Returns:
- the type
- Since:
- 4.0.0
-