generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
12 changed files
with
209 additions
and
201 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
|
||
# Fabric Properties | ||
minecraft_version=1.18.2 | ||
yarn_mappings=1.18.2+build.1 | ||
loader_version=0.13.3 | ||
|
||
minecraft_version=1.19 | ||
yarn_mappings=1.19+build.1 | ||
loader_version=0.14.6 | ||
#Fabric api | ||
fabric_version=0.47.8+1.18.2 | ||
|
||
fabric_version=0.55.2+1.19 | ||
# Mod Properties | ||
mod_version = 1.0.11 | ||
maven_group = org.samo_lego | ||
archives_base_name = healthcare | ||
|
||
mod_version=1.1.0 | ||
maven_group=org.samo_lego | ||
archives_base_name=healthcare | ||
# Config editing lib | ||
c2b_version = 1.0.2 | ||
c2b_version=4c3b0be618 |
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
157 changes: 80 additions & 77 deletions
157
src/main/java/org/samo_lego/healthcare/command/HealthbarCommand.java
Large diffs are not rendered by default.
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
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
15 changes: 8 additions & 7 deletions
15
src/main/java/org/samo_lego/healthcare/mixin/EntityAccessor.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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
package org.samo_lego.healthcare.mixin; | ||
|
||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.data.TrackedData; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.network.syncher.EntityDataAccessor; | ||
import net.minecraft.world.entity.Entity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.util.Optional; | ||
|
||
@Mixin(Entity.class) | ||
public interface EntityAccessor { | ||
@Accessor("NAME_VISIBLE") | ||
static TrackedData<Boolean> getNAME_VISIBLE() { | ||
@Accessor("DATA_CUSTOM_NAME_VISIBLE") | ||
static EntityDataAccessor<Boolean> getNAME_VISIBLE() { | ||
throw new AssertionError(); | ||
} | ||
@Accessor("CUSTOM_NAME") | ||
static TrackedData<Optional<Text>> getCUSTOM_NAME() { | ||
|
||
@Accessor("DATA_CUSTOM_NAME") | ||
static EntityDataAccessor<Optional<Component>> getCUSTOM_NAME() { | ||
throw new AssertionError(); | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
src/main/java/org/samo_lego/healthcare/mixin/EntityTrackerUpdateS2CPacketAccessor.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
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
Oops, something went wrong.