Search in sources :

Example 1 with SpongeOrientation

use of org.spongepowered.common.util.SpongeOrientation in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method orientation.

public static RegistryLoader<Orientation> orientation() {
    return RegistryLoader.of(l -> {
        l.add(Orientations.TOP, k -> new SpongeOrientation(0));
        l.add(Orientations.TOP_RIGHT, k -> new SpongeOrientation(45));
        l.add(Orientations.RIGHT, k -> new SpongeOrientation(90));
        l.add(Orientations.BOTTOM_RIGHT, k -> new SpongeOrientation(135));
        l.add(Orientations.BOTTOM, k -> new SpongeOrientation(180));
        l.add(Orientations.BOTTOM_LEFT, k -> new SpongeOrientation(225));
        l.add(Orientations.LEFT, k -> new SpongeOrientation(270));
        l.add(Orientations.TOP_LEFT, k -> new SpongeOrientation(315));
    });
}
Also used : SpongeOrientation(org.spongepowered.common.util.SpongeOrientation)

Aggregations

SpongeOrientation (org.spongepowered.common.util.SpongeOrientation)1