-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a83da93
commit df5eef3
Showing
13 changed files
with
111 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
uses: TeamFelnull/actions-reusable-workflows/.github/workflows/mcmod-release.yml@master | ||
with: | ||
build_tasks: "build curseforge modrinth" | ||
secrets: | ||
curseforge_token: ${{ secrets.CURESFORGEAPIKEY }} | ||
modrinth_token: ${{ secrets.MODRINTH }} | ||
|
||
postRelease: | ||
name: Update after release | ||
needs: release | ||
uses: TeamFelnull/actions-reusable-workflows/.github/workflows/mcmod-post-release.yml@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Changelog | ||
|
||
Changelog to track updates for this mod. | ||
Add your changes to Unreleased if you want to commit. | ||
Please write according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
### Changed | ||
|
||
- Port MC1.19.4 | ||
|
||
### Deprecated | ||
|
||
### Removed | ||
|
||
### Fixed | ||
|
||
### Security | ||
|
||
[Unreleased]: https://github.com/MORIMORI0317/MemoryUsageScreen/commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
fabric/src/main/java/net/morimori0317/mus/fabric/mixin/ScreenMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.morimori0317.mus.fabric.mixin; | ||
|
||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import net.minecraft.client.gui.screens.Screen; | ||
import net.morimori0317.mus.api.MemoryUsageScreenAPI; | ||
import net.morimori0317.mus.handler.RenderHandler; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(Screen.class) | ||
public class ScreenMixin { | ||
@Inject(method = "renderWithTooltip", at = @At("TAIL")) | ||
private void renderWithTooltip(PoseStack poseStack, int i, int j, float f, CallbackInfo ci) { | ||
var thiz = (Screen) (Object) this; | ||
if (MemoryUsageScreenAPI.getInstance().isEnableScreen(thiz)) | ||
RenderHandler.onScreenRender(poseStack, thiz, f); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"required": true, | ||
"package": "net.morimori0317.mus.fabric.mixin", | ||
"compatibilityLevel": "JAVA_17", | ||
"minVersion": "0.8", | ||
"client": [ | ||
"ScreenMixin" | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
org.gradle.jvmargs=-Xmx6152M | ||
|
||
minecraft_version=1.19.3 | ||
support_versions=1.19.3 | ||
minecraft_version=1.19.4 | ||
support_versions=1.19.4 | ||
enabled_platforms=fabric,forge | ||
|
||
archives_base_name=memoryusagescreen | ||
mod_display_name=MemoryUsageScreen | ||
mod_version=1.7.0 | ||
mod_version=1.8.0 | ||
maven_group=net.morimori0317 | ||
|
||
architectury_version=7.0.65 | ||
cloth_config_version=9.0.94 | ||
cloth_config_version=10.0.96 | ||
|
||
fabric_loader_version=0.14.11 | ||
fabric_api_version=0.69.1+1.19.3 | ||
mod_menu_version=5.0.2 | ||
fabric_loader_version=0.14.17 | ||
fabric_api_version=0.76.0+1.19.4 | ||
mod_menu_version=6.1.0-rc.4 | ||
|
||
forge_version=1.19.3-44.0.30 | ||
forge_version=1.19.4-45.0.6 | ||
|
||
curesforge_id=500009 | ||
modrinth_id=n9mFA0ax | ||
release_type=release | ||
|
||
|
||
repository_url=https://github.com/MORIMORI0317/MemoryUsageScreen | ||
|
||
|