diff options
author | ingle <inglettronald@gmail.com> | 2022-09-23 05:01:47 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-09-23 05:01:47 -0500 |
commit | add142c970d52d33e731fb3a30605a5ef1f128bd (patch) | |
tree | 5cad6bf99e2453481f3cbba220cbe6491b4ce625 /src/main/java/com/example/mixin/MixinRendererManager.java | |
parent | 033de65a180b64fc645036d142589f57956ea263 (diff) | |
download | DulkirMod-add142c970d52d33e731fb3a30605a5ef1f128bd.tar.gz DulkirMod-add142c970d52d33e731fb3a30605a5ef1f128bd.tar.bz2 DulkirMod-add142c970d52d33e731fb3a30605a5ef1f128bd.zip |
Nothing works yet :+1:
Diffstat (limited to 'src/main/java/com/example/mixin/MixinRendererManager.java')
-rw-r--r-- | src/main/java/com/example/mixin/MixinRendererManager.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/main/java/com/example/mixin/MixinRendererManager.java b/src/main/java/com/example/mixin/MixinRendererManager.java deleted file mode 100644 index eae11fa..0000000 --- a/src/main/java/com/example/mixin/MixinRendererManager.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.example.mixin;
-
-import net.minecraft.client.renderer.entity.RenderManager;
-import net.minecraft.entity.Entity;
-import net.minecraft.entity.item.EntityArmorStand;
-import net.minecraft.init.Items;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-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(RenderManager.class)
-public class MixinRendererManager {
-
- @Inject(method = "doRenderEntity", at = @At("HEAD"))
- public void doRender(
- Entity entity,
- double x,
- double y,
- double z,
- float entityYaw,
- float partialTicks,
- boolean p_147939_10_,
- CallbackInfoReturnable<Boolean> cir
- ) {
-
- if (entity instanceof EntityArmorStand) {
- if (((EntityArmorStand) entity).getHeldItem() != null && ((EntityArmorStand) entity).getHeldItem().getItem() == Items.skull) {
- ItemStack stack = ((EntityArmorStand) entity).getHeldItem();
- if (stack.hasTagCompound() && stack.getTagCompound().hasKey("SkullOwner")) {
- NBTTagCompound skullOwner = stack.getTagCompound().getCompoundTag("SkullOwner");
- if (skullOwner.hasKey("Properties")) {
- NBTTagCompound properties = skullOwner.getCompoundTag("Properties");
- if (properties.hasKey("textures")) {
- if ("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTZjM2UzMWNmYzY2NzMzMjc1YzQyZmNmYjVkOWE0NDM0MmQ2NDNiNTVjZDE0YzljNzdkMjczYTIzNTIifX19"
- .equals(properties.getTagList("textures", 10).getCompoundTagAt(0).getString("Value")))
- cir.cancel();
- }
-
- }
-
- }
-
- }
- }
- }
-}
\ No newline at end of file |