Class PlayerSkinComponent

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.player.PlayerSkinComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class PlayerSkinComponent extends Object implements Component<EntityStore>
An entity component that represents the skin of a player entity.
  • Constructor Details

    • PlayerSkinComponent

      public PlayerSkinComponent(@Nonnull PlayerSkin playerSkin)
      Default Constructor for a PlayerSkinComponent instance.
      Parameters:
      playerSkin - The player's skin to associate with this component.
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, PlayerSkinComponent> getComponentType()
      Returns:
      the component type for the PlayerSkinComponent component.
    • consumeNetworkOutdated

      public boolean consumeNetworkOutdated()
      Called to consume and return the network outdated status.
      Returns:
      true if the player's skin was outdated, false otherwise.
    • getPlayerSkin

      @Nonnull public PlayerSkin 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

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.