package net.minecraft.world.entity.ai.behavior.warden; import com.google.common.collect.ImmutableMap; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.ai.behavior.Behavior; public class ForceUnmount extends Behavior { public ForceUnmount() { super(ImmutableMap.of()); } @Override protected boolean checkExtraStartConditions(final ServerLevel level, final LivingEntity body) { return body.isPassenger(); } @Override protected void start(final ServerLevel level, final LivingEntity body, final long timestamp) { body.unRide(); } }