Skip to content

Screen Modifier API #28

Description

@Olafcio1

A simple way of modifying screens. It would be a wrapper to the Screen API.
Example (might be slightly wrong):

import pl.olafcio.avoid.mods.annotation_processor.ModifyScreen;
import pl.olafcio.avoid.net.screen.ScreenMarker;
import pl.olafcio.avoid.net.screen_modifier.ModifyScreen;
import pl.olafcio.avoid.net.screen_modifier.ScreenModifier;

@ModifyScreen(ScreenMarker.TITLESCREEN)
public class TitleScreenModifier extends ScreenModifier {
    public void init() {
        super.init();
        this.removeChild(this.child(0));  // should remove the 'Singleplayer' button, or the minecraft logo, i'm not sure
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions