Package org.samo_lego.fabrictailor.casts
Interface TailoredPlayer
- All Known Implementing Classes:
MServerPlayerEntity_TailoredPlayer
public interface TailoredPlayer
Includes additional methods for skin changes.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Deprecated.void
long
Gets the most recent time when player changed their skin.Helper function to get texture hash from skin that was set with the mod.Gets player's skin signature.Gets player's skin value.void
Reloads player's skin.void
Resets the skin timer.void
fabrictailor_setSkin
(com.mojang.authlib.properties.Property skinData, boolean reload) Sets the skin to the specified player.void
fabrictailor_setSkin
(String value, String signature, boolean reload) Sets the skin to the specified player.default long
Deprecated.usefabrictailor_getLastSkinChange()
instead.default String
Deprecated.usefabrictailor_getSkinId()
instead.default @Nullable String
Deprecated.usefabrictailor_getSkinSignature()
instead.default @Nullable String
Deprecated.usefabrictailor_getSkinValue()
instead.default void
Deprecated.usefabrictailor_reloadSkin()
instead.default void
Deprecated.usefabrictailor_resetLastSkinChange()
()} instead.default void
setSkin
(com.mojang.authlib.properties.Property skinData, boolean reload) Deprecated.usefabrictailor_setSkin(Property, boolean)
instead.default void
Deprecated.usefabrictailor_setSkin(String, String, boolean)
instead.
-
Field Details
-
PROPERTY_TEXTURES
- See Also:
-
-
Method Details
-
fabrictailor_reloadSkin
void fabrictailor_reloadSkin()Reloads player's skin. -
reloadSkin
Deprecated.usefabrictailor_reloadSkin()
instead. -
fabrictailor_setSkin
void fabrictailor_setSkin(com.mojang.authlib.properties.Property skinData, boolean reload) Sets the skin to the specified player.- Parameters:
skinData
- skin texture datareload
- whether to send packets around for skin reload
-
setSkin
Deprecated.usefabrictailor_setSkin(Property, boolean)
instead. -
fabrictailor_setSkin
Sets the skin to the specified player.- Parameters:
value
- skin texture valuesignature
- skin texture signaturereload
- whether to send packets around for skin reload
-
setSkin
Deprecated.usefabrictailor_setSkin(String, String, boolean)
instead. -
fabrictailor_getSkinValue
Gets player's skin value.- Returns:
- skin value as string, null if player has no skin set.
-
getSkinValue
Deprecated.usefabrictailor_getSkinValue()
instead. -
fabrictailor_getSkinSignature
Gets player's skin signature.- Returns:
- skin signature as string, null if player has no skin set.
-
getSkinSignature
Deprecated.usefabrictailor_getSkinSignature()
instead. -
fabrictailor_getLastSkinChange
long fabrictailor_getLastSkinChange()Gets the most recent time when player changed their skin.- Returns:
- time of skin change.
-
getLastSkinChange
Deprecated.usefabrictailor_getLastSkinChange()
instead. -
resetLastSkinChange
Deprecated.usefabrictailor_resetLastSkinChange()
()} instead.Resets the skin timer. -
fabrictailor_resetLastSkinChange
void fabrictailor_resetLastSkinChange()Resets the skin timer. -
clearSkin
Deprecated.usefabrictailor_clearSkin()
instead.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.usefabrictailor_getSkinId()
instead.
-
fabrictailor_clearSkin()
instead.