Interface ResolvableProfile.SkinPatch

Enclosing interface:
ResolvableProfile

@NonExtendable public static interface ResolvableProfile.SkinPatch
Override rendering options for a ResolvableProfile.
Since:
1.21.10
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.kyori.adventure.key.Key
    Gets the body texture key.
    @Nullable net.kyori.adventure.key.Key
    Gets the cape texture key.
    @Nullable net.kyori.adventure.key.Key
    Gets the elytra texture key.
    Returns the empty skin patch that does not override anything.
    default boolean
    Returns if this skin patch does not override any values.
    Gets the skin model.
    Creates a new builder for a skin patch.
  • Method Details

    • empty

      Returns the empty skin patch that does not override anything.
      Returns:
      the empty skin patch
      Since:
      1.21.10
    • skinPatch

      @Contract(value="-> new", pure=true) static ResolvableProfile.SkinPatchBuilder skinPatch()
      Creates a new builder for a skin patch.
      Returns:
      new skin patch builder
      Since:
      1.21.10
    • body

      @Nullable net.kyori.adventure.key.Key body()
      Gets the body texture key.
      Returns:
      the body texture key, or null if not set
      Since:
      1.21.10
    • cape

      @Nullable net.kyori.adventure.key.Key cape()
      Gets the cape texture key.
      Returns:
      the cape texture key, or null if not set
      Since:
      1.21.10
    • elytra

      @Nullable net.kyori.adventure.key.Key elytra()
      Gets the elytra texture key.
      Returns:
      the elytra texture key, or null if not set
      Since:
      1.21.10
    • model

      @Nullable PlayerTextures.SkinModel model()
      Gets the skin model.
      Returns:
      the skin model, or null if not set
      Since:
      1.21.10
    • isEmpty

      default boolean isEmpty()
      Returns if this skin patch does not override any values.
      Returns:
      true if this skin patch is empty
      Since:
      1.21.10