-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layer render mixin & wandering trades
- Loading branch information
1 parent
fab92f8
commit a4aa762
Showing
8 changed files
with
51 additions
and
82 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
24 changes: 0 additions & 24 deletions
24
common/src/main/java/galena/thigh_highs_etc/client/OptionsModifier.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
common/src/main/java/galena/thigh_highs_etc/mixin/LivingEntityMixin.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
common/src/main/java/galena/thigh_highs_etc/mixin/OptionsMixin.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
common/src/main/java/galena/thigh_highs_etc/mixin/PlayerMixin.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,25 @@ | ||
package galena.thigh_highs_etc.mixin; | ||
|
||
import galena.thigh_highs_etc.index.THEItems; | ||
import net.minecraft.world.entity.EquipmentSlot; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.entity.player.PlayerModelPart; | ||
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.CallbackInfoReturnable; | ||
|
||
@Mixin(Player.class) | ||
public class PlayerMixin { | ||
|
||
@Inject(at = @At("HEAD"), method = "isModelPartShown(Lnet/minecraft/world/entity/player/PlayerModelPart;)Z", cancellable = true) | ||
public void onEquip(PlayerModelPart part, CallbackInfoReturnable<Boolean> cir) { | ||
@SuppressWarnings("DataFlowIssue") | ||
var self = (Player) (Object) this; | ||
var boots = self.getItemBySlot(EquipmentSlot.FEET); | ||
if (boots.is(THEItems.THIGH_HIGHS_TAG)) { | ||
cir.setReturnValue(false); | ||
} | ||
} | ||
|
||
} |
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