Selaa lähdekoodia

Update to 19w39a

Danielshe 5 vuotta sitten
vanhempi
sitoutus
15777f9176

+ 3 - 3
gradle.properties

@@ -1,6 +1,6 @@
-minecraft_version=19w38b
-yarn_version=19w38b+build.12
+minecraft_version=19w39a
+yarn_version=19w39a+build.2
 fabric_loader_version=0.6.2+build.166
-fabric_version=0.3.4+build.238-1.15
+fabric_version=0.4.0+build.239-1.15
 mod_version=2.0.0-unstable
 modmenu_version=1.7.6+build.115

+ 14 - 12
src/main/java/me/shedaniel/clothconfig2/gui/ClothConfigScreen.java

@@ -379,6 +379,7 @@ public abstract class ClothConfigScreen extends Screen {
         queuedTooltips.add(queuedTooltip);
     }
     
+    @SuppressWarnings("deprecation")
     private void drawShades() {
         RenderSystem.enableBlend();
         RenderSystem.blendFuncSeparate(770, 771, 0, 1);
@@ -388,16 +389,16 @@ public abstract class ClothConfigScreen extends Screen {
         Tessellator tessellator = Tessellator.getInstance();
         BufferBuilder buffer = tessellator.getBufferBuilder();
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(tabsBounds.getMinX() + 20, tabsBounds.getMinY() + 4, 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(tabsBounds.getMaxX() - 20, tabsBounds.getMinY() + 4, 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(tabsBounds.getMaxX() - 20, tabsBounds.getMinY(), 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(tabsBounds.getMinX() + 20, tabsBounds.getMinY(), 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 255).next();
+        buffer.method_22912(tabsBounds.getMinX() + 20, tabsBounds.getMinY() + 4, 0.0D).method_22913(0, 1).color(0, 0, 0, 0).next();
+        buffer.method_22912(tabsBounds.getMaxX() - 20, tabsBounds.getMinY() + 4, 0.0D).method_22913(1, 1).color(0, 0, 0, 0).next();
+        buffer.method_22912(tabsBounds.getMaxX() - 20, tabsBounds.getMinY(), 0.0D).method_22913(1, 0).color(0, 0, 0, 255).next();
+        buffer.method_22912(tabsBounds.getMinX() + 20, tabsBounds.getMinY(), 0.0D).method_22913(0, 0).color(0, 0, 0, 255).next();
         tessellator.draw();
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(tabsBounds.getMinX() + 20, tabsBounds.getMaxY(), 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(tabsBounds.getMaxX() - 20, tabsBounds.getMaxY(), 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(tabsBounds.getMaxX() - 20, tabsBounds.getMaxY() - 4, 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(tabsBounds.getMinX() + 20, tabsBounds.getMaxY() - 4, 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 0).next();
+        buffer.method_22912(tabsBounds.getMinX() + 20, tabsBounds.getMaxY(), 0.0D).method_22913(0, 1).color(0, 0, 0, 255).next();
+        buffer.method_22912(tabsBounds.getMaxX() - 20, tabsBounds.getMaxY(), 0.0D).method_22913(1, 1).color(0, 0, 0, 255).next();
+        buffer.method_22912(tabsBounds.getMaxX() - 20, tabsBounds.getMaxY() - 4, 0.0D).method_22913(1, 0).color(0, 0, 0, 0).next();
+        buffer.method_22912(tabsBounds.getMinX() + 20, tabsBounds.getMaxY() - 4, 0.0D).method_22913(0, 0).color(0, 0, 0, 0).next();
         tessellator.draw();
         RenderSystem.enableTexture();
         RenderSystem.shadeModel(7424);
@@ -405,6 +406,7 @@ public abstract class ClothConfigScreen extends Screen {
         RenderSystem.disableBlend();
     }
     
+    @SuppressWarnings("deprecation")
     protected void overlayBackground(Rectangle rect, int red, int green, int blue, int startAlpha, int endAlpha) {
         Tessellator tessellator = Tessellator.getInstance();
         BufferBuilder buffer = tessellator.getBufferBuilder();
@@ -412,10 +414,10 @@ public abstract class ClothConfigScreen extends Screen {
         RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
         float f = 32.0F;
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(rect.getMinX(), rect.getMaxY(), 0.0D).texture(rect.getMinX() / 32.0D, rect.getMaxY() / 32.0D).color(red, green, blue, endAlpha).next();
-        buffer.vertex(rect.getMaxX(), rect.getMaxY(), 0.0D).texture(rect.getMaxX() / 32.0D, rect.getMaxY() / 32.0D).color(red, green, blue, endAlpha).next();
-        buffer.vertex(rect.getMaxX(), rect.getMinY(), 0.0D).texture(rect.getMaxX() / 32.0D, rect.getMinY() / 32.0D).color(red, green, blue, startAlpha).next();
-        buffer.vertex(rect.getMinX(), rect.getMinY(), 0.0D).texture(rect.getMinX() / 32.0D, rect.getMinY() / 32.0D).color(red, green, blue, startAlpha).next();
+        buffer.method_22912(rect.getMinX(), rect.getMaxY(), 0.0D).method_22913(rect.getMinX() / 32.0F, rect.getMaxY() / 32.0F).color(red, green, blue, endAlpha).next();
+        buffer.method_22912(rect.getMaxX(), rect.getMaxY(), 0.0D).method_22913(rect.getMaxX() / 32.0F, rect.getMaxY() / 32.0F).color(red, green, blue, endAlpha).next();
+        buffer.method_22912(rect.getMaxX(), rect.getMinY(), 0.0D).method_22913(rect.getMaxX() / 32.0F, rect.getMinY() / 32.0F).color(red, green, blue, startAlpha).next();
+        buffer.method_22912(rect.getMinX(), rect.getMinY(), 0.0D).method_22913(rect.getMinX() / 32.0F, rect.getMinY() / 32.0F).color(red, green, blue, startAlpha).next();
         tessellator.draw();
     }
     

+ 37 - 36
src/main/java/me/shedaniel/clothconfig2/gui/widget/DynamicEntryListWidget.java

@@ -22,6 +22,7 @@ import java.util.List;
 import java.util.Objects;
 import java.util.concurrent.atomic.AtomicInteger;
 
+@SuppressWarnings("deprecation")
 @Environment(EnvType.CLIENT)
 public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.Entry<E>> extends AbstractParentElement implements Drawable {
     protected static final int DRAG_OUTSIDE = -2;
@@ -168,10 +169,10 @@ public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.En
         RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
         float float_2 = 32.0F;
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(this.left, this.bottom, 0.0D).texture(this.left / 32.0F, ((this.bottom + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
-        buffer.vertex(this.right, this.bottom, 0.0D).texture(this.right / 32.0F, ((this.bottom + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
-        buffer.vertex(this.right, this.top, 0.0D).texture(this.right / 32.0F, ((this.top + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
-        buffer.vertex(this.left, this.top, 0.0D).texture(this.left / 32.0F, ((this.top + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
+        buffer.method_22912(this.left, this.bottom, 0.0D).method_22913(this.left / 32.0F, ((this.bottom + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
+        buffer.method_22912(this.right, this.bottom, 0.0D).method_22913(this.right / 32.0F, ((this.bottom + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
+        buffer.method_22912(this.right, this.top, 0.0D).method_22913(this.right / 32.0F, ((this.top + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
+        buffer.method_22912(this.left, this.top, 0.0D).method_22913(this.left / 32.0F, ((this.top + (int) this.getScroll()) / 32.0F)).color(32, 32, 32, 255).next();
         tessellator.draw();
         int rowLeft = this.getRowLeft();
         int startY = this.top + 4 - (int) this.getScroll();
@@ -188,16 +189,16 @@ public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.En
         RenderSystem.shadeModel(7425);
         RenderSystem.disableTexture();
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(this.left, this.top + 4, 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(this.right, this.top + 4, 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(this.right, this.top, 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(this.left, this.top, 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 255).next();
+        buffer.method_22912(this.left, this.top + 4, 0.0D).method_22913(0, 1).color(0, 0, 0, 0).next();
+        buffer.method_22912(this.right, this.top + 4, 0.0D).method_22913(1, 1).color(0, 0, 0, 0).next();
+        buffer.method_22912(this.right, this.top, 0.0D).method_22913(1, 0).color(0, 0, 0, 255).next();
+        buffer.method_22912(this.left, this.top, 0.0D).method_22913(0, 0).color(0, 0, 0, 255).next();
         tessellator.draw();
         buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-        buffer.vertex(this.left, this.bottom, 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(this.right, this.bottom, 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 255).next();
-        buffer.vertex(this.right, this.bottom - 4, 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 0).next();
-        buffer.vertex(this.left, this.bottom - 4, 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 0).next();
+        buffer.method_22912(this.left, this.bottom, 0.0D).method_22913(0, 1).color(0, 0, 0, 255).next();
+        buffer.method_22912(this.right, this.bottom, 0.0D).method_22913(1, 1).color(0, 0, 0, 255).next();
+        buffer.method_22912(this.right, this.bottom - 4, 0.0D).method_22913(1, 0).color(0, 0, 0, 0).next();
+        buffer.method_22912(this.left, this.bottom - 4, 0.0D).method_22913(0, 0).color(0, 0, 0, 0).next();
         tessellator.draw();
         int maxScroll = this.getMaxScroll();
         renderScrollBar(tessellator, buffer, maxScroll, scrollbarPosition, int_4);
@@ -219,22 +220,22 @@ public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.En
             }
             
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, this.bottom, 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, this.bottom, 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, this.top, 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMinX, this.top, 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, this.bottom, 0.0D).method_22913(0, 1).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, this.bottom, 0.0D).method_22913(1, 1).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, this.top, 0.0D).method_22913(1, 0).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, this.top, 0.0D).method_22913(0, 0).color(0, 0, 0, 255).next();
             tessellator.draw();
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, int_10 + int_9, 0.0D).texture(0.0D, 1.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, int_10 + int_9, 0.0D).texture(1.0D, 1.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, int_10, 0.0D).texture(1.0D, 0.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMinX, int_10, 0.0D).texture(0.0D, 0.0D).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, int_10 + int_9, 0.0D).method_22913(0, 1).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, int_10 + int_9, 0.0D).method_22913(1, 1).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, int_10, 0.0D).method_22913(1, 0).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, int_10, 0.0D).method_22913(0, 0).color(128, 128, 128, 255).next();
             tessellator.draw();
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, (int_10 + int_9 - 1), 0.0D).texture(0.0D, 1.0D).color(192, 192, 192, 255).next();
-            buffer.vertex((scrollbarPositionMaxX - 1), (int_10 + int_9 - 1), 0.0D).texture(1.0D, 1.0D).color(192, 192, 192, 255).next();
-            buffer.vertex((scrollbarPositionMaxX - 1), int_10, 0.0D).texture(1.0D, 0.0D).color(192, 192, 192, 255).next();
-            buffer.vertex(scrollbarPositionMinX, int_10, 0.0D).texture(0.0D, 0.0D).color(192, 192, 192, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, (int_10 + int_9 - 1), 0.0D).method_22913(0, 1).color(192, 192, 192, 255).next();
+            buffer.method_22912((scrollbarPositionMaxX - 1), (int_10 + int_9 - 1), 0.0D).method_22913(1, 1).color(192, 192, 192, 255).next();
+            buffer.method_22912((scrollbarPositionMaxX - 1), int_10, 0.0D).method_22913(1, 0).color(192, 192, 192, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, int_10, 0.0D).method_22913(0, 0).color(192, 192, 192, 255).next();
             tessellator.draw();
         }
     }
@@ -390,17 +391,17 @@ public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.En
                 float float_2 = this.isFocused() ? 1.0F : 0.5F;
                 RenderSystem.color4f(float_2, float_2, float_2, 1.0F);
                 buffer.begin(7, VertexFormats.POSITION);
-                buffer.vertex((double) itemMinX, (double) (itemY + itemHeight + 2), 0.0D).next();
-                buffer.vertex((double) itemMaxX, (double) (itemY + itemHeight + 2), 0.0D).next();
-                buffer.vertex((double) itemMaxX, (double) (itemY - 2), 0.0D).next();
-                buffer.vertex((double) itemMinX, (double) (itemY - 2), 0.0D).next();
+                buffer.method_22912((double) itemMinX, (double) (itemY + itemHeight + 2), 0.0D).next();
+                buffer.method_22912((double) itemMaxX, (double) (itemY + itemHeight + 2), 0.0D).next();
+                buffer.method_22912((double) itemMaxX, (double) (itemY - 2), 0.0D).next();
+                buffer.method_22912((double) itemMinX, (double) (itemY - 2), 0.0D).next();
                 tessellator.draw();
                 RenderSystem.color4f(0.0F, 0.0F, 0.0F, 1.0F);
                 buffer.begin(7, VertexFormats.POSITION);
-                buffer.vertex((double) (itemMinX + 1), (double) (itemY + itemHeight + 1), 0.0D).next();
-                buffer.vertex((double) (itemMaxX - 1), (double) (itemY + itemHeight + 1), 0.0D).next();
-                buffer.vertex((double) (itemMaxX - 1), (double) (itemY - 1), 0.0D).next();
-                buffer.vertex((double) (itemMinX + 1), (double) (itemY - 1), 0.0D).next();
+                buffer.method_22912((double) (itemMinX + 1), (double) (itemY + itemHeight + 1), 0.0D).next();
+                buffer.method_22912((double) (itemMaxX - 1), (double) (itemY + itemHeight + 1), 0.0D).next();
+                buffer.method_22912((double) (itemMaxX - 1), (double) (itemY - 1), 0.0D).next();
+                buffer.method_22912((double) (itemMinX + 1), (double) (itemY - 1), 0.0D).next();
                 tessellator.draw();
                 RenderSystem.enableTexture();
             }
@@ -435,10 +436,10 @@ public abstract class DynamicEntryListWidget<E extends DynamicEntryListWidget.En
         RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
         float float_1 = 32.0F;
         bufferBuilder_1.begin(7, VertexFormats.POSITION_UV_COLOR);
-        bufferBuilder_1.vertex((double) this.left, (double) int_2, 0.0D).texture(0.0D, (double) ((float) int_2 / 32.0F)).color(64, 64, 64, int_4).next();
-        bufferBuilder_1.vertex((double) (this.left + this.width), (double) int_2, 0.0D).texture((double) ((float) this.width / 32.0F), (double) ((float) int_2 / 32.0F)).color(64, 64, 64, int_4).next();
-        bufferBuilder_1.vertex((double) (this.left + this.width), (double) int_1, 0.0D).texture((double) ((float) this.width / 32.0F), (double) ((float) int_1 / 32.0F)).color(64, 64, 64, int_3).next();
-        bufferBuilder_1.vertex((double) this.left, (double) int_1, 0.0D).texture(0.0D, (double) ((float) int_1 / 32.0F)).color(64, 64, 64, int_3).next();
+        bufferBuilder_1.method_22912((double) this.left, (double) int_2, 0.0D).method_22913(0, ((float) int_2 / 32.0F)).color(64, 64, 64, int_4).next();
+        bufferBuilder_1.method_22912((double) (this.left + this.width), (double) int_2, 0.0D).method_22913(((float) this.width / 32.0F), ((float) int_2 / 32.0F)).color(64, 64, 64, int_4).next();
+        bufferBuilder_1.method_22912((double) (this.left + this.width), (double) int_1, 0.0D).method_22913(((float) this.width / 32.0F), ((float) int_1 / 32.0F)).color(64, 64, 64, int_3).next();
+        bufferBuilder_1.method_22912((double) this.left, (double) int_1, 0.0D).method_22913(0, ((float) int_1 / 32.0F)).color(64, 64, 64, int_3).next();
         tessellator_1.draw();
     }
     

+ 13 - 12
src/main/java/me/shedaniel/clothconfig2/gui/widget/DynamicSmoothScrollingEntryListWidget.java

@@ -119,6 +119,7 @@ public abstract class DynamicSmoothScrollingEntryListWidget<E extends DynamicEnt
         return true;
     }
     
+    @SuppressWarnings("deprecation")
     @Override
     protected void renderScrollBar(Tessellator tessellator, BufferBuilder buffer, int maxScroll, int scrollbarPositionMinX, int scrollbarPositionMaxX) {
         if (!smoothScrolling)
@@ -131,26 +132,26 @@ public abstract class DynamicSmoothScrollingEntryListWidget<E extends DynamicEnt
             
             // Black Bar
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, this.bottom, 0.0D).texture(0.0D, 1.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, this.bottom, 0.0D).texture(1.0D, 1.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, this.top, 0.0D).texture(1.0D, 0.0D).color(0, 0, 0, 255).next();
-            buffer.vertex(scrollbarPositionMinX, this.top, 0.0D).texture(0.0D, 0.0D).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, this.bottom, 0.0D).method_22913(0, 1).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, this.bottom, 0.0D).method_22913(1, 1).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, this.top, 0.0D).method_22913(1, 0).color(0, 0, 0, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, this.top, 0.0D).method_22913(0, 0).color(0, 0, 0, 255).next();
             tessellator.draw();
             
             // Top
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, minY + height, 0.0D).texture(0.0D, 1.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, minY + height, 0.0D).texture(1.0D, 1.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMaxX, minY, 0.0D).texture(1.0D, 0.0D).color(128, 128, 128, 255).next();
-            buffer.vertex(scrollbarPositionMinX, minY, 0.0D).texture(0.0D, 0.0D).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, minY + height, 0.0D).method_22913(0, 1).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, minY + height, 0.0D).method_22913(1, 1).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMaxX, minY, 0.0D).method_22913(1, 0).color(128, 128, 128, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, minY, 0.0D).method_22913(0, 0).color(128, 128, 128, 255).next();
             tessellator.draw();
             
             // Bottom
             buffer.begin(7, VertexFormats.POSITION_UV_COLOR);
-            buffer.vertex(scrollbarPositionMinX, (minY + height - 1), 0.0D).texture(0.0D, 1.0D).color(192, 192, 192, 255).next();
-            buffer.vertex((scrollbarPositionMaxX - 1), (minY + height - 1), 0.0D).texture(1.0D, 1.0D).color(192, 192, 192, 255).next();
-            buffer.vertex((scrollbarPositionMaxX - 1), minY, 0.0D).texture(1.0D, 0.0D).color(192, 192, 192, 255).next();
-            buffer.vertex(scrollbarPositionMinX, minY, 0.0D).texture(0.0D, 0.0D).color(192, 192, 192, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, (minY + height - 1), 0.0D).method_22913(0, 1).color(192, 192, 192, 255).next();
+            buffer.method_22912((scrollbarPositionMaxX - 1), (minY + height - 1), 0.0D).method_22913(1, 1).color(192, 192, 192, 255).next();
+            buffer.method_22912((scrollbarPositionMaxX - 1), minY, 0.0D).method_22913(1, 0).color(192, 192, 192, 255).next();
+            buffer.method_22912(scrollbarPositionMinX, minY, 0.0D).method_22913(0, 0).color(192, 192, 192, 255).next();
             tessellator.draw();
         }
     }