Add a button to InventoryScreen #4191
Unanswered
fzlz-java
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I was trying to add a button to my players inventory screen client sided but i dont know how to do so ive tried changing titlescreen to inventory screen and initwidgetsnormal to init but it still doesnt work
code:
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.gui.screen.world.SelectWorldScreen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@mixin(TitleScreen.class)
public abstract class ExampleClientMixin extends Screen {
}
Beta Was this translation helpful? Give feedback.
All reactions