use of net.minecraft.server.v1_13_R2.EntityHorseAbstract in project Citizens2 by CitizensDev.
the class NMSImpl method openHorseScreen.
@Override
public void openHorseScreen(Tameable horse, Player equipper) {
EntityLiving handle = NMSImpl.getHandle(horse);
EntityHuman equipperHandle = (EntityHuman) NMSImpl.getHandle(equipper);
if (handle == null || equipperHandle == null)
return;
boolean wasTamed = horse.isTamed();
horse.setTamed(true);
((EntityHorseAbstract) handle).e(equipperHandle);
horse.setTamed(wasTamed);
}
Aggregations