OptionsHelper.SkinOptionsHelper
com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.SkinOptionsHelper
Skin model-part visibility and main-hand settings.
js
const options = Client.getGameOptions();
options.skin.isCapeActivated();Nested type declared in OptionsHelper.
Constructors
new OptionsHelper.SkinOptionsHelper
new OptionsHelper.SkinOptionsHelper(OptionsHelper optionsHelper, OptionsHelper OptionsHelper)#Stores the supplied parent reference; settings methods use the enclosing
OptionsHelper instance, which may differ.Parameters:
OptionsHelper: parent helper reference to retain
Fields
parent
The options helper that owns this settings group.
Methods
getParent
Returns: the parent options helper.
isCapeActivated
Returns:
true if the player's cape should be shown, false otherwise.isHatActivated
Returns:
true if the player's hat should be shown, false otherwise.isJacketActivated
Returns:
true if the player's jacket should be shown, false otherwise.isLeftHanded
Returns:
true if the player's main hand is the left one, false otherwise.isLeftPantsActivated
Returns:
true if the player's left pants should be shown, false otherwise.isLeftSleeveActivated
Returns:
true if the player's left sleeve should be shown, false otherwise.isRightHanded
Returns:
true if the player's main hand is the right one, false otherwise.isRightPantsActivated
Returns:
true if the player's right pants should be shown, false otherwise.isRightSleeveActivated
Returns:
true if the player's right sleeve should be shown, false otherwise.toggleCape
Parameters:
val: whether the cape should be shown or not
Returns: self for chaining.
toggleHat
Sets whether the hat is shown.
Parameters:
val:trueto show the hat;falseto hide it
Returns: self for chaining.
toggleJacket
Parameters:
val: whether the jacket should be shown or not
Returns: self for chaining.
toggleLeftPants
Sets whether the left pants leg is shown.
Parameters:
val:trueto show the pants leg;falseto hide it
Returns: self for chaining.
toggleLeftSleeve
Sets whether the left sleeve is shown.
Parameters:
val:trueto show the sleeve;falseto hide it
Returns: self for chaining.
toggleMainHand
Sets the main hand. The value is case-insensitive; only
"left" selects the left hand, and any other value selects the right hand.Parameters:
hand: the requested hand
Returns: self for chaining.
toggleRightPants
Sets whether the right pants leg is shown.
Parameters:
val:trueto show the pants leg;falseto hide it
Returns: self for chaining.
toggleRightSleeve
Sets whether the right sleeve is shown.
Parameters:
val:trueto show the sleeve;falseto hide it
Returns: self for chaining.