Removed individual factory renderers for each entity
This commit is contained in:
parent
1872336c72
commit
2d4c695a32
31 changed files with 91 additions and 623 deletions
|
@ -2,6 +2,8 @@ package com.legacy.aether.client.renders;
|
|||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.model.ModelPlayer;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.Item;
|
||||
|
@ -10,36 +12,37 @@ import net.minecraftforge.fml.client.registry.ClientRegistry;
|
|||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
import net.minecraftforge.fml.client.registry.RenderingRegistry;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.factory.AechorPlantFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.AerbunnyFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.AerwhaleFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.CockatriceFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.DartFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.FireBallFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.FireMinionFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.FloatingBlockFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.FlyingCowFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.HammerProjectileFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.IceyBallFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.LightningKnifeFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.MimicFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.MiniCloudFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.MoaFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ParachuteFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.PhoenixArrowFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.PhygFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.SentryFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.SheepuffFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.SliderFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.SunSpiritFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.SwetFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.TNTPresentFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ThunderBallFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ValkyrieFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ValkyrieQueenFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ZephyrFactory;
|
||||
import com.legacy.aether.client.renders.entities.factory.ZephyrSnowballFactory;
|
||||
import com.legacy.aether.client.renders.entities.AechorPlantRenderer;
|
||||
import com.legacy.aether.client.renders.entities.AerbunnyRenderer;
|
||||
import com.legacy.aether.client.renders.entities.AerwhaleRenderer;
|
||||
import com.legacy.aether.client.renders.entities.CockatriceRenderer;
|
||||
import com.legacy.aether.client.renders.entities.FireMinionRenderer;
|
||||
import com.legacy.aether.client.renders.entities.FloatingBlockRenderer;
|
||||
import com.legacy.aether.client.renders.entities.FlyingCowRenderer;
|
||||
import com.legacy.aether.client.renders.entities.MimicRenderer;
|
||||
import com.legacy.aether.client.renders.entities.MiniCloudRenderer;
|
||||
import com.legacy.aether.client.renders.entities.MoaRenderer;
|
||||
import com.legacy.aether.client.renders.entities.ParachuteRenderer;
|
||||
import com.legacy.aether.client.renders.entities.PhygRenderer;
|
||||
import com.legacy.aether.client.renders.entities.SentryRenderer;
|
||||
import com.legacy.aether.client.renders.entities.SheepuffRenderer;
|
||||
import com.legacy.aether.client.renders.entities.SliderRenderer;
|
||||
import com.legacy.aether.client.renders.entities.SunSpiritRenderer;
|
||||
import com.legacy.aether.client.renders.entities.SwetRenderer;
|
||||
import com.legacy.aether.client.renders.entities.TNTPresentRenderer;
|
||||
import com.legacy.aether.client.renders.entities.ValkyrieQueenRenderer;
|
||||
import com.legacy.aether.client.renders.entities.ValkyrieRenderer;
|
||||
import com.legacy.aether.client.renders.entities.WhirlwindRenderer;
|
||||
import com.legacy.aether.client.renders.entities.ZephyrRenderer;
|
||||
import com.legacy.aether.client.renders.entities.layer.AccessoriesLayer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.DartBaseRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.FireBallRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.HammerProjectileRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.IceyBallRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.LightningKnifeRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.PhoenixArrowRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.ThunderBallRenderer;
|
||||
import com.legacy.aether.client.renders.entities.projectile.ZephyrSnowballRenderer;
|
||||
import com.legacy.aether.common.blocks.BlocksAether;
|
||||
import com.legacy.aether.common.entities.block.EntityFloatingBlock;
|
||||
import com.legacy.aether.common.entities.block.EntityTNTPresent;
|
||||
|
@ -52,6 +55,7 @@ import com.legacy.aether.common.entities.hostile.EntityAechorPlant;
|
|||
import com.legacy.aether.common.entities.hostile.EntityCockatrice;
|
||||
import com.legacy.aether.common.entities.hostile.EntityMimic;
|
||||
import com.legacy.aether.common.entities.hostile.EntitySentry;
|
||||
import com.legacy.aether.common.entities.hostile.EntityWhirlwind;
|
||||
import com.legacy.aether.common.entities.hostile.EntityZephyr;
|
||||
import com.legacy.aether.common.entities.passive.EntityAerwhale;
|
||||
import com.legacy.aether.common.entities.passive.EntityMiniCloud;
|
||||
|
@ -65,14 +69,11 @@ import com.legacy.aether.common.entities.passive.mountable.EntitySwet;
|
|||
import com.legacy.aether.common.entities.projectile.EntityHammerProjectile;
|
||||
import com.legacy.aether.common.entities.projectile.EntityLightningKnife;
|
||||
import com.legacy.aether.common.entities.projectile.EntityPhoenixArrow;
|
||||
import com.legacy.aether.common.entities.projectile.EntityPoisonNeedle;
|
||||
import com.legacy.aether.common.entities.projectile.EntityZephyrSnowball;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityFireBall;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityIceyBall;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityThunderBall;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartEnchanted;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartGolden;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartPoison;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartBase;
|
||||
import com.legacy.aether.common.tile_entities.TileEntityChestMimic;
|
||||
import com.legacy.aether.common.tile_entities.TileEntityTreasureChest;
|
||||
|
||||
|
@ -82,48 +83,46 @@ public class AetherEntityRenderingRegistry
|
|||
public static void initialize()
|
||||
{
|
||||
/* Misc */
|
||||
register(EntityHammerProjectile.class, new HammerProjectileFactory());
|
||||
register(EntityFloatingBlock.class, new FloatingBlockFactory());
|
||||
register(EntityParachute.class, new ParachuteFactory());
|
||||
register(EntityZephyrSnowball.class, new ZephyrSnowballFactory());
|
||||
register(EntityPhoenixArrow.class, new PhoenixArrowFactory());
|
||||
register(EntityLightningKnife.class, new LightningKnifeFactory());
|
||||
register(EntityHammerProjectile.class, HammerProjectileRenderer.class);
|
||||
register(EntityFloatingBlock.class, FloatingBlockRenderer.class);
|
||||
register(EntityParachute.class, ParachuteRenderer.class);
|
||||
register(EntityZephyrSnowball.class, ZephyrSnowballRenderer.class);
|
||||
register(EntityPhoenixArrow.class, PhoenixArrowRenderer.class);
|
||||
register(EntityLightningKnife.class, LightningKnifeRenderer.class);
|
||||
|
||||
/* Darts */
|
||||
register(EntityDartEnchanted.class, new DartFactory<EntityDartEnchanted>());
|
||||
register(EntityPoisonNeedle.class, new DartFactory<EntityPoisonNeedle>());
|
||||
register(EntityDartGolden.class, new DartFactory<EntityDartGolden>());
|
||||
register(EntityDartPoison.class, new DartFactory<EntityDartPoison>());
|
||||
register(EntityDartBase.class, DartBaseRenderer.class);
|
||||
|
||||
/* Crystals */
|
||||
register(EntityFireBall.class, new FireBallFactory());
|
||||
register(EntityIceyBall.class, new IceyBallFactory());
|
||||
register(EntityThunderBall.class, new ThunderBallFactory());
|
||||
register(EntityFireBall.class, FireBallRenderer.class);
|
||||
register(EntityIceyBall.class, IceyBallRenderer.class);
|
||||
register(EntityThunderBall.class, ThunderBallRenderer.class);
|
||||
|
||||
/* Bosses */
|
||||
register(EntitySlider.class, new SliderFactory());
|
||||
register(EntityValkyrieQueen.class, new ValkyrieQueenFactory());
|
||||
register(EntitySunSpirit.class, new SunSpiritFactory());
|
||||
register(EntitySlider.class, SliderRenderer.class);
|
||||
register(EntityValkyrieQueen.class, ValkyrieQueenRenderer.class);
|
||||
register(EntitySunSpirit.class, SunSpiritRenderer.class);
|
||||
|
||||
/* Hostile */
|
||||
register(EntityMimic.class, new MimicFactory());
|
||||
register(EntitySentry.class, new SentryFactory());
|
||||
register(EntityAechorPlant.class, new AechorPlantFactory());
|
||||
register(EntityFireMinion.class, new FireMinionFactory());
|
||||
register(EntityZephyr.class, new ZephyrFactory());
|
||||
register(EntityValkyrie.class, new ValkyrieFactory());
|
||||
register(EntityCockatrice.class, new CockatriceFactory());
|
||||
register(EntityMimic.class, MimicRenderer.class);
|
||||
register(EntitySentry.class, SentryRenderer.class);
|
||||
register(EntityAechorPlant.class, AechorPlantRenderer.class);
|
||||
register(EntityFireMinion.class, FireMinionRenderer.class);
|
||||
register(EntityZephyr.class, ZephyrRenderer.class);
|
||||
register(EntityValkyrie.class, ValkyrieRenderer.class);
|
||||
register(EntityCockatrice.class, CockatriceRenderer.class);
|
||||
|
||||
/* Passive */
|
||||
register(EntityMoa.class, new MoaFactory());
|
||||
register(EntityPhyg.class, new PhygFactory());
|
||||
register(EntityFlyingCow.class, new FlyingCowFactory());
|
||||
register(EntitySheepuff.class, new SheepuffFactory());
|
||||
register(EntityAerwhale.class, new AerwhaleFactory());
|
||||
register(EntityAerbunny.class, new AerbunnyFactory());
|
||||
register(EntitySwet.class, new SwetFactory());
|
||||
register(EntityMiniCloud.class, new MiniCloudFactory());
|
||||
register(EntityTNTPresent.class, new TNTPresentFactory());
|
||||
register(EntityMoa.class, MoaRenderer.class);
|
||||
register(EntityPhyg.class, PhygRenderer.class);
|
||||
register(EntityFlyingCow.class, FlyingCowRenderer.class);
|
||||
register(EntitySheepuff.class, SheepuffRenderer.class);
|
||||
register(EntityAerwhale.class, AerwhaleRenderer.class);
|
||||
register(EntityAerbunny.class, AerbunnyRenderer.class);
|
||||
register(EntitySwet.class, SwetRenderer.class);
|
||||
register(EntityMiniCloud.class, MiniCloudRenderer.class);
|
||||
register(EntityTNTPresent.class, TNTPresentRenderer.class);
|
||||
register(EntityWhirlwind.class, WhirlwindRenderer.class);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
|
@ -145,9 +144,25 @@ public class AetherEntityRenderingRegistry
|
|||
default_render.addLayer(new AccessoriesLayer(false, (ModelPlayer) default_render.getMainModel()));
|
||||
}
|
||||
|
||||
public static <ENTITY extends Entity> void register(Class<ENTITY> classes, IRenderFactory<? super ENTITY> factory)
|
||||
public static <ENTITY extends Entity> void register(Class<ENTITY> classes, final Class<? extends Render<ENTITY>> render)
|
||||
{
|
||||
RenderingRegistry.registerEntityRenderingHandler(classes, factory);
|
||||
RenderingRegistry.registerEntityRenderingHandler(classes, new IRenderFactory<ENTITY>() {
|
||||
|
||||
@Override
|
||||
public Render<ENTITY> createRenderFor(RenderManager manager)
|
||||
{
|
||||
try
|
||||
{
|
||||
return render.getConstructor(RenderManager.class).newInstance(manager);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.AechorPlantRenderer;
|
||||
import com.legacy.aether.common.entities.hostile.EntityAechorPlant;
|
||||
|
||||
public class AechorPlantFactory implements IRenderFactory<EntityAechorPlant>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityAechorPlant> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new AechorPlantRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.AerbunnyRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityAerbunny;
|
||||
|
||||
public class AerbunnyFactory implements IRenderFactory<EntityAerbunny>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityAerbunny> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new AerbunnyRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.AerwhaleRenderer;
|
||||
import com.legacy.aether.common.entities.passive.EntityAerwhale;
|
||||
|
||||
public class AerwhaleFactory implements IRenderFactory<EntityAerwhale>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityAerwhale> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new AerwhaleRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.CockatriceRenderer;
|
||||
import com.legacy.aether.common.entities.hostile.EntityCockatrice;
|
||||
|
||||
public class CockatriceFactory implements IRenderFactory<EntityCockatrice>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<? super EntityCockatrice> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new CockatriceRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.DartBaseRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartBase;
|
||||
|
||||
public class DartFactory<ENTITY extends EntityDartBase> implements IRenderFactory<ENTITY>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<ENTITY> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new DartBaseRenderer<ENTITY>(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.FireBallRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityFireBall;
|
||||
|
||||
public class FireBallFactory implements IRenderFactory<EntityFireBall>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityFireBall> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new FireBallRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.FireMinionRenderer;
|
||||
import com.legacy.aether.common.entities.bosses.EntityFireMinion;
|
||||
|
||||
public class FireMinionFactory implements IRenderFactory<EntityFireMinion>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityFireMinion> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new FireMinionRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.FloatingBlockRenderer;
|
||||
import com.legacy.aether.common.entities.block.EntityFloatingBlock;
|
||||
|
||||
public class FloatingBlockFactory implements IRenderFactory<EntityFloatingBlock>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityFloatingBlock> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new FloatingBlockRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.FlyingCowRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityFlyingCow;
|
||||
|
||||
public class FlyingCowFactory implements IRenderFactory<EntityFlyingCow>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityFlyingCow> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new FlyingCowRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.HammerProjectileRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.EntityHammerProjectile;
|
||||
|
||||
public class HammerProjectileFactory implements IRenderFactory<EntityHammerProjectile>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityHammerProjectile> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new HammerProjectileRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.IceyBallRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityIceyBall;
|
||||
|
||||
public class IceyBallFactory implements IRenderFactory<EntityIceyBall>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityIceyBall> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new IceyBallRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.LightningKnifeRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.EntityLightningKnife;
|
||||
|
||||
public class LightningKnifeFactory implements IRenderFactory<EntityLightningKnife>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityLightningKnife> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new LightningKnifeRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.MimicRenderer;
|
||||
import com.legacy.aether.common.entities.hostile.EntityMimic;
|
||||
|
||||
public class MimicFactory implements IRenderFactory<EntityMimic>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityMimic> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new MimicRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.MiniCloudRenderer;
|
||||
import com.legacy.aether.common.entities.passive.EntityMiniCloud;
|
||||
|
||||
public class MiniCloudFactory implements IRenderFactory<EntityMiniCloud>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityMiniCloud> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new MiniCloudRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.MoaRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityMoa;
|
||||
|
||||
public class MoaFactory implements IRenderFactory<EntityMoa>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityMoa> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new MoaRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.ParachuteRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityParachute;
|
||||
|
||||
public class ParachuteFactory implements IRenderFactory<EntityParachute>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityParachute> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ParachuteRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.PhoenixArrowRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.EntityPhoenixArrow;
|
||||
|
||||
public class PhoenixArrowFactory implements IRenderFactory<EntityPhoenixArrow>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityPhoenixArrow> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new PhoenixArrowRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.PhygRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntityPhyg;
|
||||
|
||||
public class PhygFactory implements IRenderFactory<EntityPhyg>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityPhyg> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new PhygRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.SentryRenderer;
|
||||
import com.legacy.aether.common.entities.hostile.EntitySentry;
|
||||
|
||||
public class SentryFactory implements IRenderFactory<EntitySentry>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntitySentry> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new SentryRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.SheepuffRenderer;
|
||||
import com.legacy.aether.common.entities.passive.EntitySheepuff;
|
||||
|
||||
public class SheepuffFactory implements IRenderFactory<EntitySheepuff>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntitySheepuff> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new SheepuffRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.SliderRenderer;
|
||||
import com.legacy.aether.common.entities.bosses.slider.EntitySlider;
|
||||
|
||||
public class SliderFactory implements IRenderFactory<EntitySlider>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntitySlider> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new SliderRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.SunSpiritRenderer;
|
||||
import com.legacy.aether.common.entities.bosses.sun_spirit.EntitySunSpirit;
|
||||
|
||||
public class SunSpiritFactory implements IRenderFactory<EntitySunSpirit>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntitySunSpirit> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new SunSpiritRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.SwetRenderer;
|
||||
import com.legacy.aether.common.entities.passive.mountable.EntitySwet;
|
||||
|
||||
public class SwetFactory implements IRenderFactory<EntitySwet>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntitySwet> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new SwetRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.TNTPresentRenderer;
|
||||
import com.legacy.aether.common.entities.block.EntityTNTPresent;
|
||||
|
||||
public class TNTPresentFactory implements IRenderFactory<EntityTNTPresent>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityTNTPresent> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new TNTPresentRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.ThunderBallRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.crystals.EntityThunderBall;
|
||||
|
||||
public class ThunderBallFactory implements IRenderFactory<EntityThunderBall>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityThunderBall> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ThunderBallRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.ValkyrieRenderer;
|
||||
import com.legacy.aether.common.entities.bosses.EntityValkyrie;
|
||||
|
||||
public class ValkyrieFactory implements IRenderFactory<EntityValkyrie>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityValkyrie> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ValkyrieRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.ValkyrieQueenRenderer;
|
||||
import com.legacy.aether.common.entities.bosses.valkyrie_queen.EntityValkyrieQueen;
|
||||
|
||||
public class ValkyrieQueenFactory implements IRenderFactory<EntityValkyrieQueen>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityValkyrieQueen> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ValkyrieQueenRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.ZephyrRenderer;
|
||||
import com.legacy.aether.common.entities.hostile.EntityZephyr;
|
||||
|
||||
public class ZephyrFactory implements IRenderFactory<EntityZephyr>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityZephyr> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ZephyrRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package com.legacy.aether.client.renders.entities.factory;
|
||||
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraftforge.fml.client.registry.IRenderFactory;
|
||||
|
||||
import com.legacy.aether.client.renders.entities.projectile.ZephyrSnowballRenderer;
|
||||
import com.legacy.aether.common.entities.projectile.EntityZephyrSnowball;
|
||||
|
||||
public class ZephyrSnowballFactory implements IRenderFactory<EntityZephyrSnowball>
|
||||
{
|
||||
|
||||
@Override
|
||||
public Render<EntityZephyrSnowball> createRenderFor(RenderManager manager)
|
||||
{
|
||||
return new ZephyrSnowballRenderer(manager);
|
||||
}
|
||||
|
||||
}
|
|
@ -16,16 +16,17 @@ import com.legacy.aether.common.entities.projectile.darts.EntityDartBase;
|
|||
import com.legacy.aether.common.entities.projectile.darts.EntityDartEnchanted;
|
||||
import com.legacy.aether.common.entities.projectile.darts.EntityDartGolden;
|
||||
|
||||
public class DartBaseRenderer<DART extends EntityDartBase> extends Render<DART>
|
||||
public class DartBaseRenderer extends Render<EntityDartBase>
|
||||
{
|
||||
|
||||
public DartBaseRenderer(RenderManager renderManager)
|
||||
public DartBaseRenderer(RenderManager renderManager)
|
||||
{
|
||||
super(renderManager);
|
||||
|
||||
this.shadowSize = 0.0F;
|
||||
}
|
||||
|
||||
public void renderDart(DART dart, double d, double d1, double d2, float f, float f1)
|
||||
public void renderDart(EntityDartBase dart, double d, double d1, double d2, float f, float f1)
|
||||
{
|
||||
if (dart.isInvisible())
|
||||
{
|
||||
|
@ -92,13 +93,16 @@ public class DartBaseRenderer<DART extends EntityDartBase> extends Render<DART>
|
|||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
public void doRender(DART entity, double d, double d1, double d2, float f, float f1)
|
||||
@Override
|
||||
public void doRender(EntityDartBase entity, double d, double d1, double d2, float f, float f1)
|
||||
{
|
||||
this.renderDart(entity, d, d1, d2, f, f1);
|
||||
|
||||
super.doRender(entity, d, d1, d2, f, f1);
|
||||
}
|
||||
|
||||
protected ResourceLocation getEntityTexture(DART entity)
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(EntityDartBase entity)
|
||||
{
|
||||
String base = entity instanceof EntityDartGolden ? "golden" : entity instanceof EntityDartEnchanted ? "enchanted" : "poison";
|
||||
return new ResourceLocation("aether_legacy", "textures/entities/projectile/dart/" + base + (entity instanceof EntityPoisonNeedle ? "_needle" : "_dart") + ".png");
|
||||
|
|
Loading…
Reference in a new issue