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
-
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.void
Overridable 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
getResourceKey
Methods 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:ExtendedConfig
Get the unlocalized name (must be unique!) for this configurable.- Specified by:
getTranslationKey
in 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:ExtendedConfig
Get the full unlocalized name for this configurable.- Overrides:
getFullTranslationKey
in 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:ExtendedConfig
Return the configurable type for which this config holds data- Specified by:
getConfigurableType
in 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:
getRegistry
in 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:ExtendedConfig
Overridable method that is called after the element of this config is fully registered, after theFMLCommonSetupEvent
.- Overrides:
onRegistered
in classExtendedConfig<GuiConfig<T extends net.minecraft.world.inventory.AbstractContainerMenu>,
net.minecraft.world.inventory.MenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu>>
-