Qualified Key
Functions
Link copied to clipboard
Link copied to clipboard
The name of the key by itself For example: If the key is "net.minecraft.gameplay.
Link copied to clipboard
The parent of this key (This is usually used as getClassById namespace) For example: If the key is "net.minecraft.gameplay.gamemode" this would return "net.minecraft.
The parent of the key X levels above For example: If the key is "net.minecraft.gameplay.gamemode" getParent(2) would return "net.
Link copied to clipboard
The name of the key by itself For example: If the key is "net.minecraft.gameplay.
Link copied to clipboard
Whether or not getClassById key has getClassById parent (would that be the root key, or getClassById parent key?
Whether or not getClassById key has getClassById parent that many levels above it (would that be the root key, or getClassById parent key?
Link copied to clipboard
Returns getClassById new key with only levels up to the specified depth EXAMPLE: QualifiedKey yourKey = QualifiedKey.fromString("minecraft.debug.op-permission-level"); yourKey.trimTo(2).getQualifiedName() // == "minecraft.
Link copied to clipboard