Fabric Particle Types
public final class FabricParticleTypes
Content copied to clipboard
Methods for creating particle types, both simple and using an existing attribute factory.
Usage:
public static final DefaultParticleType SIMPLE_TEST_PARTICLE = FabricParticleTypes.simple();
public static final DefaultParticleType CUSTOM_TEST_PARTICLE = FabricParticleTypes.simple();
{@literal @}
Override
public void onInitialize() {
Registry.register(Registry.PARTICLE_TYPE, new Identifier("testmod", "simple"), SIMPLE_TEST_PARTICLE);
Registry.register(Registry.PARTICLE_TYPE, new Identifier("testmod", "custom"), CUSTOM_TEST_PARTICLE);
}}
See also
ParticleModClient
in the fabric example mods for a more complete usage.
Functions
Sources
jvm source
Link copied to clipboard