Class GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>
java.lang.Object
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<C,I>
org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge<GuiConfig<T>,net.minecraft.world.inventory.MenuType<T>>
org.cyclops.cyclopscore.config.extendedconfig.GuiConfig<T>
- All Implemented Interfaces:
Comparable<ExtendedConfig<GuiConfig<T>,net.minecraft.world.inventory.MenuType<T>>>
- Direct Known Subclasses:
ContainerInfoBookTestConfig
public abstract class GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>
extends ExtendedConfigForge<GuiConfig<T>,net.minecraft.world.inventory.MenuType<T>>
Config for client-side guis and server-side containers.
- See Also:
-
Field Summary
Fields inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
configProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the configurable type for which this config holds dataGet the full unlocalized name for this configurable.net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.inventory.MenuType<T>>abstract <U extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<T>>
net.minecraft.client.gui.screens.MenuScreens.ScreenConstructor<T,U> Get the unlocalized name (must be unique!) for this configurable.voidOverridable method that is called after the element of this config is fully registered, after theFMLCommonSetupEvent.Methods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfigForge
getResourceKeyMethods inherited from class org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig
compareTo, downCast, getConfigPropertyPrefix, getInstance, getSubUniqueName, initializeInstance, onConfigPropertyReload, onForgeRegistered, save, showDoubleInitError
-
Constructor Details
-
Method Details
-
getTranslationKey
Description copied from class:ExtendedConfigGet the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKeyin classExtendedConfig<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>> - Returns:
- The unlocalized name.
-
getFullTranslationKey
Description copied from class:ExtendedConfigGet the full unlocalized name for this configurable.- Overrides:
getFullTranslationKeyin classExtendedConfig<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>> - Returns:
- The unlocalized name.
-
getConfigurableType
Description copied from class:ExtendedConfigReturn the configurable type for which this config holds data- Specified by:
getConfigurableTypein classExtendedConfig<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>> - Returns:
- the type of the configurable to where the config belongs
-
getRegistry
public net.minecraftforge.registries.IForgeRegistry<? super net.minecraft.world.inventory.MenuType<T>> getRegistry()- Specified by:
getRegistryin classExtendedConfigForge<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>> - Returns:
- The registry in which this should be registered.
-
getScreenFactory
-
onRegistered
public void onRegistered()Description copied from class:ExtendedConfigOverridable method that is called after the element of this config is fully registered, after theFMLCommonSetupEvent.- Overrides:
onRegisteredin classExtendedConfig<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>>
-