Class ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>

java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<ArgumentTypeConfig<A,T>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A,T>>
org.cyclops.cyclopscore.config.extendedconfig.ArgumentTypeConfig<A,T>
All Implemented Interfaces:
Comparable<ExtendedConfig<ArgumentTypeConfig<A,T>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A,T>>>
Direct Known Subclasses:
ArgumentTypeConfigPropertyConfig, ArgumentTypeDebugPacketConfig, ArgumentTypeEnumConfig

public class ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>> extends ExtendedConfigForge<ArgumentTypeConfig<A,T>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A,T>>
Config for argument types.
See Also:
  • Constructor Details

    • ArgumentTypeConfig

      public ArgumentTypeConfig(ModBase mod, String namedId, net.minecraft.commands.synchronization.ArgumentTypeInfo<A,T> info, Class<A> infoClass)
  • Method Details

    • getInfoClass

      public Class<A> getInfoClass()
    • 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<ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>>
      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<ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>>
      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<ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>>
      Returns:
      the type of the configurable to where the config belongs
    • getRegistry

      public net.minecraft.core.Registry<? super net.minecraft.commands.synchronization.ArgumentTypeInfo<A,T>> getRegistry()
      Specified by:
      getRegistry in class ExtendedConfigForge<ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>>
      Returns:
      The registry in which this should be registered.
    • onForgeRegistered

      public void onForgeRegistered()
      Description copied from class: ExtendedConfig
      Overridable method that is immediately called after this element has been registered into a Forge registry.
      Overrides:
      onForgeRegistered in class ExtendedConfig<ArgumentTypeConfig<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>,net.minecraft.commands.synchronization.ArgumentTypeInfo<A extends com.mojang.brigadier.arguments.ArgumentType<?>,T extends net.minecraft.commands.synchronization.ArgumentTypeInfo.Template<A>>>