Skip to content

Commit 7f373a6

Browse files
authored
Merge pull request #23 from BlazingTwist/1.21.0
update to 1.21.0
2 parents bca164c + 8adf33a commit 7f373a6

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ItemCounts
22

33
A Minecraft [Fabric](https://fabricmc.net/) mod that displays the total amount of items in your hotbar.
4-
Built for version 1.20.5
4+
Built for version 1.21.0
55

66
[Curseforge release](https://www.curseforge.com/minecraft/mc-mods/item-counts-fabric)
77

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.6-SNAPSHOT'
2+
id 'fabric-loom' version '1.7-SNAPSHOT'
33
id 'maven-publish'
44
}
55

@@ -29,10 +29,10 @@ dependencies {
2929
// Fabric API. This is technically optional, but you probably want it anyway.
3030
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
3131

32-
modImplementation("me.shedaniel.cloth:cloth-config-fabric:[14.0,15.0)") {
32+
modImplementation("me.shedaniel.cloth:cloth-config-fabric:[15.0,16.0)") {
3333
exclude(group: "net.fabricmc.fabric-api")
3434
}
35-
modImplementation("com.terraformersmc:modmenu:[10.0,11.0)") {
35+
modImplementation("com.terraformersmc:modmenu:[11.0,12.0)") {
3636
exclude group: "net.fabricmc.fabric-api"
3737
}
3838

gradle.properties

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/versions.html
6-
minecraft_version=1.20.5
7-
yarn_mappings=1.20.5+build.1
8-
loader_version=0.15.10
6+
minecraft_version=1.21
7+
yarn_mappings=1.21+build.2
8+
loader_version=0.15.11
99

1010
# Mod Properties
1111
mod_version = 1.4.1
1212
maven_group = blazingtwist
1313
archives_base_name = itemcounts
1414

1515
# Dependencies
16-
fabric_version=0.97.5+1.20.5
16+
fabric_version=0.100.3+1.21

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

src/main/java/blazingtwist/itemcounts/mixin/InGameHudMixin.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import net.minecraft.client.gui.hud.InGameHud;
1212
import net.minecraft.client.render.DiffuseLighting;
1313
import net.minecraft.client.render.OverlayTexture;
14+
import net.minecraft.client.render.RenderTickCounter;
1415
import net.minecraft.client.render.VertexConsumerProvider;
1516
import net.minecraft.client.render.item.ItemRenderer;
1617
import net.minecraft.client.render.model.BakedModel;
@@ -145,12 +146,12 @@ private void renderItemAt(DrawContext context, ItemStack item, int x, int y, flo
145146
"Lnet/minecraft/client/gui/DrawContext;" +
146147
"I" +
147148
"I" +
148-
"F" +
149+
"Lnet/minecraft/client/render/RenderTickCounter;" +
149150
"Lnet/minecraft/entity/player/PlayerEntity;" +
150151
"Lnet/minecraft/item/ItemStack;" +
151152
"I" +
152153
")V", at = @At("TAIL"))
153-
public void onRenderHotbarItem(DrawContext context, int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int seed, CallbackInfo info) {
154+
public void onRenderHotbarItem(DrawContext context, int x, int y, RenderTickCounter tickCounter, PlayerEntity player, ItemStack stack, int seed, CallbackInfo info) {
154155
if (stack.isEmpty()) {
155156
return;
156157
}
@@ -175,7 +176,7 @@ public void onRenderHotbarItem(DrawContext context, int x, int y, float tickDelt
175176
"Lnet/minecraft/client/gui/DrawContext;" +
176177
"I" +
177178
"I" +
178-
"F" +
179+
"Lnet/minecraft/client/render/RenderTickCounter;" +
179180
"Lnet/minecraft/entity/player/PlayerEntity;" +
180181
"Lnet/minecraft/item/ItemStack;" +
181182
"I" +
@@ -193,7 +194,7 @@ public void onRenderHotbarItem(DrawContext context, int x, int y, float tickDelt
193194
)
194195
)
195196
private void onBefore_drawHotbarItem_call_drawItemInSlot(
196-
DrawContext context, int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int seed, CallbackInfo info
197+
DrawContext context, int x, int y, RenderTickCounter tickCounter, PlayerEntity player, ItemStack stack, int seed, CallbackInfo info
197198
) {
198199
ItemCounts.mixin_drawItemCalledFromRenderHotbarItem = true;
199200
}

src/main/resources/fabric.mod.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
],
3131

3232
"depends": {
33-
"fabricloader": ">=0.15.10",
33+
"fabricloader": ">=0.15.11",
3434
"fabric": "*",
35-
"minecraft": "~1.20.5",
35+
"minecraft": "~1.21",
3636
"java": ">=17"
3737
},
3838
"suggests": {

0 commit comments

Comments
 (0)