Class PlayerSkin

java.lang.Object
com.hypixel.hytale.protocol.PlayerSkin

public class PlayerSkin extends Object
  • Field Details

    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • bodyCharacteristic

      @Nullable public String bodyCharacteristic
    • underwear

      @Nullable public String underwear
    • face

      @Nullable public String face
    • eyes

      @Nullable public String eyes
    • ears

      @Nullable public String ears
    • mouth

      @Nullable public String mouth
    • facialHair

      @Nullable public String facialHair
    • haircut

      @Nullable public String haircut
    • eyebrows

      @Nullable public String eyebrows
    • pants

      @Nullable public String pants
    • overpants

      @Nullable public String overpants
    • undertop

      @Nullable public String undertop
    • overtop

      @Nullable public String overtop
    • shoes

      @Nullable public String shoes
    • headAccessory

      @Nullable public String headAccessory
    • faceAccessory

      @Nullable public String faceAccessory
    • earAccessory

      @Nullable public String earAccessory
    • skinFeature

      @Nullable public String skinFeature
    • gloves

      @Nullable public String gloves
    • cape

      @Nullable public String cape
  • Constructor Details

    • PlayerSkin

      public PlayerSkin()
    • PlayerSkin

      public PlayerSkin(@Nullable String bodyCharacteristic, @Nullable String underwear, @Nullable String face, @Nullable String eyes, @Nullable String ears, @Nullable String mouth, @Nullable String facialHair, @Nullable String haircut, @Nullable String eyebrows, @Nullable String pants, @Nullable String overpants, @Nullable String undertop, @Nullable String overtop, @Nullable String shoes, @Nullable String headAccessory, @Nullable String faceAccessory, @Nullable String earAccessory, @Nullable String skinFeature, @Nullable String gloves, @Nullable String cape)
    • PlayerSkin

      public PlayerSkin(@Nonnull PlayerSkin other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment.
    • getBodyCharacteristic

      @Nullable public static String getBodyCharacteristic(MemorySegment mem)
    • getBodyCharacteristic

      @Nullable public static String getBodyCharacteristic(MemorySegment mem, int offset)
    • getUnderwear

      @Nullable public static String getUnderwear(MemorySegment mem)
    • getUnderwear

      @Nullable public static String getUnderwear(MemorySegment mem, int offset)
    • getFace

      @Nullable public static String getFace(MemorySegment mem)
    • getFace

      @Nullable public static String getFace(MemorySegment mem, int offset)
    • getEyes

      @Nullable public static String getEyes(MemorySegment mem)
    • getEyes

      @Nullable public static String getEyes(MemorySegment mem, int offset)
    • getEars

      @Nullable public static String getEars(MemorySegment mem)
    • getEars

      @Nullable public static String getEars(MemorySegment mem, int offset)
    • getMouth

      @Nullable public static String getMouth(MemorySegment mem)
    • getMouth

      @Nullable public static String getMouth(MemorySegment mem, int offset)
    • getFacialHair

      @Nullable public static String getFacialHair(MemorySegment mem)
    • getFacialHair

      @Nullable public static String getFacialHair(MemorySegment mem, int offset)
    • getHaircut

      @Nullable public static String getHaircut(MemorySegment mem)
    • getHaircut

      @Nullable public static String getHaircut(MemorySegment mem, int offset)
    • getEyebrows

      @Nullable public static String getEyebrows(MemorySegment mem)
    • getEyebrows

      @Nullable public static String getEyebrows(MemorySegment mem, int offset)
    • getPants

      @Nullable public static String getPants(MemorySegment mem)
    • getPants

      @Nullable public static String getPants(MemorySegment mem, int offset)
    • getOverpants

      @Nullable public static String getOverpants(MemorySegment mem)
    • getOverpants

      @Nullable public static String getOverpants(MemorySegment mem, int offset)
    • getUndertop

      @Nullable public static String getUndertop(MemorySegment mem)
    • getUndertop

      @Nullable public static String getUndertop(MemorySegment mem, int offset)
    • getOvertop

      @Nullable public static String getOvertop(MemorySegment mem)
    • getOvertop

      @Nullable public static String getOvertop(MemorySegment mem, int offset)
    • getShoes

      @Nullable public static String getShoes(MemorySegment mem)
    • getShoes

      @Nullable public static String getShoes(MemorySegment mem, int offset)
    • getHeadAccessory

      @Nullable public static String getHeadAccessory(MemorySegment mem)
    • getHeadAccessory

      @Nullable public static String getHeadAccessory(MemorySegment mem, int offset)
    • getFaceAccessory

      @Nullable public static String getFaceAccessory(MemorySegment mem)
    • getFaceAccessory

      @Nullable public static String getFaceAccessory(MemorySegment mem, int offset)
    • getEarAccessory

      @Nullable public static String getEarAccessory(MemorySegment mem)
    • getEarAccessory

      @Nullable public static String getEarAccessory(MemorySegment mem, int offset)
    • getSkinFeature

      @Nullable public static String getSkinFeature(MemorySegment mem)
    • getSkinFeature

      @Nullable public static String getSkinFeature(MemorySegment mem, int offset)
    • getGloves

      @Nullable public static String getGloves(MemorySegment mem)
    • getGloves

      @Nullable public static String getGloves(MemorySegment mem, int offset)
    • getCape

      @Nullable public static String getCape(MemorySegment mem)
    • getCape

      @Nullable public static String getCape(MemorySegment mem, int offset)
    • hasBodyCharacteristic

      public static boolean hasBodyCharacteristic(MemorySegment mem, int offset)
    • hasUnderwear

      public static boolean hasUnderwear(MemorySegment mem, int offset)
    • hasFace

      public static boolean hasFace(MemorySegment mem, int offset)
    • hasEyes

      public static boolean hasEyes(MemorySegment mem, int offset)
    • hasEars

      public static boolean hasEars(MemorySegment mem, int offset)
    • hasMouth

      public static boolean hasMouth(MemorySegment mem, int offset)
    • hasFacialHair

      public static boolean hasFacialHair(MemorySegment mem, int offset)
    • hasHaircut

      public static boolean hasHaircut(MemorySegment mem, int offset)
    • hasEyebrows

      public static boolean hasEyebrows(MemorySegment mem, int offset)
    • hasPants

      public static boolean hasPants(MemorySegment mem, int offset)
    • hasOverpants

      public static boolean hasOverpants(MemorySegment mem, int offset)
    • hasUndertop

      public static boolean hasUndertop(MemorySegment mem, int offset)
    • hasOvertop

      public static boolean hasOvertop(MemorySegment mem, int offset)
    • hasShoes

      public static boolean hasShoes(MemorySegment mem, int offset)
    • hasHeadAccessory

      public static boolean hasHeadAccessory(MemorySegment mem, int offset)
    • hasFaceAccessory

      public static boolean hasFaceAccessory(MemorySegment mem, int offset)
    • hasEarAccessory

      public static boolean hasEarAccessory(MemorySegment mem, int offset)
    • hasSkinFeature

      public static boolean hasSkinFeature(MemorySegment mem, int offset)
    • hasGloves

      public static boolean hasGloves(MemorySegment mem, int offset)
    • hasCape

      public static boolean hasCape(MemorySegment mem, int offset)
    • toObject

      public static PlayerSkin toObject(MemorySegment mem)
    • toObject

      public static PlayerSkin toObject(MemorySegment mem, int offset)
    • toObject

      public static PlayerSkin toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one PlayerSkin and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked.
    • serialize

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public PlayerSkin clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object