From 5d1994e6ecde186bf56c6286fe91de6da9d12a67 Mon Sep 17 00:00:00 2001 From: MCZME <13183052+mczme@user.noreply.gitee.com> Date: Tue, 20 Aug 2024 17:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E9=94=85=E9=93=B2?= =?UTF-8?q?=E6=9D=90=E8=B4=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../71e72dbdeb626cc835aaccd2ae47fd3d8794cd24 | 3 ++- .../mczme/lingshi/client/screen/CookingHud.java | 3 +-- .../mczme/lingshi/common/data/ItemModels.java | 2 +- .../assets/lingshi/textures/gui/cooking_hud.png | Bin 335 -> 726 bytes .../assets/lingshi/textures/item/spatula.png | Bin 0 -> 368 bytes 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/assets/lingshi/textures/item/spatula.png diff --git a/src/generated/resources/.cache/71e72dbdeb626cc835aaccd2ae47fd3d8794cd24 b/src/generated/resources/.cache/71e72dbdeb626cc835aaccd2ae47fd3d8794cd24 index 0b3e466..13f47da 100644 --- a/src/generated/resources/.cache/71e72dbdeb626cc835aaccd2ae47fd3d8794cd24 +++ b/src/generated/resources/.cache/71e72dbdeb626cc835aaccd2ae47fd3d8794cd24 @@ -1,4 +1,4 @@ -// 1.21 2024-08-18T21:30:07.1396541 Item Models: lingshi +// 1.21 2024-08-20T17:21:47.1347182 Item Models: lingshi bad0cb5e093fa42331c2d4a1157d1a7b5b3fc588 assets/lingshi/models/item/chopping_board.json 249957a6811e300efca306db358e468855851d73 assets/lingshi/models/item/iron_knife.json b767fc7952daf0eff3485fe4d8c06c5bba930c22 assets/lingshi/models/item/oil_bucket.json @@ -6,3 +6,4 @@ b767fc7952daf0eff3485fe4d8c06c5bba930c22 assets/lingshi/models/item/oil_bucket.j abe8ae1523c26af167289fe958382b2477d96ea1 assets/lingshi/models/item/rice_of_ear.json 57cfb1f90de649ab0f56f107cb56e1d0d2f87ae6 assets/lingshi/models/item/rice_seedling.json cff85c127954ba63ac8129929c0d7346bf8f305d assets/lingshi/models/item/skillet.json +da8fb27d7e9b15fbd96ca8a49b328776550bb2b3 assets/lingshi/models/item/spatula.json diff --git a/src/main/java/mczme/lingshi/client/screen/CookingHud.java b/src/main/java/mczme/lingshi/client/screen/CookingHud.java index eece4c0..ad4c575 100644 --- a/src/main/java/mczme/lingshi/client/screen/CookingHud.java +++ b/src/main/java/mczme/lingshi/client/screen/CookingHud.java @@ -5,7 +5,6 @@ import mczme.lingshi.common.datamap.ingredient.CookingFoodData; import mczme.lingshi.common.registry.BlockEntityTypes; import mczme.lingshi.common.registry.ModFluids; -import mczme.lingshi.common.registry.ModItems; import mczme.lingshi.lingshi; import net.minecraft.client.DeltaTracker; import net.minecraft.client.Minecraft; @@ -52,7 +51,7 @@ public void render(@NotNull GuiGraphics pGuiGraphics, @NotNull DeltaTracker pDel int j = 0; if (!result.isEmpty()) { pGuiGraphics.renderItem(result, X - 18, Y); - pGuiGraphics.renderItem(new ItemStack(ModItems.SPATULA.get()), X, Y); + pGuiGraphics.blit(HUD_Sprite, X, Y , 16, 16, 0, 36,16,16, 64, 64); pGuiGraphics.drawCenteredString(Minecraft.getInstance().font, String.valueOf(stirFryCount), X + 24, Y + 6, 0xffffff); if (!container.isEmpty()) { pGuiGraphics.renderItem(container, X + 36, Y); diff --git a/src/main/java/mczme/lingshi/common/data/ItemModels.java b/src/main/java/mczme/lingshi/common/data/ItemModels.java index 07a7a85..063b1ec 100644 --- a/src/main/java/mczme/lingshi/common/data/ItemModels.java +++ b/src/main/java/mczme/lingshi/common/data/ItemModels.java @@ -22,7 +22,7 @@ protected void registerModels() { withExistingParent(String.valueOf(ModItems.CHOPPING_BOARD.get()), modLoc("block/chopping_board")); withExistingParent(String.valueOf(ModItems.SKILLET.get()), modLoc("block/skillet")); withExistingParent(String.valueOf(ModItems.IRON_KNIFE.get()),mcLoc("item/handheld")).texture("layer0", modLoc("item/iron_knife")); - + withExistingParent(String.valueOf(ModItems.SPATULA.get()),mcLoc("item/handheld")).texture("layer0", modLoc("item/spatula")); } } diff --git a/src/main/resources/assets/lingshi/textures/gui/cooking_hud.png b/src/main/resources/assets/lingshi/textures/gui/cooking_hud.png index f4bc9582afa76470fe428a545849db1f97132c06..9f78b8c29a8d19ca27601b04a8424545a2c17087 100644 GIT binary patch delta 703 zcmV;w0zm!G0@ekPBYy&&Nkl~VcAcUn)t!tn=`Md?X-^%6y(G!285RhGyql`Ve30>ED3$OvQ z3y=-x085`**8t~$4$9{M^F3grsL8I$QTRQe3mYK20NHR3u=J^Q4R8+VpnMK6-vcTa ze6nkDlm`Gk9(7K0ybD0RSj(l>h*>S`FE37RAEbkrxlU;NJ4@wG+t{MM7Z|iUo5_tJT7r z*PTCAT7SomD)tp%l1QfLY$SqwKHoRnJ}qD#l%sCKz(X*ROwq+lm+@|W{m7+0>cWqt zH?vdMuG>#|8Z^$?>i#o}^W(I%yh1&30|c6Fw}>~F@#6eAX1pw6vpvSp=qI%o*_$ogdU=FDM4p3y+dvy zat811n5l$-Z_p)EhP)1TT#uRbpzr@1Y!DbeJtOI%q(7!u()5sIX0hg<(lGzK>*Twx z^UhRN&RL}tTX+ZYMghD7c$+rCoU?P3x=JaMl+tW0)-f>te1Dd}_zv3#r0e8gKOem_ zRrR!eQz?ZdKmoi1c%u)Pjm0_!=mQ4f`+(^_VE^^tovAAB14b0UJAgO(fZ15AV}L$j z5WWwX?gNf5OYcloeXQQO4-k6*1)vWI-v>yNnzpy5?V}Yyl9ZaZx8wI-c0TEHxR(x_ zbi;T5#zK000000000003e26TtZ-z{vCyr00000NkvXX Hu0mjfDtVAh diff --git a/src/main/resources/assets/lingshi/textures/item/spatula.png b/src/main/resources/assets/lingshi/textures/item/spatula.png new file mode 100644 index 0000000000000000000000000000000000000000..d2fb09489625b8fad8fbb6237f0b411b9600ab4e GIT binary patch literal 368 zcmV-$0gwKPP)A!bjJu_!&NFZ*=vzc>VKpcft)e)1_yMZ9(IJo)2XVhSh%6dh(@jjaSykkgQm@@g0MaZtnM#XDSf^I6O=h-jPvDt? zWGXF|A`z<9stcITpEpRR(qe6WgS$p!Cj9T_VyP@*+dIF$&NGEvG%!4=SI9+$5|Vj& zedEL&`mQYl