Reorganized Imports/Packages
This commit is contained in:
parent
a8beba9196
commit
770a5b4046
854 changed files with 42775 additions and 41811 deletions
|
@ -0,0 +1,57 @@
|
|||
package org.betterx.betterend.registry;
|
||||
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.particles.ParticleOptions;
|
||||
import net.minecraft.core.particles.ParticleType;
|
||||
import net.minecraft.core.particles.SimpleParticleType;
|
||||
|
||||
import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
|
||||
import net.fabricmc.fabric.api.particle.v1.FabricParticleTypes;
|
||||
|
||||
import org.betterx.betterend.BetterEnd;
|
||||
import org.betterx.betterend.particle.*;
|
||||
|
||||
public class EndParticles {
|
||||
public static final SimpleParticleType GLOWING_SPHERE = register("glowing_sphere");
|
||||
public static final SimpleParticleType PORTAL_SPHERE = register("portal_sphere");
|
||||
public static final ParticleType<InfusionParticleType> INFUSION = register(
|
||||
"infusion",
|
||||
FabricParticleTypes.complex(InfusionParticleType.PARAMETERS_FACTORY)
|
||||
);
|
||||
public static final SimpleParticleType SULPHUR_PARTICLE = register("sulphur_particle");
|
||||
public static final SimpleParticleType GEYSER_PARTICLE = registerFar("geyser_particle");
|
||||
public static final SimpleParticleType SNOWFLAKE = register("snowflake");
|
||||
public static final SimpleParticleType AMBER_SPHERE = register("amber_sphere");
|
||||
public static final SimpleParticleType BLACK_SPORE = register("black_spore");
|
||||
public static final SimpleParticleType TENANEA_PETAL = register("tenanea_petal");
|
||||
public static final SimpleParticleType JUNGLE_SPORE = register("jungle_spore");
|
||||
public static final SimpleParticleType FIREFLY = register("firefly");
|
||||
public static final SimpleParticleType SMARAGDANT = register("smaragdant_particle");
|
||||
|
||||
public static void register() {
|
||||
ParticleFactoryRegistry.getInstance().register(GLOWING_SPHERE, ParticleGlowingSphere.FactoryGlowingSphere::new);
|
||||
ParticleFactoryRegistry.getInstance().register(PORTAL_SPHERE, PaticlePortalSphere.FactoryPortalSphere::new);
|
||||
ParticleFactoryRegistry.getInstance().register(INFUSION, InfusionParticle.InfusionFactory::new);
|
||||
ParticleFactoryRegistry.getInstance().register(SULPHUR_PARTICLE, ParticleSulphur.FactorySulphur::new);
|
||||
ParticleFactoryRegistry.getInstance().register(GEYSER_PARTICLE, ParticleGeyser.FactoryGeyser::new);
|
||||
ParticleFactoryRegistry.getInstance().register(SNOWFLAKE, ParticleSnowflake.FactorySnowflake::new);
|
||||
ParticleFactoryRegistry.getInstance().register(AMBER_SPHERE, ParticleGlowingSphere.FactoryGlowingSphere::new);
|
||||
ParticleFactoryRegistry.getInstance().register(BLACK_SPORE, ParticleBlackSpore.FactoryBlackSpore::new);
|
||||
ParticleFactoryRegistry.getInstance().register(TENANEA_PETAL, ParticleTenaneaPetal.FactoryTenaneaPetal::new);
|
||||
ParticleFactoryRegistry.getInstance().register(JUNGLE_SPORE, ParticleJungleSpore.FactoryJungleSpore::new);
|
||||
ParticleFactoryRegistry.getInstance().register(FIREFLY, FireflyParticle.FireflyParticleFactory::new);
|
||||
ParticleFactoryRegistry.getInstance().register(SMARAGDANT, SmaragdantParticle.SmaragdantParticleFactory::new);
|
||||
}
|
||||
|
||||
private static SimpleParticleType register(String name) {
|
||||
return Registry.register(Registry.PARTICLE_TYPE, BetterEnd.makeID(name), FabricParticleTypes.simple());
|
||||
}
|
||||
|
||||
private static SimpleParticleType registerFar(String name) {
|
||||
return Registry.register(Registry.PARTICLE_TYPE, BetterEnd.makeID(name), FabricParticleTypes.simple(true));
|
||||
}
|
||||
|
||||
private static <T extends ParticleOptions> ParticleType<T> register(String name, ParticleType<T> type) {
|
||||
return Registry.register(Registry.PARTICLE_TYPE, BetterEnd.makeID(name), type);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue