Interface PetSaddleable


public interface PetSaddleable
Marker for pets that can be saddled in vanilla Minecraft, via any of the three Bukkit-API saddle shapes:
  • SaddledMountInventory — inventory saddle slot (Horse, Donkey, Mule, SkeletonHorse, ZombieHorse, Camel, CamelHusk via AbstractHorseInventory; Nautilus, ZombieNautilus via ArmoredSaddledMountInventory)
  • Steerable — boolean saddle flag (Pig, Strider). Saddle item not stored — vanilla consumes the right-clicked item and tracks only a boolean state.
  • EquipmentSlot.SADDLE — equipment-slot saddle/harness (HappyGhast harness, also the standard backing for the inventory-based saddle types above).

The runtime listener calls PetSaddleHelper.isSaddled / applySaddle / removeSaddle to abstract over these shapes; callers never need to switch on the underlying Bukkit class.

Drives two pieces of MyPet machinery:

  • PetCreationOptions auto-generates a saddle flag creation option for each implementer where PetSaddleHelper.getDefaultSaddleStack returns a non-null default. (HappyGhast returns null — its harness goes through a separate per-pet harness:<color> creation option.)
  • ConfigurationLoader auto-registers RequireSaddle (default false) and AllowNonOwnerSaddle (default false) per-pet config flags for each implementer.

Excluded by design: Llama / TraderLlama (vanilla wears a decorative carpet, not a saddle — there's no rider gating to apply).