788a00efdf
- Fixed the schematic hotbar overlay - Goggles overlay is no longer its own eventhandler
24 lines
771 B
Java
24 lines
771 B
Java
package com.simibubi.create.content.schematics.client;
|
|
|
|
import com.mojang.blaze3d.matrix.MatrixStack;
|
|
import com.mojang.blaze3d.systems.RenderSystem;
|
|
import com.simibubi.create.foundation.gui.AllGuiTextures;
|
|
|
|
import net.minecraft.client.MainWindow;
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.client.gui.AbstractGui;
|
|
|
|
public class SchematicHotbarSlotOverlay extends AbstractGui {
|
|
|
|
public void renderOn(MatrixStack matrixStack, int slot) {
|
|
MainWindow mainWindow = Minecraft.getInstance().getWindow();
|
|
int x = mainWindow.getScaledWidth() / 2 - 88;
|
|
int y = mainWindow.getScaledHeight() - 19;
|
|
RenderSystem.enableDepthTest();
|
|
matrixStack.push();
|
|
AllGuiTextures.SCHEMATIC_SLOT.draw(matrixStack, this, x + 20 * slot, y);
|
|
matrixStack.pop();
|
|
}
|
|
|
|
}
|