Class SkullPlayerEntity


public class SkullPlayerEntity extends PlayerEntity
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

    • SkullPlayerEntity

      public SkullPlayerEntity(GeyserSession session, long geyserId)
  • 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 PlayerEntity
    • spawnEntity

      public void spawnEntity()
      Overwritten so each entity doesn't check for a linked entity
      Overrides:
      spawnEntity in class PlayerEntity
    • free

      public void free()
      Hide the player entity so that it can be reused for a different skull.
    • updateSkull

      public void updateSkull(SkullCache.Skull skull)
    • getSkullUUID

      public UUID getSkullUUID()
    • getSkullPosition

      public com.nukkitx.math.vector.Vector3i getSkullPosition()