Interface TailoredPlayer

All Known Implementing Classes:
MServerPlayerEntity_TailoredPlayer

public interface TailoredPlayer
Includes additional methods for skin changes.
  • Field Details

  • Method Details

    • fabrictailor_reloadSkin

      void fabrictailor_reloadSkin()
      Reloads player's skin.
    • reloadSkin

      @Deprecated default void reloadSkin()
      Deprecated.
    • fabrictailor_setSkin

      void fabrictailor_setSkin(com.mojang.authlib.properties.Property skinData, boolean reload)
      Sets the skin to the specified player.
      Parameters:
      skinData - skin texture data
      reload - whether to send packets around for skin reload
    • setSkin

      @Deprecated default void setSkin(com.mojang.authlib.properties.Property skinData, boolean reload)
      Deprecated.
    • fabrictailor_setSkin

      void fabrictailor_setSkin(String value, String signature, boolean reload)
      Sets the skin to the specified player.
      Parameters:
      value - skin texture value
      signature - skin texture signature
      reload - whether to send packets around for skin reload
    • setSkin

      @Deprecated default void setSkin(String value, String signature, boolean reload)
    • fabrictailor_getSkinValue

      Optional<String> fabrictailor_getSkinValue()
      Gets player's skin value.
      Returns:
      skin value as string, null if player has no skin set.
    • getSkinValue

      @Deprecated @Nullable default @Nullable String getSkinValue()
      Deprecated.
    • fabrictailor_getSkinSignature

      Optional<String> fabrictailor_getSkinSignature()
      Gets player's skin signature.
      Returns:
      skin signature as string, null if player has no skin set.
    • getSkinSignature

      @Deprecated @Nullable default @Nullable String getSkinSignature()
      Deprecated.
    • fabrictailor_getLastSkinChange

      long fabrictailor_getLastSkinChange()
      Gets the most recent time when player changed their skin.
      Returns:
      time of skin change.
    • getLastSkinChange

      @Deprecated default long getLastSkinChange()
      Deprecated.
    • resetLastSkinChange

      @Deprecated default void resetLastSkinChange()
      Deprecated.
      Resets the skin timer.
    • fabrictailor_resetLastSkinChange

      void fabrictailor_resetLastSkinChange()
      Resets the skin timer.
    • clearSkin

      @Deprecated default void clearSkin()
      Deprecated.
      Clears player's skin.
    • fabrictailor_clearSkin

      void fabrictailor_clearSkin()
    • fabrictailor_getSkinId

      String fabrictailor_getSkinId()
      Helper function to get texture hash from skin that was set with the mod.

      Can be used with https://mc-heads.net/avatar/%7Btextureid%7D to get the head texture.

      Returns:
      player's skin id (hash)
    • getSkinId

      @Deprecated default String getSkinId()
      Deprecated.