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 aBlockNBTComponent.WorldPos
.- Since:
- 4.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BlockNBTComponent.WorldPos.Coordinate.Type
The type of a coordinate.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description static @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.for removal since 4.10.0, usecoordinate(int, Coordinate.Type)
instead.static @NotNull BlockNBTComponent.WorldPos.Coordinate
relative(int value)
Creates a relative coordinate with the given value.@NotNull BlockNBTComponent.WorldPos.Coordinate.Type
type()
Gets the type.int
value()
Gets the value.
-
-
-
Method Detail
-
absolute
@NotNull static @NotNull BlockNBTComponent.WorldPos.Coordinate absolute(int value)
Creates a absolute coordinate with the given value.- Parameters:
value
- the value- Returns:
- a coordinate
- Since:
- 4.0.0
-
relative
@NotNull static @NotNull BlockNBTComponent.WorldPos.Coordinate relative(int value)
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
@NotNull @NotNull BlockNBTComponent.WorldPos.Coordinate.Type type()
Gets the type.- Returns:
- the type
- Since:
- 4.0.0
-
-