Skip to content

Tweak class

Parameters

NameTypeDescription
idstringID of the tweak used for setting.
namestringUser friendly name for this setting.
descriptionstringDescription of this setting.
categorystringThe category in settings.

Methods

load

When this tweak is first loaded.

onChange

Callback used for this tweaks setting.

Parameters

NameTypeDescription
value

install

Install this tweak.

WARNING

Do not override! You should override onInstall instead.

uninstall

Uninstall this tweak.

WARNING

Do not override! You should override onUninstall instead.

enable

Enable this tweak.

WARNING

Do not override! You should override onEnable instead.

disable

Disable this tweak.

WARNING

Do not override! You should override onDisable instead.

delete

Delete this tweak and its settings.

onEnable

Override this method to add features when enabled.

onDisable

Override this method to remove features when disabled.

oninstall

Override this method to add features when installed.

onuninstall

Override this method to remove features when uninstalled.

Not associated with or approved by Mojang Studios or Microsoft