Class Skin
java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.Skin
- All Implemented Interfaces:
ActionData
Data for when a skin should be applied.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Skin.BroadTypeReturns the broad type that this skin resembles.abstract @Nullable EntityTypeReturns the entity type that this skin is made for.abstract StringgetId()Returns the unique id of this skin as configured.abstract @Nullable StringGet the skin's signature value.abstract @Nullable StringGet the skin's texture value.getType()Returns the type of this action data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.cosmetics.shop.data.ActionData
as, asAnimation, asImage, asKillMessages, asProductModifier, asSkin
-
Constructor Details
-
Skin
public Skin()
-
-
Method Details
-
getType
Description copied from interface:ActionDataReturns the type of this action data.- Specified by:
getTypein interfaceActionData- Returns:
- The type represented by this data
-
getId
Returns the unique id of this skin as configured.- Returns:
- The id
-
getBroadType
Returns the broad type that this skin resembles.- Returns:
- The broad type
-
getEntityType
Returns the entity type that this skin is made for.Only present if
getBroadType()isSkin.BroadType.LIVING.- Returns:
- The entity type, or
nullif it's not known
-
getSkinTexture
Get the skin's texture value.Only needed if
getBroadType()isSkin.BroadType.PLAYER.- Returns:
- The skin texture, or
nullif it's not known
-
getSkinSignature
Get the skin's signature value.Only needed if
getBroadType()isSkin.BroadType.PLAYER.- Returns:
- The skin signature, or
nullif it's not known
-