Skip to content

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 ​

parent: OptionsHelperSince1.8.4read-only#
The options helper that owns this settings group.

Methods ​

getParent ​

getParent(): OptionsHelperSince1.8.4#
Returns: the parent options helper.

isCapeActivated ​

isCapeActivated(): booleanSince1.8.4#
Returns: true if the player's cape should be shown, false otherwise.

isHatActivated ​

isHatActivated(): booleanSince1.8.4#
Returns: true if the player's hat should be shown, false otherwise.

isJacketActivated ​

isJacketActivated(): booleanSince1.8.4#
Returns: true if the player's jacket should be shown, false otherwise.

isLeftHanded ​

isLeftHanded(): booleanSince1.8.4#
Returns: true if the player's main hand is the left one, false otherwise.

isLeftPantsActivated ​

isLeftPantsActivated(): booleanSince1.8.4#
Returns: true if the player's left pants should be shown, false otherwise.

isLeftSleeveActivated ​

isLeftSleeveActivated(): booleanSince1.8.4#
Returns: true if the player's left sleeve should be shown, false otherwise.

isRightHanded ​

isRightHanded(): booleanSince1.8.4#
Returns: true if the player's main hand is the right one, false otherwise.

isRightPantsActivated ​

isRightPantsActivated(): booleanSince1.8.4#
Returns: true if the player's right pants should be shown, false otherwise.

isRightSleeveActivated ​

isRightSleeveActivated(): booleanSince1.8.4#
Returns: true if the player's right sleeve should be shown, false otherwise.

toggleCape ​

toggleCape(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#

Parameters:

  • val: whether the cape should be shown or not
Returns: self for chaining.

toggleHat ​

toggleHat(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#
Sets whether the hat is shown.

Parameters:

  • val: true to show the hat; false to hide it
Returns: self for chaining.

toggleJacket ​

toggleJacket(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#

Parameters:

  • val: whether the jacket should be shown or not
Returns: self for chaining.

toggleLeftPants ​

toggleLeftPants(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#
Sets whether the left pants leg is shown.

Parameters:

  • val: true to show the pants leg; false to hide it
Returns: self for chaining.

toggleLeftSleeve ​

toggleLeftSleeve(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#
Sets whether the left sleeve is shown.

Parameters:

  • val: true to show the sleeve; false to hide it
Returns: self for chaining.

toggleMainHand ​

toggleMainHand(String hand): OptionsHelper.SkinOptionsHelperSince1.8.4#
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 ​

toggleRightPants(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#
Sets whether the right pants leg is shown.

Parameters:

  • val: true to show the pants leg; false to hide it
Returns: self for chaining.

toggleRightSleeve ​

toggleRightSleeve(boolean val): OptionsHelper.SkinOptionsHelperSince1.8.4#
Sets whether the right sleeve is shown.

Parameters:

  • val: true to show the sleeve; false to hide it
Returns: self for chaining.