Class SkullPlayerEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable

public class SkullPlayerEntity extends AvatarEntity
A wrapper to handle skulls more effectively - skulls have to be treated as entities since there are no custom player skulls in Bedrock.
  • Constructor Details

  • Method Details

    • initializeMetadata

      protected void initializeMetadata()
      Description copied from class: Entity
      Called on entity spawn. Used to populate the entity metadata and flags with default values.
      Overrides:
      initializeMetadata in class AvatarEntity
    • updateSkull

      public void updateSkull(SkullCache.Skull skull)
    • isListed

      public boolean isListed()
      Description copied from class: AvatarEntity
      Whether this entity is listed on the player list. Since player entities are used for e.g. custom skulls too, we need to hack around limitations introduced in 1.21.130 to ensure skins are correctly applied.
      Specified by:
      isListed in class AvatarEntity
      Returns:
      whether this player entity is listed
      See Also:
    • getSkullUUID

      public UUID getSkullUUID()
    • getSkullPosition

      public org.cloudburstmc.math.vector.Vector3i getSkullPosition()
    • getSkinUrl

      public String getSkinUrl()