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:
  • Constructor Details

    • ParticleConfig

      public ParticleConfig(ModBase mod, String namedId, Function<ParticleConfig<T>,? extends net.minecraft.core.particles.ParticleType<T>> elementConstructor)
      Create a new config
      Parameters:
      mod - The mod instance.
      namedId - A unique name id
      elementConstructor - The element constructor.
  • Method Details

    • getTranslationKey

      public String getTranslationKey()
      Description copied from class: ExtendedConfig
      Get the unlocalized name (must be unique!) for this configurable.
      Specified by:
      getTranslationKey in class ExtendedConfig<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

      public String getFullTranslationKey()
      Description copied from class: ExtendedConfig
      Get the full unlocalized name for this configurable.
      Overrides:
      getFullTranslationKey in class ExtendedConfig<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

      public ConfigurableType getConfigurableType()
      Description copied from class: ExtendedConfig
      Return the configurable type for which this config holds data
      Specified by:
      getConfigurableType in class ExtendedConfig<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.minecraft.core.Registry<? super net.minecraft.core.particles.ParticleType<T>> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<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

      @Nullable public abstract net.minecraft.client.particle.ParticleProvider<T> getParticleFactory()
    • getParticleMetaFactory

      @Nullable public abstract net.minecraft.client.particle.ParticleEngine.SpriteParticleRegistration<T> getParticleMetaFactory()
    • onParticleFactoryRegister

      public void onParticleFactoryRegister(net.neoforged.neoforge.client.event.RegisterParticleProvidersEvent event)