Class KeyInfoParser
java.lang.Object
com.toxicrain.rainengine.core.BaseInstanceable<KeyInfoParser>
com.toxicrain.rainengine.core.json.key.KeyInfoParser
KeyInfoParser parsers the keybinds.json file
needed for game functionality
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyInfoParser
getKeyBind
(String key) Gets a keybinding from keybinds.jsonvoid
Loads the keybinds.json and parses it into theHashMap
void
updateKeyBinding
(String key, String value) Updates a keybinding in memory and writes the change to keybinds.jsonMethods inherited from class com.toxicrain.rainengine.core.BaseInstanceable
getInstance
-
Constructor Details
-
KeyInfoParser
public KeyInfoParser()
-
-
Method Details
-
getInstance
-
loadKeyInfo
public void loadKeyInfo()Loads the keybinds.json and parses it into theHashMap
-
updateKeyBinding
Updates a keybinding in memory and writes the change to keybinds.json- Parameters:
key
- The keybinding to updatevalue
- The new value for the keybinding
-
getKeyBind
Gets a keybinding from keybinds.json- Parameters:
key
- The keybinding to get
-