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 Angleangle()TheAnglethis orientation represents.static java.util.Optional<Orientation>fromAngle(Angle angle)Gets theOrientationthat represents the providedAngle.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
fromAngle
static java.util.Optional<Orientation> fromAngle(Angle angle)
Gets theOrientationthat represents the providedAngle.- Parameters:
angle- TheAngle- Returns:
- The
Orientationwith the givenAngle, if it exists
-
-