mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
replaced with local variables
This commit is contained in:
1 parent
96a4680d0b
commit
da57cb58db
3 files changed
+3
-4
No files matched your search
@@ -10,7 +10,6 @@ import me.neznamy.tab.shared.ProtocolVersion;
|
||||
*/
|
||||
public class PacketPlayOutAnimation extends PacketPlayOut {
|
||||
|
||||
private static Class<?> PacketPlayOutAnimation;
|
||||
private static Constructor<?> newPacketPlayOutAnimation;
|
||||
private static Field PacketPlayOutAnimation_ENTITYID;
|
||||
private static Field PacketPlayOutAnimation_ANIMATIONTYPE;
|
||||
@@ -19,6 +18,7 @@ public class PacketPlayOutAnimation extends PacketPlayOut {
|
||||
private int animationType;
|
||||
|
||||
public static void initializeClass() throws Exception {
|
||||
Class<?> PacketPlayOutAnimation;
|
||||
try {
|
||||
//1.7+
|
||||
PacketPlayOutAnimation = getNMSClass("PacketPlayOutAnimation");
|
||||
|
||||
@@ -12,7 +12,6 @@ import me.neznamy.tab.shared.ProtocolVersion;
|
||||
*/
|
||||
public class PacketPlayOutEntityTeleport extends PacketPlayOut {
|
||||
|
||||
private static Class<?> PacketPlayOutEntityTeleport;
|
||||
private static Constructor<?> newPacketPlayOutEntityTeleport;
|
||||
private static Field ENTITYID;
|
||||
private static Field X;
|
||||
@@ -25,6 +24,7 @@ public class PacketPlayOutEntityTeleport extends PacketPlayOut {
|
||||
private Location location;
|
||||
|
||||
public static void initializeClass() throws Exception {
|
||||
Class<?> PacketPlayOutEntityTeleport;
|
||||
try {
|
||||
//1.7+
|
||||
PacketPlayOutEntityTeleport = getNMSClass("PacketPlayOutEntityTeleport");
|
||||
|
||||
@@ -8,14 +8,13 @@ import me.neznamy.tab.shared.ProtocolVersion;
|
||||
|
||||
public class DataWatcherItem {
|
||||
|
||||
|
||||
private static Class<?> DataWatcherItem;
|
||||
private static Constructor<?> newDataWatcherItem;
|
||||
|
||||
public DataWatcherObject type;
|
||||
public Object value;
|
||||
|
||||
public static void initializeClass() throws Exception {
|
||||
Class<?> DataWatcherItem;
|
||||
if (ProtocolVersion.SERVER_VERSION.getMinorVersion() >= 9) {
|
||||
//1.9+
|
||||
DataWatcherItem = PacketPlayOut.getNMSClass("DataWatcher$Item");
|
||||
|
||||
Reference in new issue
Block a user