Class ServerAttachParrotsEvent
java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionSpawnEntityEvent
org.geysermc.geyser.api.event.java.ServerAttachParrotsEvent
- All Implemented Interfaces:
org.geysermc.event.Cancellable,org.geysermc.event.Event
Called when the Java server attaches parrots to a player.
- Since:
- 2.11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GeyserPlayerEntityplayer()The player for which the Java server attached parrots.abstract booleanright()Whether this parrot is on the right shoulder of the player.abstract intvariant()The variant of the parrot.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
-
ServerAttachParrotsEvent
-
-
Method Details
-
player
The player for which the Java server attached parrots.- Returns:
- the player with bird friends
- Since:
- 2.11.0
-
variant
public abstract int variant()The variant of the parrot.- Returns:
- the parrot variant
- Since:
- 2.11.0
-
right
public abstract boolean right()Whether this parrot is on the right shoulder of the player.- Returns:
- true if parrot is on the right shoulder, left otherwise
- Since:
- 2.11.0
-