Skip to content

Tweak class

Base tweak class.

Classes that extend Tweak

Parameters

NameTypeDescription
idstringID of the tweak used for setting.
namestringUser friendly name for this setting.
authorstringThe user who created this tweak.
descriptionstringDescription of this setting.
categorystringThe category in settings.
conditionstringConditions to match to show this tweak.

Methods

delete

Delete this tweak with its setting and deleteables.

disable

Disable this tweak.

enable

Enable this tweak.

install

Install this tweak.

WARNING

Do not override! You should override onInstall instead.

load

Load this tweak.

onInstall

Called when this plugin is installed.

onLoad

Called when this tweak is loaded.

onUninstall

Called when this plugin is uninstalled.

onUnload

Called when this tweak is unloaded.

uninstall

Uninstall this tweak.

WARNING

Do not override! You should override onUninstall instead.

unload

Unload this tweak.

setup

Called when this tweak is created.

Not associated with or approved by Mojang Studios or Microsoft