Interface ConfigNode
- All Known Subinterfaces:
ConfigGroup,ConfigValue<T>
- All Known Implementing Classes:
ConfigGroupImpl,ConfigNodeImpl,ConfigValueImpl
@NonExtendable
public interface ConfigNode
A group or a value in a config's tree.
-
Method Summary
Modifier and TypeMethodDescriptioncomment()The comment lines written above the node in the file, and shown in the config screen's tooltips.config()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 ConfigGroupparent()The group holding this node; null for the root.path()The dotted path from the root ("rendering.particles.enabled"); empty for the root.The key of the node's name:config.<modid>.<config>.<path>, unless the builder set another.
-
Method Details
-
key
String key()The node's key in its group, as written to the file. -
path
String path()The dotted path from the root ("rendering.particles.enabled"); empty for the root. -
config
Config config() -
parent
The group holding this node; null for the root. -
comment
The comment lines written above the node in the file, and shown in the config screen's tooltips. -
translationKey
String translationKey()The 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. -
displayName
net.minecraft.network.chat.Component displayName()The translated name, or a readable form of the key when there's no translation. -
isHidden
boolean isHidden()Hidden nodes are kept in the file but not shown in the config screen.
-