Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.
/ test-screen Public archive

A small Minecraft to test screens quickly without starting a full Minecraft instance. (deprecated because SecurityManager is now disallowed in Java 18 by default)

License

Notifications You must be signed in to change notification settings

BlueberryMC/test-screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-screen

A small Minecraft to test screens quickly without starting a full Minecraft instance.

How to use

It's very simple! (assuming you already have minecraft as dependency)

(src/main/test/java/net/blueberrymc/screenTester/WhyNot.java)

package net.blueberrymc.screenTester;

import net.minecraft.client.gui.screens.LanguageSelectScreen;
import net.minecraft.client.gui.screens.TitleScreen;
import org.junit.Test;

public class WhyNot {
    @Test
    public void testLanguageSelectionScreen() {
        ScreenTester.launchMinecraft(false, mc -> new LanguageSelectScreen(new TitleScreen(), mc.options, mc.getLanguageManager()));
    }
}

When you execute the test, it will run the Minecraft and opens LanguageSelectScreen.

Limitations

Since this library is intended to test screens, these features are unavailable:

  • Interacting with world
  • Particles
  • Sound engine (so the game will be silent at all)
  • Painting texture
  • Mob effect texture
  • Search registry
  • Grass color
  • Foliage color

About

A small Minecraft to test screens quickly without starting a full Minecraft instance. (deprecated because SecurityManager is now disallowed in Java 18 by default)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages