/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_2350
 */
package meteordevelopment.meteorclient.utils.world;

import net.minecraft.class_2350;

public enum CardinalDirection {
    North,
    East,
    South,
    West;


    public class_2350 toDirection() {
        return switch (this.ordinal()) {
            default -> throw new MatchException(null, null);
            case 0 -> class_2350.field_11043;
            case 1 -> class_2350.field_11034;
            case 2 -> class_2350.field_11035;
            case 3 -> class_2350.field_11039;
        };
    }

    public static CardinalDirection fromDirection(class_2350 direction) {
        return switch (direction) {
            default -> throw new MatchException(null, null);
            case class_2350.field_11043 -> North;
            case class_2350.field_11035 -> South;
            case class_2350.field_11039 -> East;
            case class_2350.field_11034 -> West;
            case class_2350.field_11033, class_2350.field_11036 -> null;
        };
    }
}

