Skip to content
Permalink
Browse files

Deacon renderers no longer extend RenderXenomorph

  • Loading branch information...
Ri5ux committed Mar 13, 2019
1 parent 2ab56b7 commit 904a6438de985e7ac918992179d458c99a402665
@@ -4,12 +4,39 @@
import org.avp.client.model.entities.living.ModelDeacon;
import org.avp.entities.living.EntityDeacon;

import com.asx.mdx.lib.client.util.OpenGL;
import com.asx.mdx.lib.client.util.entity.RenderLivingWrapper;

import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class RenderDeacon extends RenderXenomorph<EntityDeacon, ModelDeacon>
public class RenderDeacon extends RenderLivingWrapper<EntityDeacon, ModelDeacon>
{
private float scale;

public RenderDeacon(RenderManager m)
{
super(m, AliensVsPredator.resources().models().DEACON, 0.75F);
super(m, AliensVsPredator.resources().models().DEACON);
this.scale = 1.0F;
}

@Override
protected void preRenderCallback(EntityDeacon xeno, float renderPartialTicks)
{
this.scale = 0.65F;
OpenGL.scale(this.scale, this.scale, this.scale);
super.preRenderCallback(xeno, renderPartialTicks);
}

@Override
public ResourceLocation getEntityTexture(EntityDeacon entity)
{
return this.getModel().getTexture();
}

public RenderDeacon setScale(float renderScale)
{
this.scale = renderScale;
return this;
}
}
@@ -4,12 +4,37 @@
import org.avp.client.model.entities.living.ModelDeaconAdult;
import org.avp.entities.living.EntityDeaconAdult;

import com.asx.mdx.lib.client.util.OpenGL;
import com.asx.mdx.lib.client.util.entity.RenderLivingWrapper;

import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class RenderDeaconAdult extends RenderXenomorph<EntityDeaconAdult, ModelDeaconAdult>
public class RenderDeaconAdult extends RenderLivingWrapper<EntityDeaconAdult, ModelDeaconAdult>
{
private float scale = 1.0F;

public RenderDeaconAdult(RenderManager m)
{
super(m, AliensVsPredator.resources().models().DEACON_ADULT, 1F);
super(m, AliensVsPredator.resources().models().DEACON_ADULT);
}

@Override
protected void preRenderCallback(EntityDeaconAdult deacon, float renderPartialTicks)
{
OpenGL.scale(this.scale, this.scale, this.scale);
super.preRenderCallback(deacon, renderPartialTicks);
}

@Override
public ResourceLocation getEntityTexture(EntityDeaconAdult entity)
{
return this.getModel().getTexture();
}

public RenderDeaconAdult setScale(float renderScale)
{
this.scale = renderScale;
return this;
}
}

0 comments on commit 904a643

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.