mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-01 16:27:59 +01:00
Ponified the Drowned
This commit is contained in:
parent
4eb1dd019c
commit
fcc682af2b
3 changed files with 16 additions and 2 deletions
|
@ -29,6 +29,7 @@ public enum MobRenderers implements Setting<Boolean> {
|
||||||
pony.switchRenderer(state, ZombieEntity.class, RenderPonyZombie::new);
|
pony.switchRenderer(state, ZombieEntity.class, RenderPonyZombie::new);
|
||||||
pony.switchRenderer(state, HuskEntity.class, RenderPonyZombie.Husk::new);
|
pony.switchRenderer(state, HuskEntity.class, RenderPonyZombie.Husk::new);
|
||||||
pony.switchRenderer(state, GiantEntity.class, RenderPonyZombie.Giant::new);
|
pony.switchRenderer(state, GiantEntity.class, RenderPonyZombie.Giant::new);
|
||||||
|
pony.switchRenderer(state, DrownedEntity.class, RenderPonyZombie.Drowned::new);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
PIGZOMBIES {
|
PIGZOMBIES {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import com.minelittlepony.client.model.entities.ModelZombiePony;
|
||||||
import com.mojang.blaze3d.platform.GlStateManager;
|
import com.mojang.blaze3d.platform.GlStateManager;
|
||||||
|
|
||||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||||
|
import net.minecraft.entity.mob.DrownedEntity;
|
||||||
import net.minecraft.entity.mob.GiantEntity;
|
import net.minecraft.entity.mob.GiantEntity;
|
||||||
import net.minecraft.entity.mob.HuskEntity;
|
import net.minecraft.entity.mob.HuskEntity;
|
||||||
import net.minecraft.entity.mob.ZombieEntity;
|
import net.minecraft.entity.mob.ZombieEntity;
|
||||||
|
@ -15,6 +16,7 @@ public class RenderPonyZombie<Zombie extends ZombieEntity> extends RenderPonyMob
|
||||||
public static final Identifier ZOMBIE = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pony.png");
|
public static final Identifier ZOMBIE = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pony.png");
|
||||||
public static final Identifier HUSK = new Identifier("minelittlepony", "textures/entity/zombie/husk_pony.png");
|
public static final Identifier HUSK = new Identifier("minelittlepony", "textures/entity/zombie/husk_pony.png");
|
||||||
public static final Identifier PIGMAN = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pigman_pony.png");
|
public static final Identifier PIGMAN = new Identifier("minelittlepony", "textures/entity/zombie/zombie_pigman_pony.png");
|
||||||
|
public static final Identifier DROWNED = new Identifier("minelittlepony", "textures/entity/zombie/drowned_pony.png");
|
||||||
|
|
||||||
public RenderPonyZombie(EntityRenderDispatcher manager) {
|
public RenderPonyZombie(EntityRenderDispatcher manager) {
|
||||||
super(manager, new ModelZombiePony<>());
|
super(manager, new ModelZombiePony<>());
|
||||||
|
@ -25,6 +27,19 @@ public class RenderPonyZombie<Zombie extends ZombieEntity> extends RenderPonyMob
|
||||||
return ZOMBIE;
|
return ZOMBIE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static class Drowned extends RenderPonyZombie<DrownedEntity> {
|
||||||
|
|
||||||
|
public Drowned(EntityRenderDispatcher manager) {
|
||||||
|
super(manager);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Identifier findTexture(DrownedEntity entity) {
|
||||||
|
return DROWNED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class Pigman extends RenderPonyZombie<ZombiePigmanEntity> {
|
public static class Pigman extends RenderPonyZombie<ZombiePigmanEntity> {
|
||||||
|
|
||||||
public Pigman(EntityRenderDispatcher manager) {
|
public Pigman(EntityRenderDispatcher manager) {
|
||||||
|
@ -73,6 +88,4 @@ public class RenderPonyZombie<Zombie extends ZombieEntity> extends RenderPonyMob
|
||||||
return ZOMBIE;
|
return ZOMBIE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: MC1.13 EntityDrowned
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
Loading…
Reference in a new issue