-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #513 from tr7zw/update1.21.3
Update to 1.21.3
- Loading branch information
Showing
22 changed files
with
447 additions
and
180 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
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
8 changes: 6 additions & 2 deletions
8
src/main/java/dev/tr7zw/firstperson/access/PlayerModelAccess.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,9 +1,13 @@ | ||
package dev.tr7zw.firstperson.access; | ||
|
||
import net.minecraft.client.model.geom.ModelPart; | ||
//#if MC < 12103 | ||
//$$import net.minecraft.client.model.geom.ModelPart; | ||
//#endif | ||
|
||
public interface PlayerModelAccess { | ||
|
||
ModelPart getCloak(); | ||
//#if MC < 12103 | ||
//$$ ModelPart getCloak(); | ||
//#endif | ||
|
||
} |
36 changes: 22 additions & 14 deletions
36
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 |
---|---|---|
@@ -1,21 +1,29 @@ | ||
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; | ||
//#if MC < 12103 | ||
//$$import org.spongepowered.asm.mixin.Shadow; | ||
//$$import dev.tr7zw.firstperson.access.AgeableListModelAccess; | ||
//$$import net.minecraft.client.model.AgeableListModel; | ||
//#endif | ||
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(); | ||
|
||
//#if MC >= 12103 | ||
@Mixin(ModelPart.class) | ||
public abstract class AgeableListModelMixin { | ||
} | ||
//#else | ||
//$$@Mixin(AgeableListModel.class) | ||
//$$public abstract class AgeableListModelMixin implements AgeableListModelAccess { | ||
//$$ | ||
//$$ @Override | ||
//$$ public Iterable<ModelPart> firstPersonHeadPartsGetter() { | ||
//$$ return headParts(); | ||
//$$ } | ||
//$$ | ||
//$$ @Shadow | ||
//$$ public abstract Iterable<ModelPart> headParts(); | ||
//$$ | ||
//$$} | ||
//#endif |
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
Oops, something went wrong.