use of org.blockartistry.DynSurround.client.footsteps.system.Generator 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);
}
Aggregations