Search in sources :

Example 1 with GeneratorQP

use of org.blockartistry.DynSurround.client.footsteps.system.GeneratorQP in project DynamicSurroundings by OreCruncher.

the class FootstepsRegistry method createGenerator.

public Generator createGenerator(@Nonnull final EntityLivingBase entity) {
    final EntityEffectInfo info = ClientRegistry.EFFECTS.getEffects(entity);
    Variator var = getVariator(info.variator);
    if (entity.isChild()) {
        var = this.childVariator;
    } else if (entity instanceof EntityPlayer) {
        var = ModOptions.sound.foostepsQuadruped ? this.playerQuadrupedVariator : this.playerVariator;
    }
    return var.QUADRUPED ? new GeneratorQP(var) : new Generator(var);
}
Also used : EntityPlayer(net.minecraft.entity.player.EntityPlayer) GeneratorQP(org.blockartistry.DynSurround.client.footsteps.system.GeneratorQP) Generator(org.blockartistry.DynSurround.client.footsteps.system.Generator)

Aggregations

EntityPlayer (net.minecraft.entity.player.EntityPlayer)1 Generator (org.blockartistry.DynSurround.client.footsteps.system.Generator)1 GeneratorQP (org.blockartistry.DynSurround.client.footsteps.system.GeneratorQP)1