Skip to content

How to draw a string on title screen? #1626

Discussion options

You must be logged in to vote

but I get alot of errors

The old "it does not work" report.
You don't think actually posting those errors, or the full mixin class, or the mixin config would be useful?

Anyway, here's some working code with comments.

package net.fabricmc.example.mixin;

import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import net.minecraft.client.gui.DrawableHelper;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.TitleScre…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@legoraft
Comment options

Answer selected by legoraft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants