-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathModuleAttributeScreen.java
More file actions
29 lines (23 loc) · 778 Bytes
/
ModuleAttributeScreen.java
File metadata and controls
29 lines (23 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.radiance.client.gui;
import com.radiance.client.pipeline.Module;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.text.Text;
public class ModuleAttributeScreen extends Screen {
private final Screen parent;
public ModuleAttributeScreen(Screen parent, Module module) {
super(Text.translatable(module.name));
this.parent = parent;
}
@Override
public void close() {
if (this.client != null) {
this.client.setScreen(this.parent);
}
}
@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
this.renderBackground(context);
super.render(context, mouseX, mouseY, delta);
}
}