Better Particles
This commit is contained in:
parent
0f82dbc35f
commit
d1a423252d
15 changed files with 168 additions and 79 deletions
|
@ -5,13 +5,13 @@ import net.fabricmc.fabric.api.particle.v1.FabricParticleTypes;
|
|||
import net.minecraft.particle.DefaultParticleType;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.particle.AnimatedTestParticle;
|
||||
import ru.betterend.particle.ParticleGlowingSphere;
|
||||
|
||||
public class ParticleRegistry {
|
||||
public static final DefaultParticleType TEST = register("test");
|
||||
public static final DefaultParticleType GLOWING_SPHERE = register("glowing_sphere");
|
||||
|
||||
public static void register() {
|
||||
ParticleFactoryRegistry.getInstance().register(TEST, AnimatedTestParticle.Factory::new);
|
||||
ParticleFactoryRegistry.getInstance().register(GLOWING_SPHERE, ParticleGlowingSphere.FactoryGlowingSphere::new);
|
||||
}
|
||||
|
||||
private static DefaultParticleType register(String name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue