2023-01-19 16:27:56 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.particle;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.core.particles.ParticleType;
|
2024-03-04 20:21:48 +01:00
|
|
|
import net.minecraft.core.registries.BuiltInRegistries;
|
|
|
|
import net.neoforged.bus.api.IEventBus;
|
|
|
|
import net.neoforged.neoforge.registries.DeferredRegister;
|
|
|
|
|
|
|
|
import java.util.function.Supplier;
|
2023-01-19 16:27:56 +01:00
|
|
|
|
|
|
|
public class ActuallyParticles {
|
2024-03-04 20:21:48 +01:00
|
|
|
private static final DeferredRegister<ParticleType<?>> PARTICLE_TYPES = DeferredRegister.create(BuiltInRegistries.PARTICLE_TYPE, ActuallyAdditions.MODID);
|
2023-01-19 16:27:56 +01:00
|
|
|
|
|
|
|
|
2024-03-04 20:21:48 +01:00
|
|
|
public static final Supplier<ParticleType<LaserItemParticleData>> LASER_ITEM = PARTICLE_TYPES.register("laser_item", LaserItemParticleType::new);
|
|
|
|
public static final Supplier<ParticleType<BeamParticleData>> BEAM = PARTICLE_TYPES.register("beam", BeamParticleType::new);
|
2023-01-19 16:27:56 +01:00
|
|
|
|
|
|
|
public static void init(IEventBus evt) {
|
|
|
|
PARTICLE_TYPES.register(evt);
|
|
|
|
}
|
|
|
|
}
|