All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.api.compat.minecraft.client.gui.FontCompat Maven / Gradle / Ivy

There is a newer version: 0.6.59
Show newest version
package top.hendrixshen.magiclib.api.compat.minecraft.client.gui;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_2561;
import net.minecraft.class_327;
import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.impl.compat.minecraft.client.gui.FontCompatImpl;
import top.hendrixshen.magiclib.util.collect.Provider;

@Environment(EnvType.CLIENT)
public interface FontCompat extends Provider {
    static @NotNull FontCompat of(@NotNull class_327 font) {
        return new FontCompatImpl(font);
    }

    int width(@NotNull class_2561 component);

    @Environment(EnvType.CLIENT)
    enum DisplayMode {
        NORMAL,
        SEE_THROUGH,
        POLYGON_OFFSET
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy