diff --git a/build.gradle b/build.gradle index 93e7b01f..fb819929 100644 --- a/build.gradle +++ b/build.gradle @@ -82,7 +82,7 @@ processResources { } dependencies { - factory 'org.spongepowered:mixin:0.5.3-SNAPSHOT' + factory 'org.spongepowered:mixin:0.5.5-SNAPSHOT' } processor { options.reobfSrgFile = project.tasks.genSrgs.mcpToSrg.path diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/EntityPlayerModel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/EntityPlayerModel.java index a78f3203..35a9408c 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/EntityPlayerModel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/EntityPlayerModel.java @@ -6,6 +6,7 @@ import java.io.IOException; import javax.imageio.ImageIO; +import com.google.common.collect.Iterables; import com.mojang.authlib.GameProfile; import com.voxelmodpack.hdskins.HDSkinManager; import com.voxelmodpack.hdskins.ImageBufferDownloadHD; @@ -15,11 +16,14 @@ import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.DynamicTexture; import net.minecraft.client.renderer.texture.TextureManager; import net.minecraft.client.resources.DefaultPlayerSkin; -import net.minecraft.entity.EntityLiving; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.inventory.EntityEquipmentSlot; +import net.minecraft.item.ItemStack; +import net.minecraft.util.EnumHandSide; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; -public class EntityPlayerModel extends EntityLiving { +public class EntityPlayerModel extends EntityLivingBase { public static final ResourceLocation NOSKIN = new ResourceLocation("hdskins", "textures/mob/noskin.png"); private PreviewTexture remoteSkinTexture; private ResourceLocation remoteSkinResource; @@ -127,4 +131,30 @@ public class EntityPlayerModel extends EntityLiving { this.swingProgress = this.swingProgressInt / 8.0F; } + + @Override + public EnumHandSide getPrimaryHand() { + return Minecraft.getMinecraft().gameSettings.mainHand; + } + + @Override + public int getBrightnessForRender(float partialTicks) { + return 1; + } + + @Override + public Iterable getArmorInventoryList() { + return Iterables.cycle(null, null, null, null); + } + + @Override + public ItemStack getItemStackFromSlot(EntityEquipmentSlot slotIn) { + return null; + } + + @Override + public void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack) { + + } + } diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java index d95a3dbe..72a299d8 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/RenderPlayerModel.java @@ -6,11 +6,11 @@ import org.lwjgl.opengl.GL11; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelPlayer; -import net.minecraft.client.renderer.entity.RenderLiving; +import net.minecraft.client.renderer.entity.RenderLivingBase; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; -public class RenderPlayerModel extends RenderLiving { +public class RenderPlayerModel extends RenderLivingBase { public RenderPlayerModel(RenderManager renderer) { super(renderer, new ModelPlayer(0, false), 0.0F);