Package de.Keyle.MyPet.api.entity
Interface PetNaturallyRideable
public interface PetNaturallyRideable
Marker for pets that can be mounted in vanilla Minecraft. Used by the
cross-cutting ride-gating listeners (
RideInteractListener,
PetMountGateListener) to scope their gate logic to only the
pet types that vanilla considers rideable.
Drives the auto-registration of two per-pet config flags from
ConfigurationLoader.setDefault:
MyPet.Pets.<Type>.RequireRideSkill(defaulttrue)MyPet.Pets.<Type>.AllowNonOwnerPrimaryMount(defaultfalse)
Distinct from the MyPet Ride skill — this marker is about whether vanilla's mount mechanism applies to the pet type, not whether the Ride skill is granted to a specific pet.
Pure tag interface — no methods, no defaults. Pet types declare
implements PetNaturallyRideable on the matching PetXxx
class. Initial implementers: Horse, Donkey, Mule, SkeletonHorse,
ZombieHorse, Camel, CamelHusk, Pig, Strider, Llama, TraderLlama,
HappyGhast, Nautilus, ZombieNautilus.
Adding a future rideable Pet type is a one-line marker addition; the YAML rows materialize automatically via the registration loop.