Portal block

This commit is contained in:
Aleksey 2020-10-20 14:34:07 +03:00
parent 439e96a526
commit 59a0d0df6c
18 changed files with 765 additions and 1 deletions

View file

@ -6,12 +6,15 @@ import net.minecraft.particle.DefaultParticleType;
import net.minecraft.util.registry.Registry;
import ru.betterend.BetterEnd;
import ru.betterend.particle.ParticleGlowingSphere;
import ru.betterend.particle.PaticlePortalSphere;
public class ParticleRegistry {
public static final DefaultParticleType GLOWING_SPHERE = register("glowing_sphere");
public static final DefaultParticleType PORTAL_SPHERE = register("portal_sphere");
public static void register() {
ParticleFactoryRegistry.getInstance().register(GLOWING_SPHERE, ParticleGlowingSphere.FactoryGlowingSphere::new);
ParticleFactoryRegistry.getInstance().register(PORTAL_SPHERE, PaticlePortalSphere.FactoryPortalSphere::new);
}
private static DefaultParticleType register(String name) {