Interface Orientation
-
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(Orientations.class) public interface Orientation extends DefaultedRegistryValue
Represents an orientation in relative for an ItemFrame as an example.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Angle
angle()
TheAngle
this orientation represents.static Optional<Orientation>
fromAngle(Angle angle)
Gets theOrientation
that represents the providedAngle
.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
fromAngle
static Optional<Orientation> fromAngle(Angle angle)
Gets theOrientation
that represents the providedAngle
.- Parameters:
angle
- TheAngle
- Returns:
- The
Orientation
with the givenAngle
, if it exists
-
-