You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
868 B
Java
32 lines
868 B
Java
package net.brokenmoon.redcontrol.screen;
|
|
|
|
import net.brokenmoon.redcontrol.RedControl;
|
|
import net.minecraft.client.gui.DrawContext;
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
import net.minecraft.text.Text;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
public class MonitorScreen extends Screen {
|
|
Identifier screenTexture = new Identifier("redcontrol", "gui/display.png");
|
|
public MonitorScreen(Text title) {
|
|
super(title);
|
|
}
|
|
|
|
@Override
|
|
protected void init() {
|
|
super.init();
|
|
RedControl.LOGGER.info("Opened Monitor Screen");
|
|
}
|
|
|
|
@Override
|
|
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
|
super.render(context, mouseX, mouseY, delta);
|
|
context.drawTexture(screenTexture,0,0,0,0,350,230);
|
|
}
|
|
|
|
@Override
|
|
public boolean shouldPause() {
|
|
return false;
|
|
}
|
|
}
|