-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework head hiding to support more mods
Fixes Improved-Animations
- Loading branch information
Showing
9 changed files
with
110 additions
and
158 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
9 changes: 9 additions & 0 deletions
9
src/main/java/dev/tr7zw/firstperson/access/AgeableListModelAccess.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,9 @@ | ||
package dev.tr7zw.firstperson.access; | ||
|
||
import net.minecraft.client.model.geom.ModelPart; | ||
|
||
public interface AgeableListModelAccess { | ||
|
||
Iterable<ModelPart> firstPersonHeadPartsGetter(); | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/dev/tr7zw/firstperson/mixins/AgeableListModelMixin.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,21 @@ | ||
package dev.tr7zw.firstperson.mixins; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import dev.tr7zw.firstperson.access.AgeableListModelAccess; | ||
import net.minecraft.client.model.AgeableListModel; | ||
import net.minecraft.client.model.geom.ModelPart; | ||
|
||
@Mixin(AgeableListModel.class) | ||
public abstract class AgeableListModelMixin implements AgeableListModelAccess { | ||
|
||
@Override | ||
public Iterable<ModelPart> firstPersonHeadPartsGetter() { | ||
return headParts(); | ||
} | ||
|
||
@Shadow | ||
public abstract Iterable<ModelPart> headParts(); | ||
|
||
} |
60 changes: 0 additions & 60 deletions
60
src/main/java/dev/tr7zw/firstperson/mixins/HumanoidModelMixin.java
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
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
70 changes: 0 additions & 70 deletions
70
src/main/java/dev/tr7zw/firstperson/mixins/PlayerRenderMixin.java
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