Ok, I will. But, one last thing...
public TestScreen() {
super(Component.nullToEmpty("Title for what, though?"));
}
PoseStack poseStack = new PoseStack();
void renderLabel(int screenX, int screenY, String label) {
this.font.draw(poseStack, label, screenX, screenY, 4210752);
}
@Override
protected void init() {
renderLabel(100, 100, "Hello, world!");
super.init();
}
That is my Screen code ^
@SubscribeEvent @OnlyIn(Dist.CLIENT)
public static void onClientChat(ClientChatEvent event) {
OpenMessage.LOGGER.info(event.getMessage());
if(event.getMessage().equals("tap")) {
Minecraft.getInstance().setScreen(new TestScreen());
}
}
This is what initiates it ^
But, when I say 'tap' in chat (placeholder for now), it doesn't show anything. Why?
I think it might be the PoseStack