|
1 | 1 | package org.enginehub.worldeditcui.gui;
|
2 | 2 |
|
3 | 3 | import com.google.common.collect.ImmutableList;
|
4 |
| -import com.mojang.blaze3d.vertex.PoseStack; |
5 | 4 | import com.mojang.logging.LogUtils;
|
6 | 5 | import net.minecraft.ChatFormatting;
|
7 | 6 | import net.minecraft.client.Minecraft;
|
| 7 | +import net.minecraft.client.gui.GuiGraphics; |
8 | 8 | import net.minecraft.client.gui.components.Button;
|
9 | 9 | import net.minecraft.client.gui.components.ContainerObjectSelectionList;
|
10 | 10 | import net.minecraft.client.gui.components.CycleButton;
|
@@ -78,12 +78,12 @@ public OnOffEntry(String tag) {
|
78 | 78 | }
|
79 | 79 |
|
80 | 80 | @Override
|
81 |
| - public void render(PoseStack poseStack, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
82 |
| - super.render(poseStack, index, top, left, width, height, mouseX, mouseY, isMouseOver, partialTick); |
| 81 | + public void render(GuiGraphics gfx, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
| 82 | + super.render(gfx, index, top, left, width, height, mouseX, mouseY, isMouseOver, partialTick); |
83 | 83 |
|
84 | 84 | this.toggleBotton.setX(left + 105);
|
85 | 85 | this.toggleBotton.setY(top);
|
86 |
| - this.toggleBotton.render(poseStack, mouseX, mouseY, partialTick); |
| 86 | + this.toggleBotton.render(gfx, mouseX, mouseY, partialTick); |
87 | 87 | }
|
88 | 88 |
|
89 | 89 | @Override
|
@@ -147,11 +147,11 @@ public ColorConfigEntry(String tag) {
|
147 | 147 | }
|
148 | 148 |
|
149 | 149 | @Override
|
150 |
| - public void render(PoseStack poseStack, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
151 |
| - super.render(poseStack, index, top, left, width, height, mouseX, mouseY, isMouseOver, partialTick); |
| 150 | + public void render(GuiGraphics gfx, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
| 151 | + super.render(gfx, index, top, left, width, height, mouseX, mouseY, isMouseOver, partialTick); |
152 | 152 | this.textField.setX(left + 105);
|
153 | 153 | this.textField.setY(top);
|
154 |
| - this.textField.render(poseStack, mouseX, mouseY, partialTick); |
| 154 | + this.textField.render(gfx, mouseX, mouseY, partialTick); |
155 | 155 | }
|
156 | 156 |
|
157 | 157 | @Override
|
@@ -192,16 +192,16 @@ public ConfigEntry(String tag) {
|
192 | 192 |
|
193 | 193 | }
|
194 | 194 | @Override
|
195 |
| - public void render(PoseStack poseStack, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
| 195 | + public void render(GuiGraphics gfx, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean isMouseOver, float partialTick) { |
196 | 196 | int textLeft = left + 90 - maxNameWidth;
|
197 | 197 |
|
198 | 198 | this.textField.setX(textLeft);
|
199 | 199 | this.textField.setY(top);
|
200 |
| - this.textField.render(poseStack, mouseX, mouseY, partialTick); |
| 200 | + this.textField.render(gfx, mouseX, mouseY, partialTick); |
201 | 201 |
|
202 | 202 | this.resetButton.setX(left + 190);
|
203 | 203 | this.resetButton.setY(top);
|
204 |
| - this.resetButton.render(poseStack, mouseX, mouseY, partialTick); |
| 204 | + this.resetButton.render(gfx, mouseX, mouseY, partialTick); |
205 | 205 | }
|
206 | 206 |
|
207 | 207 | protected abstract void updateFromConfig();
|
|
0 commit comments