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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GeyserPlayerEntityplayer()abstract booleanright()abstract intvariant()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
- Returns:
- the player with bird friends
-
variant
public abstract int variant()- Returns:
- the parrot variant
-
right
public abstract boolean right()- Returns:
- true if parrot is on the right shoulder, left otherwise
-