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
public abstract class ServerSpawnEntityEvent
extends SessionSpawnEntityEvent
implements org.geysermc.event.Cancellable
Called when the downstream server spawns a non-player entity.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intentityId()Gets the entity id of the entity being spawned.abstract JavaEntityTypeGets the Java entity type sent by the serverabstract 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
isCancelled, setCancelled
-
Constructor Details
-
ServerSpawnEntityEvent
-
-
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
-
uuid
Gets the uuid of the entity being spawned.- Returns:
- the uuid of the entity being spawned
-
entityType
Gets the Java entity type sent by the server- Returns:
- the Java edition entity type of the entity being spawned
-