Class ConfigNodeImpl
java.lang.Object
net.ixdarklord.coolcatcore.internal.config.ConfigNodeImpl
- All Implemented Interfaces:
ConfigNode
- Direct Known Subclasses:
ConfigGroupImpl,ConfigValueImpl
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigNodeImpl(String key, @Nullable ConfigGroupImpl parent, List<String> comment, @Nullable String translationKey, boolean hidden) -
Method Summary
Modifier and TypeMethodDescriptioncomment()The comment lines written above the node in the file, and shown in the config screen's tooltips.config()@Nullable ConfigImplThe config, or null before the builder finished.net.minecraft.network.chat.ComponentThe translated name, or a readable form of the key when there's no translation.booleanisHidden()Hidden nodes are kept in the file but not shown in the config screen.key()The node's key in its group, as written to the file.@Nullable ConfigGroupImplparent()The group holding this node; null for the root.path()The dotted path from the root ("rendering.particles.enabled"); empty for the root.static StringmaxCount,max_countandmax-countall read "Max Count".The key of the node's name:config.<modid>.<config>.<path>, unless the builder set another.
-
Constructor Details
-
ConfigNodeImpl
protected ConfigNodeImpl(String key, @Nullable @Nullable ConfigGroupImpl parent, List<String> comment, @Nullable @Nullable String translationKey, boolean hidden)
-
-
Method Details
-
key
Description copied from interface:ConfigNodeThe node's key in its group, as written to the file.- Specified by:
keyin interfaceConfigNode
-
path
Description copied from interface:ConfigNodeThe dotted path from the root ("rendering.particles.enabled"); empty for the root.- Specified by:
pathin interfaceConfigNode
-
config
- Specified by:
configin interfaceConfigNode
-
configOrNull
The config, or null before the builder finished. -
parent
Description copied from interface:ConfigNodeThe group holding this node; null for the root.- Specified by:
parentin interfaceConfigNode
-
comment
Description copied from interface:ConfigNodeThe comment lines written above the node in the file, and shown in the config screen's tooltips.- Specified by:
commentin interfaceConfigNode
-
translationKey
Description copied from interface:ConfigNodeThe key of the node's name:config.<modid>.<config>.<path>, unless the builder set another. The tooltip uses the same key with.tooltipappended, falling back to the comment.- Specified by:
translationKeyin interfaceConfigNode
-
displayName
public net.minecraft.network.chat.Component displayName()Description copied from interface:ConfigNodeThe translated name, or a readable form of the key when there's no translation.- Specified by:
displayNamein interfaceConfigNode
-
isHidden
public boolean isHidden()Description copied from interface:ConfigNodeHidden nodes are kept in the file but not shown in the config screen.- Specified by:
isHiddenin interfaceConfigNode
-
prettify
maxCount,max_countandmax-countall read "Max Count".
-