AddonLoaderScope

Entries

Link copied to clipboard

Indicates that the addon should be loaded in the client scope. fabric.mod.json, mods.toml

Link copied to clipboard

Indicates that the addon should be loaded in the server scope. fabric.mod.json, mods.toml, or plugin.yml

Link copied to clipboard

Indicates that the addon should be loaded in the proxy scope. bungee.yml, velocity-plugin.json

Link copied to clipboard

Indicates that the addon should be loaded in either the server or proxy scope.

Link copied to clipboard

Indicates that the addon should be loaded in either the client, server, or proxy scope.

Functions

Link copied to clipboard
open fun isClient(): Boolean
Checks if the addon should be loaded in a client environment.
Link copied to clipboard
open fun isProxy(): Boolean
Checks if the addon should be loaded in a proxy environment.
Link copied to clipboard
open fun isServer(): Boolean
Checks if the addon should be loaded in a server environment.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.