Files
Explosion-Overhaul/build/decompiled/com/vinlanx/explosionoverhaul/ModParticles.java
2026-05-04 10:03:58 +00:00

45 lines
2.1 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package com.vinlanx.explosionoverhaul;
import com.mojang.serialization.Codec;
import com.vinlanx.explosionoverhaul.CustomGlowParticleOptions;
import com.vinlanx.explosionoverhaul.PlasmaParticleOptions;
import com.vinlanx.explosionoverhaul.SmokeParticleOptions;
import net.minecraft.core.particles.ParticleType;
import net.minecraft.core.particles.SimpleParticleType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.IForgeRegistry;
import net.minecraftforge.registries.RegistryObject;
public class ModParticles {
public static final DeferredRegister<ParticleType<?>> PARTICLE_TYPES = DeferredRegister.create((IForgeRegistry)ForgeRegistries.PARTICLE_TYPES, (String)"explosionoverhaul");
public static final RegistryObject<ParticleType<CustomGlowParticleOptions>> CUSTOM_GLOW = PARTICLE_TYPES.register("custom_glow", () -> new ParticleType<CustomGlowParticleOptions>(true, CustomGlowParticleOptions.DESERIALIZER){
public Codec<CustomGlowParticleOptions> m_7652_() {
return CustomGlowParticleOptions.CODEC;
}
});
public static final RegistryObject<ParticleType<PlasmaParticleOptions>> PLASMA = PARTICLE_TYPES.register("plasma", () -> new ParticleType<PlasmaParticleOptions>(false, PlasmaParticleOptions.DESERIALIZER){
public Codec<PlasmaParticleOptions> m_7652_() {
return PlasmaParticleOptions.CODEC;
}
});
public static final RegistryObject<ParticleType<SmokeParticleOptions>> CUSTOM_SMOKE = PARTICLE_TYPES.register("smoke", () -> new ParticleType<SmokeParticleOptions>(false, SmokeParticleOptions.DESERIALIZER){
public Codec<SmokeParticleOptions> m_7652_() {
return SmokeParticleOptions.CODEC;
}
});
public static final RegistryObject<SimpleParticleType> LINE_SPARK = PARTICLE_TYPES.register("line_spark", () -> new SimpleParticleType(true));
public static void register(IEventBus eventBus) {
PARTICLE_TYPES.register(eventBus);
}
}