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
Nested Classes Modifier and Type Interface Description static classBlockNBTComponent.WorldPos.Coordinate.TypeThe type of a coordinate. -
Method Summary
Modifier and Type Method Description static @NonNull BlockNBTComponent.WorldPos.Coordinateabsolute(int value)Creates a absolute coordinate with the given value.static @NonNull BlockNBTComponent.WorldPos.Coordinateof(int value, @NonNull BlockNBTComponent.WorldPos.Coordinate.Type type)Creates a coordinate with the given value and type.static @NonNull BlockNBTComponent.WorldPos.Coordinaterelative(int value)Creates a relative coordinate with the given value.@NonNull BlockNBTComponent.WorldPos.Coordinate.Typetype()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
-
of
static @NonNull BlockNBTComponent.WorldPos.Coordinate of(int value, @NonNull 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.0.0
-
value
int value()Gets the value.- Returns:
- the value
- Since:
- 4.0.0
-
type
@NonNull BlockNBTComponent.WorldPos.Coordinate.Type type()Gets the type.- Returns:
- the type
- Since:
- 4.0.0
-