Search in sources :

Example 1 with FXOrbitalPelotrio

use of hellfirepvp.astralsorcery.client.effect.source.orbital.FXOrbitalPelotrio in project AstralSorcery by HellFirePvP.

the class CEffectPelotrio method playClientEffect.

@Override
@OnlyIn(Dist.CLIENT)
public void playClientEffect(World world, BlockPos pos, TileRitualPedestal pedestal, float alphaMultiplier, boolean extended) {
    ConstellationEffectProperties prop = this.createProperties(pedestal.getMirrorCount());
    if (rand.nextFloat() < 0.2F) {
        Vector3 at = Vector3.random().normalize().multiply(rand.nextFloat() * prop.getSize()).add(pos).add(0.5, 0.5, 0.5);
        EffectHelper.spawnSource(new FXOrbitalPelotrio(at).setOrbitAxis(Vector3.random()).setOrbitRadius(0.8 + rand.nextFloat() * 0.7).setTicksPerRotation(20 + rand.nextInt(20)));
    }
}
Also used : ConstellationEffectProperties(hellfirepvp.astralsorcery.common.constellation.effect.ConstellationEffectProperties) FXOrbitalPelotrio(hellfirepvp.astralsorcery.client.effect.source.orbital.FXOrbitalPelotrio) Vector3(hellfirepvp.astralsorcery.common.util.data.Vector3) OnlyIn(net.minecraftforge.api.distmarker.OnlyIn)

Aggregations

FXOrbitalPelotrio (hellfirepvp.astralsorcery.client.effect.source.orbital.FXOrbitalPelotrio)1 ConstellationEffectProperties (hellfirepvp.astralsorcery.common.constellation.effect.ConstellationEffectProperties)1 Vector3 (hellfirepvp.astralsorcery.common.util.data.Vector3)1 OnlyIn (net.minecraftforge.api.distmarker.OnlyIn)1