From 7d7020275e56634b7fbfa86dde6933d89bbdd84a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 27 Nov 2013 16:55:03 +1300 Subject: [PATCH] Sort the methods --- .../disguise/utilities/ReflectionManager.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index d580e0fc..8892e00e 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -67,6 +67,16 @@ public class ReflectionManager { return null; } + public static Entity getBukkitEntity(Object nmsEntity) { + try { + Entity bukkitEntity = (Entity) ReflectionManager.getNmsClass("Entity").getMethod("getBukkitEntity").invoke(nmsEntity); + return bukkitEntity; + } catch (Exception ex) { + ex.printStackTrace(); + } + return null; + } + public static ItemStack getBukkitItem(Object nmsItem) { try { return (ItemStack) itemClass.getMethod("asBukkitCopy", getNmsClass("ItemStack")).invoke(null, nmsItem); @@ -119,16 +129,6 @@ public class ReflectionManager { return null; } - public static Entity getBukkitEntity(Object nmsEntity) { - try { - Entity bukkitEntity = (Entity) ReflectionManager.getNmsClass("Entity").getMethod("getBukkitEntity").invoke(nmsEntity); - return bukkitEntity; - } catch (Exception ex) { - ex.printStackTrace(); - } - return null; - } - public static Object getNmsEntity(Entity entity) { try { return getCraftClass("entity.CraftEntity").getMethod("getHandle").invoke(entity);