diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 17:02:08 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 17:02:08 +0800 |
| commit | b6f36732c933c6d406d730e11cd3b7ed390b95ae (patch) | |
| tree | ea7f7ee385a313c45ba2e5ef6371b4f2eaeea322 /src/main/java/me/shedaniel/rei/plugin/blasting | |
| parent | b65de8ed7fe045df451130e3c790613c4f002e2c (diff) | |
| download | RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.gz RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.tar.bz2 RoughlyEnoughItems-b6f36732c933c6d406d730e11cd3b7ed390b95ae.zip | |
Speed Craft -> Auto Craft
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/blasting')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/blasting/DefaultBlastingCategory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/blasting/DefaultBlastingCategory.java b/src/main/java/me/shedaniel/rei/plugin/blasting/DefaultBlastingCategory.java index 3e7e8ae05..d012f9592 100644 --- a/src/main/java/me/shedaniel/rei/plugin/blasting/DefaultBlastingCategory.java +++ b/src/main/java/me/shedaniel/rei/plugin/blasting/DefaultBlastingCategory.java @@ -12,6 +12,7 @@ import me.shedaniel.math.api.Rectangle; import me.shedaniel.rei.api.Renderer; import me.shedaniel.rei.api.TransferRecipeCategory; import me.shedaniel.rei.gui.renderers.RecipeRenderer; +import me.shedaniel.rei.gui.widget.RecipeArrowWidget; import me.shedaniel.rei.gui.widget.RecipeBaseWidget; import me.shedaniel.rei.gui.widget.SlotWidget; import me.shedaniel.rei.gui.widget.Widget; @@ -68,10 +69,9 @@ public class DefaultBlastingCategory implements TransferRecipeCategory<DefaultBl blit(startPoint.x, startPoint.y, 0, 54, 82, 54); int height = MathHelper.ceil((System.currentTimeMillis() / 250 % 14d) / 1f); blit(startPoint.x + 2, startPoint.y + 21 + (14 - height), 82, 77 + (14 - height), 14, height); - int width = MathHelper.ceil((System.currentTimeMillis() / 250 % 24d) / 1f); - blit(startPoint.x + 24, startPoint.y + 18, 82, 91, width, 17); } })); + widgets.add(new RecipeArrowWidget(startPoint.x + 24, startPoint.y + 18, true)); List<List<ItemStack>> input = recipeDisplay.getInput(); widgets.add(new SlotWidget(startPoint.x + 1, startPoint.y + 1, Renderer.fromItemStacks(input.get(0)), true, true, true)); widgets.add(new SlotWidget(startPoint.x + 1, startPoint.y + 37, Renderer.fromItemStacks(recipeDisplay.getFuel()), true, true, true) { @@ -89,7 +89,7 @@ public class DefaultBlastingCategory implements TransferRecipeCategory<DefaultBl Point startPoint = new Point(bounds.getCenterX() - 41, bounds.getCenterY() - 27); GlStateManager.translatef(0, 0, 400); if (redSlots.contains(0)) { - DrawableHelper.fill(startPoint.x + 1, startPoint.y + 1, startPoint.x + 1 + 16, startPoint.y + 1 + 16, 0x30ff0000); + DrawableHelper.fill(startPoint.x + 1, startPoint.y + 1, startPoint.x + 1 + 16, startPoint.y + 1 + 16, 822018048); } GlStateManager.translatef(0, 0, -400); } |
