Unicopia/src/main/java/com/minelittlepony/unicopia/particle/UParticles.java

28 lines
1.5 KiB
Java
Raw Normal View History

package com.minelittlepony.unicopia.particle;
2020-04-22 16:28:20 +02:00
import net.fabricmc.fabric.api.particle.v1.FabricParticleTypes;
import net.minecraft.particle.DefaultParticleType;
import net.minecraft.particle.ParticleType;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public interface UParticles {
2020-10-14 21:07:36 +02:00
ParticleType<MagicParticleEffect> UNICORN_MAGIC = register("unicorn_magic", FabricParticleTypes.complex(MagicParticleEffect.FACTORY));
2020-04-27 18:09:19 +02:00
DefaultParticleType CHANGELING_MAGIC = register("changeling_magic", FabricParticleTypes.simple());
2020-04-22 16:28:20 +02:00
2020-10-14 21:07:36 +02:00
ParticleType<OrientedBillboardParticleEffect> RAINBOOM_RING = register("rainboom_ring", FabricParticleTypes.complex(OrientedBillboardParticleEffect.FACTORY));
DefaultParticleType RAINBOOM_TRAIL = register("rainboom_trail", FabricParticleTypes.simple());
2020-10-13 17:44:49 +02:00
2020-04-27 18:09:19 +02:00
DefaultParticleType RAIN_DROPS = register("rain_drops", FabricParticleTypes.simple());
2020-04-22 16:28:20 +02:00
2020-05-03 19:20:51 +02:00
ParticleType<SphereParticleEffect> SPHERE = register("sphere", FabricParticleTypes.complex(true, SphereParticleEffect.FACTORY));
ParticleType<DiskParticleEffect> DISK = register("disk", FabricParticleTypes.complex(true, DiskParticleEffect.FACTORY));
2020-04-22 16:28:20 +02:00
ParticleType<FollowingParticleEffect> HEALTH_DRAIN = register("health_drain", FabricParticleTypes.complex(true, FollowingParticleEffect.FACTORY));
2020-04-27 18:09:19 +02:00
static <T extends ParticleType<?>> T register(String name, T type) {
2020-04-22 16:28:20 +02:00
return Registry.register(Registry.PARTICLE_TYPE, new Identifier("unicopia", name), type);
}
}