Class EnderDragonEntity

All Implemented Interfaces:
Tickable

public class EnderDragonEntity extends InsentientEntity implements Tickable
  • Constructor Details

    • EnderDragonEntity

      public EnderDragonEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class InsentientEntity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • spawnEntity

      public void spawnEntity(GeyserSession session)
      Overrides:
      spawnEntity in class Entity
    • addAdditionalSpawnData

      public void addAdditionalSpawnData(com.nukkitx.protocol.bedrock.packet.AddEntityPacket addEntityPacket)
      Description copied from class: Entity
      To be overridden in other entity classes, if additional things need to be done to the spawn entity packet.
      Overrides:
      addAdditionalSpawnData in class Entity
    • despawnEntity

      public boolean despawnEntity(GeyserSession session)
      Description copied from class: Entity
      Despawns the entity
      Overrides:
      despawnEntity in class Entity
      Parameters:
      session - The GeyserSession
      Returns:
      can be deleted
    • tick

      public void tick(GeyserSession session)
      Specified by:
      tick in interface Tickable