diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-03-29 00:26:28 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-03-29 00:26:28 +0800 |
| commit | d5b270a829f5488ba6ab72778745da1f64769ff8 (patch) | |
| tree | d9a54849b1c1d2e55ad38baa5d8055a5fcdf9617 /src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java | |
| parent | ef6b2038f1aae2659e98e503324fb2aee85c1d2b (diff) | |
| download | RoughlyEnoughItems-d5b270a829f5488ba6ab72778745da1f64769ff8.tar.gz RoughlyEnoughItems-d5b270a829f5488ba6ab72778745da1f64769ff8.tar.bz2 RoughlyEnoughItems-d5b270a829f5488ba6ab72778745da1f64769ff8.zip | |
Update to 19w13a
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java index bbe99e6ff..d12da64d0 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/ItemSlotWidget.java @@ -46,7 +46,7 @@ public class ItemSlotWidget extends HighlightableWidget { } @Override - public List<? extends InputListener> getInputListeners() { + public List<? extends InputListener> children() { return Collections.emptyList(); } @@ -63,13 +63,13 @@ public class ItemSlotWidget extends HighlightableWidget { final ItemStack itemStack = getCurrentStack(); if (drawBackground) { MinecraftClient.getInstance().getTextureManager().bindTexture(RECIPE_GUI); - drawTexturedRect(this.x - 1, this.y - 1, 0, 222, 18, 18); + blit(this.x - 1, this.y - 1, 0, 222, 18, 18); } if (drawHighlightedBackground && isHighlighted(mouseX, mouseY)) { GlStateManager.disableLighting(); GlStateManager.disableDepthTest(); GlStateManager.colorMask(true, true, true, false); - drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433); + fill(x, y, x + 16, y + 16, -2130706433); GlStateManager.colorMask(true, true, true, true); GlStateManager.enableLighting(); GlStateManager.enableDepthTest(); @@ -131,9 +131,9 @@ public class ItemSlotWidget extends HighlightableWidget { return false; if (getBounds().contains(mouseX, mouseY)) if (button == 0) - return ClientHelper.executeRecipeKeyBind(getCurrentStack().copy()); + return ClientHelper.executeRecipeKeyBind(getCurrentStack()); else if (button == 1) - return ClientHelper.executeUsageKeyBind(getCurrentStack().copy()); + return ClientHelper.executeUsageKeyBind(getCurrentStack()); return false; } @@ -143,7 +143,7 @@ public class ItemSlotWidget extends HighlightableWidget { return false; if (getBounds().contains(ClientUtils.getMouseLocation())) if (ClientHelper.RECIPE.matchesKey(int_1, int_2)) - return ClientHelper.executeRecipeKeyBind(getCurrentStack().copy()); + return ClientHelper.executeRecipeKeyBind(getCurrentStack()); else if (ClientHelper.USAGE.matchesKey(int_1, int_2)) return ClientHelper.executeUsageKeyBind(getCurrentStack()); return false; |
