Interface BlockNBTComponent.Pos
- All Known Subinterfaces:
BlockNBTComponent.LocalPos, BlockNBTComponent.WorldPos
- Enclosing interface:
BlockNBTComponent
public static interface BlockNBTComponent.Pos
A position.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionasString()Gets a parseable string representation of this position.static BlockNBTComponent.PosfromString(String input) Attempt to parse a position from the input string.
-
Method Details
-
fromString
Attempt to parse a position from the input string.The input string must refer to a local position (with 3
^-prefixed digits), or a world position (with 3 digits that are global if unprefixed, or relative to the current position if~-prefixed).- Parameters:
input- input- Returns:
- a new pos
- Throws:
IllegalArgumentException- if the position was in an invalid format- Since:
- 4.0.0
-
asString
String asString()Gets a parseable string representation of this position.- Returns:
- a string representation
- Since:
- 4.0.0
- See Also:
-