/*
 * 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 class Dir {
    public static final byte UP = 2;
    public static final byte DOWN = 4;
    public static final byte NORTH = 8;
    public static final byte SOUTH = 16;
    public static final byte WEST = 32;
    public static final byte EAST = 64;

    private Dir() {
    }

    public static byte get(class_2350 dir) {
        return switch (dir) {
            default -> throw new MatchException(null, null);
            case class_2350.field_11036 -> 2;
            case class_2350.field_11033 -> 4;
            case class_2350.field_11043 -> 8;
            case class_2350.field_11035 -> 16;
            case class_2350.field_11039 -> 32;
            case class_2350.field_11034 -> 64;
        };
    }

    public static boolean is(int dir, byte idk) {
        return (dir & idk) == idk;
    }

    public static boolean isNot(int dir, byte idk) {
        return (dir & idk) != idk;
    }
}

