top.hendrixshen.magiclib.impl.compat.minecraft.client.gui.FontCompatImpl 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.impl.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.api.compat.AbstractCompat;
import top.hendrixshen.magiclib.api.compat.minecraft.client.gui.FontCompat;
@Environment(EnvType.CLIENT)
public class FontCompatImpl extends AbstractCompat implements FontCompat {
public FontCompatImpl(@NotNull class_327 type) {
super(type);
}
@Override
public int width(@NotNull class_2561 component) {
return this.get().method_27525(
//#if MC > 11502
component
//#else
//$$ component.getString()
//#endif
);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy