Class ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<ParticleConfig<T>,net.minecraft.core.particles.ParticleType<T>>
org.cyclops.cyclopscore.config.extendedconfig.ParticleConfig<T>
- All Implemented Interfaces:
Comparable<ExtendedConfig<ParticleConfig<T>,
net.minecraft.core.particles.ParticleType<T>>>
- Direct Known Subclasses:
ParticleBlurConfig
,ParticleDropColoredConfig
public abstract class ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>
extends ExtendedConfigForge<ParticleConfig<T>,net.minecraft.core.particles.ParticleType<T>>
Config for recipe serializers.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties
-
Constructor Summary
ConstructorDescriptionParticleConfig
(ModBase mod, String namedId, Function<ParticleConfig<T>, ? extends net.minecraft.core.particles.ParticleType<T>> elementConstructor) Create a new config -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataGet the full unlocalized name for this configurable.abstract net.minecraft.client.particle.ParticleProvider<T>
abstract net.minecraft.client.particle.ParticleEngine.SpriteParticleRegistration<T>
net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.core.particles.ParticleType<T>>
Get the unlocalized name (must be unique!) for this configurable.void
onParticleFactoryRegister
(net.minecraftforge.client.event.RegisterParticleProvidersEvent event) Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKey
Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, onRegistered, save, showDoubleInitError
-
Constructor Details
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in classExtendedConfig<ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>,
net.minecraft.core.particles.ParticleType<T extends net.minecraft.core.particles.ParticleOptions>> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfig
Get the full unlocalized name for this configurable.- Overrides:
getFullTranslationKey
in classExtendedConfig<ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>,
net.minecraft.core.particles.ParticleType<T extends net.minecraft.core.particles.ParticleOptions>> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in classExtendedConfig<ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>,
net.minecraft.core.particles.ParticleType<T extends net.minecraft.core.particles.ParticleOptions>> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.core.particles.ParticleType<T>> getRegistry()- Specified by:
getRegistry
in classExtendedConfigForge<ParticleConfig<T extends net.minecraft.core.particles.ParticleOptions>,
net.minecraft.core.particles.ParticleType<T extends net.minecraft.core.particles.ParticleOptions>> - Returns:
- The registry in which this should be registered.
-
getParticleFactory
-
getParticleMetaFactory
@Nullable public abstract net.minecraft.client.particle.ParticleEngine.SpriteParticleRegistration<T> getParticleMetaFactory() -
onParticleFactoryRegister
public void onParticleFactoryRegister(net.minecraftforge.client.event.RegisterParticleProvidersEvent event)
-