Package net.kyori.adventure.text
Interface BlockNBTComponent.LocalPos
-
- All Superinterfaces:
BlockNBTComponent.Pos
,net.kyori.examination.Examinable
- Enclosing interface:
- BlockNBTComponent
public static interface BlockNBTComponent.LocalPos extends BlockNBTComponent.Pos
A local position.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description double
forwards()
Gets the forwards value.double
left()
Gets the left value.static @NotNull BlockNBTComponent.LocalPos
localPos(double left, double up, double forwards)
Creates a local position with the given values.static @NotNull BlockNBTComponent.LocalPos
of(double left, double up, double forwards)
Deprecated.for removal since 4.10.0, uselocalPos(double, double, double)
instead.double
up()
Gets the up value.-
Methods inherited from interface net.kyori.adventure.text.BlockNBTComponent.Pos
asString
-
-
-
-
Method Detail
-
localPos
@NotNull static @NotNull BlockNBTComponent.LocalPos localPos(double left, double up, double forwards)
Creates a local position with the given values.- Parameters:
left
- the left valueup
- the up valueforwards
- the forwards value- Returns:
- a local position
- Since:
- 4.10.0
-
of
@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull static @NotNull BlockNBTComponent.LocalPos of(double left, double up, double forwards)
Deprecated.for removal since 4.10.0, uselocalPos(double, double, double)
instead.Creates a local position with the given values.- Parameters:
left
- the left valueup
- the up valueforwards
- the forwards value- Returns:
- a local position
- Since:
- 4.0.0
-
left
double left()
Gets the left value.- Returns:
- the left value
- Since:
- 4.0.0
-
up
double up()
Gets the up value.- Returns:
- the up value
- Since:
- 4.0.0
-
forwards
double forwards()
Gets the forwards value.- Returns:
- the forwards value
- Since:
- 4.0.0
-
-