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, com.github.steveice10.mc.auth.data.GameProfile gameProfile, com.nukkitx.math.vector.Vector3f position, float rotation, int blockState)
  • 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
    • despawnEntity

      public void despawnEntity(com.nukkitx.math.vector.Vector3i position)