Fixes
This commit is contained in:
parent
6ee49ed3e6
commit
49c8d97d9e
11 changed files with 101 additions and 21 deletions
|
@ -39,7 +39,7 @@ import ru.betterend.blocks.BlockPythadendronSapling;
|
|||
import ru.betterend.blocks.BlockShadowBerry;
|
||||
import ru.betterend.blocks.BlockShadowGrass;
|
||||
import ru.betterend.blocks.BlockSulphurCrystal;
|
||||
import ru.betterend.blocks.BlockSulphuricGeyser;
|
||||
import ru.betterend.blocks.BlockHydrothermalVent;
|
||||
import ru.betterend.blocks.BlockTenaneaFlowers;
|
||||
import ru.betterend.blocks.BlockTenaneaSapling;
|
||||
import ru.betterend.blocks.BlockTerrain;
|
||||
|
@ -112,7 +112,7 @@ public class EndBlocks {
|
|||
public static final Block QUARTZ_PEDESTAL = registerBlock("quartz_pedestal", new PedestalVanilla(Blocks.QUARTZ_BLOCK));
|
||||
public static final Block PURPUR_PEDESTAL = registerBlock("purpur_pedestal", new PedestalVanilla(Blocks.PURPUR_BLOCK));
|
||||
|
||||
public static final Block SULPHURIC_GEYSER = registerBlock("sulphuric_geyser", new BlockSulphuricGeyser());
|
||||
public static final Block HYDROTHERMAL_VENT = registerBlock("hydrothermal_vent", new BlockHydrothermalVent());
|
||||
|
||||
// Wooden Materials And Trees //
|
||||
public static final Block MOSSY_GLOWSHROOM_SAPLING = registerBlock("mossy_glowshroom_sapling", new BlockMossyGlowshroomSapling());
|
||||
|
|
|
@ -9,6 +9,7 @@ import net.minecraft.util.registry.Registry;
|
|||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.particle.InfusionParticle;
|
||||
import ru.betterend.particle.InfusionParticleType;
|
||||
import ru.betterend.particle.ParticleGeyser;
|
||||
import ru.betterend.particle.ParticleGlowingSphere;
|
||||
import ru.betterend.particle.ParticleSulphur;
|
||||
import ru.betterend.particle.PaticlePortalSphere;
|
||||
|
@ -18,18 +19,24 @@ public class EndParticles {
|
|||
public static final DefaultParticleType PORTAL_SPHERE = register("portal_sphere");
|
||||
public static final ParticleType<InfusionParticleType> INFUSION = register("infusion", FabricParticleTypes.complex(InfusionParticleType.PARAMETERS_FACTORY));
|
||||
public static final DefaultParticleType SULPHUR_PARTICLE = register("sulphur_particle");
|
||||
public static final DefaultParticleType GEYSER_PARTICLE = registerFar("geyser_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.DefaultFactory::new);
|
||||
ParticleFactoryRegistry.getInstance().register(INFUSION, InfusionParticle.InfusionFactory::new);
|
||||
ParticleFactoryRegistry.getInstance().register(SULPHUR_PARTICLE, ParticleSulphur.FactorySulphur::new);
|
||||
ParticleFactoryRegistry.getInstance().register(GEYSER_PARTICLE, ParticleGeyser.FactoryGeyser::new);
|
||||
}
|
||||
|
||||
private static DefaultParticleType register(String name) {
|
||||
return Registry.register(Registry.PARTICLE_TYPE, BetterEnd.makeID(name), FabricParticleTypes.simple());
|
||||
}
|
||||
|
||||
private static DefaultParticleType registerFar(String name) {
|
||||
return Registry.register(Registry.PARTICLE_TYPE, BetterEnd.makeID(name), FabricParticleTypes.simple(true));
|
||||
}
|
||||
|
||||
private static <T extends ParticleEffect> 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