Marked classes as client only
This commit is contained in:
parent
40af0b9ea8
commit
00509c03b2
15 changed files with 62 additions and 88 deletions
|
@ -10,6 +10,10 @@ import com.mojang.blaze3d.vertex.PoseStack;
|
|||
import net.minecraft.client.gui.screens.Screen;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class TestScreen extends Screen {
|
||||
public TestScreen(Component component) {
|
||||
super(component);
|
||||
|
@ -50,7 +54,7 @@ public class TestScreen extends Screen {
|
|||
rows.addFiller();
|
||||
main.setChild(HorizontalStack.centered(rows));
|
||||
main.calculateLayout();
|
||||
|
||||
|
||||
addRenderableWidget(main);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue