Add disambiguation method for compiling with latest spigot

This commit is contained in:
fullwall 2020-05-08 11:08:47 +08:00
parent cf07a5a379
commit 7c203235c4

View File

@ -1614,6 +1614,10 @@ public class NMSImpl implements NMSBridge {
return ((CraftEntity) entity).getHandle();
}
private static EntityLiving getHandle(Tameable entity) {
return (EntityLiving) NMSImpl.getHandle((org.bukkit.entity.Entity) entity);
}
public static float getHeadYaw(EntityLiving handle) {
return handle.getHeadRotation();
}