-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
d4b536e
commit 37cbd29
Showing
12 changed files
with
129 additions
and
63 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
Binary file not shown.
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,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/us/potatoboy/petowner/client/PetRenderState.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,14 @@ | ||
package us.potatoboy.petowner.client; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public interface PetRenderState { | ||
List<UUID> petOwner$getOwnerIds(); | ||
boolean petOwner$getHasPassenger(); | ||
boolean petOwner$getIsTargeted(); | ||
|
||
void petOwner$setOwnerIds(List<UUID> ownerIds); | ||
void petOwner$setHasPassenger(boolean hasPassenger); | ||
void petOwner$setIsTargeted(boolean isTargeted); | ||
} |
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
49 changes: 49 additions & 0 deletions
49
src/main/java/us/potatoboy/petowner/mixin/EntityRenderStateMixin.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,49 @@ | ||
package us.potatoboy.petowner.mixin; | ||
|
||
import net.minecraft.client.render.entity.state.EntityRenderState; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Unique; | ||
import us.potatoboy.petowner.client.PetRenderState; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
@Mixin(EntityRenderState.class) | ||
public abstract class EntityRenderStateMixin implements PetRenderState { | ||
@Unique | ||
public List<UUID> ownerIds; | ||
@Unique | ||
public boolean hasPassenger; | ||
@Unique | ||
public boolean isTargeted; | ||
|
||
@Override | ||
public List<UUID> petOwner$getOwnerIds() { | ||
return ownerIds; | ||
} | ||
|
||
@Override | ||
public boolean petOwner$getHasPassenger() { | ||
return hasPassenger; | ||
} | ||
|
||
@Override | ||
public boolean petOwner$getIsTargeted() { | ||
return isTargeted; | ||
} | ||
|
||
@Override | ||
public void petOwner$setOwnerIds(List<UUID> ownerIds) { | ||
this.ownerIds = ownerIds; | ||
} | ||
|
||
@Override | ||
public void petOwner$setHasPassenger(boolean hasPassenger) { | ||
this.hasPassenger = hasPassenger; | ||
} | ||
|
||
@Override | ||
public void petOwner$setIsTargeted(boolean isTargeted) { | ||
this.isTargeted = isTargeted; | ||
} | ||
} |
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