Class PetSitEvent

All Implemented Interfaces:
Cancellable

public class PetSitEvent extends PetInteractEvent
Fired when a pet's sit / follow toggle is about to flip. Subclass of PetInteractEvent; the PetSitEvent.Action discriminates the new state:

Fires from Pet on the right-click sit-toggle interaction.

Cancellable (inherited): cancellation suppresses the toggle — the pet stays in its current sit / follow state.

Pet state: live pet, with the owner online.

Item: getItem() (inherited from PetInteractEvent) always returns null for this event — the sit-toggle item is checked by the caller, not stored on the event.

  • Constructor Details

    • PetSitEvent

      public PetSitEvent(Pet pet, PetSitEvent.Action action)
      Creates the event for a pending sit / follow toggle.
      Parameters:
      pet - the pet being toggled
      action - the state it is being switched to
  • Method Details