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

top.hendrixshen.magiclib.api.fake.compat.FontAccessor Maven / Gradle / Ivy

package top.hendrixshen.magiclib.api.fake.compat;

import org.joml.Matrix4f;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.util.FormattedCharSequence;

//#if MC > 11903
import net.minecraft.client.gui.Font;
//#endif

@OnlyIn(Dist.CLIENT)
public interface FontAccessor {
    int magiclib$drawInternal(
            String text,
            float x,
            float y,
            int color,
            boolean dropShadow,
            Matrix4f matrix4f,
            MultiBufferSource buffer,
            //#if MC > 11903
            Font.DisplayMode seeThroughOrDisplayMode,
            //#else
            //$$ boolean seeThroughOrDisplayMode,
            //#endif
            int backgroundColor,
            int packedLightCoords,
            boolean bidirectional
    );

    int magiclib$drawInternal(
            FormattedCharSequence formattedCharSequence,
            float x,
            float y,
            int color,
            boolean dropShadow,
            Matrix4f matrix4f,
            MultiBufferSource buffer,
            //#if MC > 11903
            Font.DisplayMode seeThroughOrDisplayMode,
            //#else
            //$$ boolean seeThroughOrDisplayMode,
            //#endif
            int backgroundColor,
            int packedLightCoords
    );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy