Class SkinParts

java.lang.Object
com.velocitypowered.api.proxy.player.SkinParts

public final class SkinParts extends Object
Represents what, if any, extended parts of the skin this player has.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SkinParts(byte skinBitmask)
    Constructs a new SkinParts object with the provided bitmask.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object o)
     
    boolean
    Returns whether the player has a cape enabled.
    boolean
    Returns whether the player has a hat enabled.
    int
     
    boolean
    Returns whether the player has a jacket enabled.
    boolean
    Returns whether the player has their left pants enabled.
    boolean
    Returns whether the player has a left sleeve enabled.
    boolean
    Returns whether the player has their right pants enabled.
    boolean
    Returns whether the player has a right sleeve enabled.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object