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

23 lines
1,011 B
Java
Raw Normal View History

2020-04-22 16:28:20 +02:00
package com.minelittlepony.unicopia.particles;
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-04-27 18:09:19 +02:00
ParticleType<MagicParticleEffect> UNICORN_MAGIC = register("unicorn_magic", FabricParticleTypes.complex(MagicParticleEffect.UNICORN_FACTORY));
DefaultParticleType CHANGELING_MAGIC = register("changeling_magic", FabricParticleTypes.simple());
2020-04-22 16:28:20 +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-04-27 18:09:19 +02:00
DefaultParticleType SPHERE = register("sphere", FabricParticleTypes.simple(true));
DefaultParticleType DISK = register("disk", FabricParticleTypes.simple());
2020-04-22 16:28:20 +02:00
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);
}
}