From 85f4bfbdc7050315317d69787b1408e3cd3b94dc Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 19 Nov 2013 05:55:43 +1300 Subject: [PATCH] Updated the packets manager to have a accurate count of direct nms calls --- .../disguise/PacketsManager.java | 24 +++++++++++++++++-- .../disguise/ReflectionManager.java | 4 ---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/me/libraryaddict/disguise/PacketsManager.java b/src/me/libraryaddict/disguise/PacketsManager.java index bc419394..8c44cc21 100644 --- a/src/me/libraryaddict/disguise/PacketsManager.java +++ b/src/me/libraryaddict/disguise/PacketsManager.java @@ -17,13 +17,33 @@ import me.libraryaddict.disguise.disguisetypes.MobDisguise; import me.libraryaddict.disguise.disguisetypes.PlayerDisguise; import me.libraryaddict.disguise.disguisetypes.Values; import me.libraryaddict.disguise.disguisetypes.DisguiseSound.SoundType; -import net.minecraft.server.v1_6_R3.*; +import net.minecraft.server.v1_6_R3.AttributeMapServer; +import net.minecraft.server.v1_6_R3.Block; +import net.minecraft.server.v1_6_R3.EntityHuman; +import net.minecraft.server.v1_6_R3.EntityInsentient; +import net.minecraft.server.v1_6_R3.EntityLiving; +import net.minecraft.server.v1_6_R3.EntityPlayer; +import net.minecraft.server.v1_6_R3.EntityTrackerEntry; +import net.minecraft.server.v1_6_R3.MobEffect; +import net.minecraft.server.v1_6_R3.Packet17EntityLocationAction; +import net.minecraft.server.v1_6_R3.Packet20NamedEntitySpawn; +import net.minecraft.server.v1_6_R3.Packet28EntityVelocity; +import net.minecraft.server.v1_6_R3.Packet35EntityHeadRotation; +import net.minecraft.server.v1_6_R3.Packet39AttachEntity; +import net.minecraft.server.v1_6_R3.Packet40EntityMetadata; +import net.minecraft.server.v1_6_R3.Packet41MobEffect; +import net.minecraft.server.v1_6_R3.Packet44UpdateAttributes; +import net.minecraft.server.v1_6_R3.Packet5EntityEquipment; +import net.minecraft.server.v1_6_R3.World; +import net.minecraft.server.v1_6_R3.WorldServer; import org.bukkit.Art; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; -import org.bukkit.craftbukkit.v1_6_R3.entity.*; +import org.bukkit.craftbukkit.v1_6_R3.entity.CraftEntity; +import org.bukkit.craftbukkit.v1_6_R3.entity.CraftLivingEntity; +import org.bukkit.craftbukkit.v1_6_R3.entity.CraftPlayer; import org.bukkit.entity.Arrow; import org.bukkit.entity.Entity; import org.bukkit.entity.ExperienceOrb; diff --git a/src/me/libraryaddict/disguise/ReflectionManager.java b/src/me/libraryaddict/disguise/ReflectionManager.java index 5c390f02..2bef0118 100644 --- a/src/me/libraryaddict/disguise/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/ReflectionManager.java @@ -3,13 +3,9 @@ package me.libraryaddict.disguise; import java.lang.reflect.Field; import java.lang.reflect.Method; -import net.minecraft.server.v1_6_R3.World; - import org.bukkit.Art; import org.bukkit.Bukkit; -import org.bukkit.Server; import org.bukkit.Sound; -import org.bukkit.craftbukkit.v1_6_R3.CraftWorld; import org.bukkit.inventory.ItemStack; public class ReflectionManager {