Class ServerAttachParrotsEvent

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

public abstract class ServerAttachParrotsEvent extends SessionSpawnEntityEvent
Called when the Java server attaches parrots to a player.
Since:
2.11.0
  • Constructor Details

    • ServerAttachParrotsEvent

      @Internal public ServerAttachParrotsEvent(GeyserConnection connection)
  • Method Details

    • player

      public abstract GeyserPlayerEntity 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