Contents
Class PlayerSkinComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.PlayerSkinComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
An entity component that represents the skin of a player entity.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSkinComponent(PlayerSkin playerSkin) Default Constructor for aPlayerSkinComponentinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanCalled to consume and return the network outdated status.static ComponentType<EntityStore, PlayerSkinComponent> voidCalled to set the player's skin as outdated, indicating it needs to be updated on the network.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
PlayerSkinComponent
Default Constructor for aPlayerSkinComponentinstance.- Parameters:
playerSkin- The player's skin to associate with this component.
-
-
Method Details
-
getComponentType
- Returns:
- the component type for the
PlayerSkinComponentcomponent.
-
consumeNetworkOutdated
public boolean consumeNetworkOutdated()Called to consume and return the network outdated status.- Returns:
trueif the player's skin was outdated,falseotherwise.
-
getPlayerSkin
- Returns:
- the player's skin.
-
setNetworkOutdated
public void setNetworkOutdated()Called to set the player's skin as outdated, indicating it needs to be updated on the network. -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-