Class ServerSpawnEntityEvent
java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionSpawnEntityEvent
org.geysermc.geyser.api.event.java.ServerSpawnEntityEvent
- All Implemented Interfaces:
org.geysermc.event.Cancellable,org.geysermc.event.Event
@Experimental
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intentityId()Gets the entity id of the entity being spawned, which is unique per session.abstract JavaEntityTypeGets the Java entity type sent by the server.abstract UUIDuuid()Gets the uuid of the entity being spawned.Methods inherited from class org.geysermc.geyser.api.event.bedrock.SessionSpawnEntityEvent
definition, definition, preSpawnConsumerMethods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.event.Cancellable
cancelled, cancelled, isCancelled, setCancelled
-
Constructor Details
-
ServerSpawnEntityEvent
-
-
Method Details
-
entityId
@Experimental public abstract int entityId()Gets the entity id of the entity being spawned, which is unique per session.- Returns:
- the entity id of the entity being spawned
- Since:
- 2.11.0
-
uuid
Gets the uuid of the entity being spawned.- Returns:
- the uuid of the entity being spawned
- Since:
- 2.11.0
-
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
-