Skip to content

localStorage

General storage class. Allows you to store key/values in the user folder. Sub-class of Storage. Saves the file as localStorage.yaml in user folder.

Parameters

NameDescription
userThe User class for the local storage.

Methods

getItem

removeItem

clear

key

exist

show

Example

py
user = User('com.author.example_name')
local = localStorage(user)

local.setItem('version', '1.0.0')

version = local.getItem('version')
print(version)

Not associated with or approved by Mojang Studios or Microsoft