top.hendrixshen.magiclib.api.compat.minecraft.client.gui.FontCompat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Show all versions of magiclib-minecraft-api-1.19.3-fabric Show documentation
Unleash magic into Minecraft, infuse souls, ascend to heaven!
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