diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-11 18:40:17 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-11 18:40:17 +0800 |
| commit | 57d84698c0c0ccdcfaa480cfd0f1515c545bd089 (patch) | |
| tree | c89d738570134a7fdb33d555f7260bf1837c0531 /src/main/java | |
| parent | 0b314135a82f18fa13ce1bcbe66e45ee5b3236a5 (diff) | |
| download | RoughlyEnoughItems-57d84698c0c0ccdcfaa480cfd0f1515c545bd089.tar.gz RoughlyEnoughItems-57d84698c0c0ccdcfaa480cfd0f1515c545bd089.tar.bz2 RoughlyEnoughItems-57d84698c0c0ccdcfaa480cfd0f1515c545bd089.zip | |
Furnace animated
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/DefaultSmeltingCategory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultSmeltingCategory.java b/src/main/java/me/shedaniel/rei/plugin/DefaultSmeltingCategory.java index 3784a1f8b..3bd10f472 100644 --- a/src/main/java/me/shedaniel/rei/plugin/DefaultSmeltingCategory.java +++ b/src/main/java/me/shedaniel/rei/plugin/DefaultSmeltingCategory.java @@ -12,6 +12,7 @@ import net.minecraft.client.render.GuiLighting; import net.minecraft.client.resource.language.I18n; import net.minecraft.item.ItemStack; import net.minecraft.util.Identifier; +import net.minecraft.util.math.MathHelper; import java.awt.*; import java.util.Arrays; @@ -48,6 +49,10 @@ public class DefaultSmeltingCategory implements IRecipeCategory<DefaultSmeltingD GuiLighting.disable(); MinecraftClient.getInstance().getTextureManager().bindTexture(DISPLAY_TEXTURE); drawTexturedRect(startPoint.x, startPoint.y, 0, 54, 82, 54); + int height = MathHelper.ceil((System.currentTimeMillis() / 250 % 14d) / 1f); + drawTexturedRect(startPoint.x + 2, startPoint.y + 21 + (14 - height), 82, 77 + (14 - height), 14, height); + int width = MathHelper.ceil((System.currentTimeMillis() / 250 % 24d) / 1f); + drawTexturedRect(startPoint.x + 24, startPoint.y + 19, 82, 92, width, 17); } })); List<List<ItemStack>> input = recipeDisplay.getInput(); |
