Class SkinParts
java.lang.Object
com.velocitypowered.api.proxy.player.SkinParts
Represents what, if any, extended parts of the skin this player has.
-
Constructor Summary
ConstructorsConstructorDescriptionSkinParts(byte skinBitmask) Constructs a new SkinParts object with the provided bitmask. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanhasCape()Returns whether the player has a cape enabled.booleanhasHat()Returns whether the player has a hat enabled.inthashCode()booleanReturns whether the player has a jacket enabled.booleanReturns whether the player has their left pants enabled.booleanReturns whether the player has a left sleeve enabled.booleanReturns whether the player has their right pants enabled.booleanReturns whether the player has a right sleeve enabled.
-
Constructor Details
-
SkinParts
public SkinParts(byte skinBitmask) Constructs a new SkinParts object with the provided bitmask.- Parameters:
skinBitmask- the bitmask representing which skin parts are enabled
-
-
Method Details
-
hasCape
public boolean hasCape()Returns whether the player has a cape enabled.- Returns:
- true if the cape is enabled, false otherwise
-
hasJacket
public boolean hasJacket()Returns whether the player has a jacket enabled.- Returns:
- true if the jacket is enabled, false otherwise
-
hasLeftSleeve
public boolean hasLeftSleeve()Returns whether the player has a left sleeve enabled.- Returns:
- true if the left sleeve is enabled, false otherwise
-
hasRightSleeve
public boolean hasRightSleeve()Returns whether the player has a right sleeve enabled.- Returns:
- true if the right sleeve is enabled, false otherwise
-
hasLeftPants
public boolean hasLeftPants()Returns whether the player has their left pants enabled.- Returns:
- true if the left pants are enabled, false otherwise
-
hasRightPants
public boolean hasRightPants()Returns whether the player has their right pants enabled.- Returns:
- true if the right pants are enabled, false otherwise
-
hasHat
public boolean hasHat()Returns whether the player has a hat enabled.- Returns:
- true if the hat is enabled, false otherwise
-
equals
-
hashCode
public int hashCode()
-