Update mappings + cleanup SoulSnare render
Removed some (seemingly) unnecessary code from RenderEntitySoulSnare
This commit is contained in:
parent
34e6350cbc
commit
c50f15e124
|
@ -5,7 +5,7 @@ mc_version=1.8.9
|
|||
forge_version=latest
|
||||
curse_id=224791
|
||||
|
||||
mappings_version=snapshot_20151128
|
||||
mappings_version=snapshot_20160109
|
||||
|
||||
jei_version=2.15.0.70
|
||||
waila_version=1.6.0-B3
|
|
@ -105,7 +105,7 @@ public class RenderAltar extends TileEntitySpecialRenderer<TileAltar>
|
|||
GlStateManager.scale(0.5F, 0.5F, 0.5F);
|
||||
GlStateManager.pushAttrib();
|
||||
RenderHelper.enableStandardItemLighting();
|
||||
itemRenderer.func_181564_a(entityitem.getEntityItem(), ItemCameraTransforms.TransformType.FIXED);
|
||||
itemRenderer.renderItem(entityitem.getEntityItem(), ItemCameraTransforms.TransformType.FIXED);
|
||||
RenderHelper.disableStandardItemLighting();
|
||||
GlStateManager.popAttrib();
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package WayofTime.bloodmagic.client.render.entity;
|
||||
|
||||
import WayofTime.bloodmagic.registry.ModItems;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.GlStateManager;
|
||||
import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
|
@ -13,14 +15,11 @@ import WayofTime.bloodmagic.entity.projectile.EntitySoulSnare;
|
|||
|
||||
public class RenderEntitySoulSnare extends Render<EntitySoulSnare>
|
||||
{
|
||||
protected final Item field_177084_a;
|
||||
private final RenderItem field_177083_e;
|
||||
private final RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||
|
||||
public RenderEntitySoulSnare(RenderManager renderManagerIn, Item p_i46137_2_, RenderItem p_i46137_3_)
|
||||
public RenderEntitySoulSnare(RenderManager renderManagerIn)
|
||||
{
|
||||
super(renderManagerIn);
|
||||
this.field_177084_a = p_i46137_2_;
|
||||
this.field_177083_e = p_i46137_3_;
|
||||
}
|
||||
|
||||
public void doRender(EntitySoulSnare entity, double x, double y, double z, float entityYaw, float partialTicks)
|
||||
|
@ -32,17 +31,12 @@ public class RenderEntitySoulSnare extends Render<EntitySoulSnare>
|
|||
GlStateManager.rotate(-this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
|
||||
GlStateManager.rotate(this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
|
||||
this.bindTexture(TextureMap.locationBlocksTexture);
|
||||
this.field_177083_e.func_181564_a(this.func_177082_d(entity), ItemCameraTransforms.TransformType.GROUND);
|
||||
this.renderItem.renderItem(new ItemStack(ModItems.soulSnare), ItemCameraTransforms.TransformType.GROUND);
|
||||
GlStateManager.disableRescaleNormal();
|
||||
GlStateManager.popMatrix();
|
||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||
}
|
||||
|
||||
public ItemStack func_177082_d(EntitySoulSnare entityIn)
|
||||
{
|
||||
return new ItemStack(this.field_177084_a, 1, 0);
|
||||
}
|
||||
|
||||
protected ResourceLocation getEntityTexture(EntitySoulSnare entity)
|
||||
{
|
||||
return TextureMap.locationBlocksTexture;
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
package WayofTime.bloodmagic.client.render.entity;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
import WayofTime.bloodmagic.entity.projectile.EntitySoulSnare;
|
||||
import WayofTime.bloodmagic.registry.ModItems;
|
||||
|
||||
public class SoulSnareRenderFactory implements IRenderFactory<EntitySoulSnare>
|
||||
{
|
||||
@Override
|
||||
public Render<? super EntitySoulSnare> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new RenderEntitySoulSnare(manager, ModItems.soulSnare, Minecraft.getMinecraft().getRenderItem());
|
||||
return new RenderEntitySoulSnare(manager);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue