Search in sources :

Example 6 with EnumHorseType

use of de.sanandrew.mods.claysoldiers.util.mount.EnumHorseType in project ClaySoldiersMod by SanAndreasP.

the class ParticleHelper method spawnHorseDeathFx.

public static void spawnHorseDeathFx(Quartet<Double, Double, Double, Byte> data, Minecraft mc) {
    EnumHorseType type = EnumHorseType.VALUES[data.getValue3()];
    for (int i = 0; i < 5; i++) {
        ParticleHorseDeath fx = new ParticleHorseDeath(mc.theWorld, data.getValue0(), data.getValue1(), data.getValue2(), type);
        mc.effectRenderer.addEffect(fx);
    }
}
Also used : EnumHorseType(de.sanandrew.mods.claysoldiers.util.mount.EnumHorseType)

Aggregations

EnumHorseType (de.sanandrew.mods.claysoldiers.util.mount.EnumHorseType)6 ItemStack (net.minecraft.item.ItemStack)3 SideOnly (cpw.mods.fml.relauncher.SideOnly)1 Quartet (de.sanandrew.core.manpack.util.javatuples.Quartet)1 EntityHorseMount (de.sanandrew.mods.claysoldiers.entity.mount.EntityHorseMount)1 ArrayList (java.util.ArrayList)1 IIcon (net.minecraft.util.IIcon)1