Spackenmobs/src/main/java/mod/acgaming/spackenmobs/render/RenderSmavaCreeper.java

40 lines
1.3 KiB
Java
Raw Normal View History

2020-08-09 17:46:58 +02:00
package mod.acgaming.spackenmobs.render;
2020-08-23 10:30:02 +02:00
2020-08-09 17:46:58 +02:00
import mod.acgaming.spackenmobs.entities.EntitySmavaCreeper;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderCreeper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.layers.LayerCreeperCharge;
import net.minecraft.entity.monster.EntityCreeper;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.client.registry.IRenderFactory;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
2020-08-09 17:46:58 +02:00
@SideOnly(Side.CLIENT)
public class RenderSmavaCreeper extends RenderCreeper
{
private static final ResourceLocation SMAVA_TEXTURE = new ResourceLocation("spackenmobs:textures/entities/smava_creeper.png");
public static final Factory FACTORY = new Factory();
2020-08-09 17:46:58 +02:00
public RenderSmavaCreeper(RenderManager renderManagerIn)
{
super(renderManagerIn);
this.addLayer(new LayerCreeperCharge(this));
}
2020-08-23 10:30:02 +02:00
@Override
protected ResourceLocation getEntityTexture(EntityCreeper entity)
{
return SMAVA_TEXTURE;
}
public static class Factory implements IRenderFactory<EntitySmavaCreeper>
{
@Override
public Render<? super EntitySmavaCreeper> createRenderFor(RenderManager manager)
{
return new RenderSmavaCreeper(manager);
}
2020-08-23 10:30:02 +02:00
}
2020-08-09 17:46:58 +02:00
}