generated from MrSphay/codex-agent-repository-kit
Decompile upstream Explosion Overhaul 0.2.3.0
This commit is contained in:
44
com/vinlanx/explosionoverhaul/ModParticles.java
Normal file
44
com/vinlanx/explosionoverhaul/ModParticles.java
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user