Package net.pinger.disguise
Class Skin
java.lang.Object
net.pinger.disguise.Skin
This class represents a type which can be used for changing
the player's properties through the GameObject type.
Each skin has a Base64 encoded value and signature, which is used for the transformation.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the property handle for this skin.This method returns the encoded signature of this skin.getValue()This method returns the encoded value of this skin.com.google.gson.JsonObjectReturns a json representation of this object.org.bukkit.inventory.ItemStacktoSkull()Transforms this skin to a skull.
-
Constructor Details
-
Skin
-
-
Method Details
-
getValue
This method returns the encoded value of this skin.- Returns:
- the value
-
getSignature
This method returns the encoded signature of this skin.- Returns:
- the signature
-
toSkull
public org.bukkit.inventory.ItemStack toSkull()Transforms this skin to a skull.This instance is created once the skin has been initialized.
- Returns:
- the skull from this item
-
getHandle
This method returns the property handle for this skin.- Returns:
- the handle
-
toJsonObject
public com.google.gson.JsonObject toJsonObject()Returns a json representation of this object.- Returns:
- the json representation
-