Package net.lewmc.kryptonite.kos.config
Class Leaf
java.lang.Object
net.lewmc.kryptonite.kos.config.Leaf
The leaf class manages the leaf.yml configuration file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configuration values supported by this format. -
Constructor Summary
ConstructorsConstructorDescriptionLeaf
(Kryptonite plugin, org.bukkit.command.CommandSender user) Constructor for the leaf class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(Leaf.Key key) Gets a requested key's value.int
Gets a requested key's value.void
setBoolean
(Leaf.Key key, boolean value) Sets a requested key to a requested value.void
Sets a requested key to a requested value.void
Sets a requested key to a requested value.
-
Constructor Details
-
Leaf
Constructor for the leaf class.- Parameters:
plugin
- Kryptonite - Reference to the main plugin class.user
- CommandSender - The user who sent the command.
-
-
Method Details
-
setInt
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-
getInt
Gets a requested key's value.- Parameters:
key
- Key - The requested key.
-
setBoolean
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-
getBoolean
Gets a requested key's value.- Parameters:
key
- Key - The requested key.
-
setString
Sets a requested key to a requested value.- Parameters:
key
- Key - The requested key.value
- int - The requested value.
-