Class ServerSpawnEntityEvent

All Implemented Interfaces:
org.geysermc.event.Cancellable, org.geysermc.event.Event

public abstract class ServerSpawnEntityEvent extends SessionSpawnEntityEvent implements org.geysermc.event.Cancellable
Called when the downstream server spawns a non-player entity.
Since:
2.11.0
  • Constructor Details

    • ServerSpawnEntityEvent

      @Internal public ServerSpawnEntityEvent(GeyserConnection connection)
  • Method Details

    • entityId

      public abstract int entityId()
      Gets the entity id of the entity being spawned.
      Returns:
      the entity id of the entity being spawned
      Since:
      2.11.0
    • uuid

      public abstract UUID uuid()
      Gets the uuid of the entity being spawned.
      Returns:
      the uuid of the entity being spawned
      Since:
      2.11.0
    • entityType

      public abstract JavaEntityType entityType()
      Gets the Java entity type sent by the server.
      Returns:
      the Java edition entity type of the entity being spawned
      Since:
      2.11.0