commit 8aa2a15c649a859208e77aa885cae82c9abfe3cc Author: nitrogenoliquido <203537016+nitrogenoliquido@users.noreply.github.com> Date: Thu Nov 26 17:50:49 2026 -0500 added files. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba852e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.gradle/ +build/ +out/ +.idea/ +*.iml +.classpath +.project +.settings/ +TEST*.jar +DeobfMe-*.jar diff --git a/README.md b/README.md new file mode 100644 index 0000000..84800a4 --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +

+ Skid Solutions Banner +

+ + Discord + + Version 2.1.1 + Java 17 + Gradle 8.14.3 +

+ +

+ https://discord.gg/skidsolutions +

+ +

+ +

+ +

+ jak + hack + deobf2 + deobf +

+ +

+ This is NOT a recreation nor a remake. +

+ +

+ +

+ +## How to build + +### Prerequisites +- **Java Development Kit**: JDK 17 (the Gradle wrapper 8.14.3 does not run on newer JDKs) + +### Building OpenAAC2 + +Run from this folder: + +```powershell +$env:JAVA_HOME = "C:\Program Files\Java\jdk-17" + +.\gradlew.bat clean prepareIde build +``` + +Generated `build/libs/`: +- `AAC2-2.1.1-java17.jar` +- `AAC2-2.1.1-plain.jar` +- `AAC2-2.1.1-sources.jar` + +### Usage + +Place `build/libs/AAC2-2.1.1-java17.jar` alongside **ProtocolLib** in your Spigot `1.10` server's `plugins/` directory. + +## Credits + +- **konsolas** - Original author of AAC 2.1.1. diff --git a/assets/deobf.jpg b/assets/deobf.jpg new file mode 100644 index 0000000..fa8dbde Binary files /dev/null and b/assets/deobf.jpg differ diff --git a/assets/deobf2.png b/assets/deobf2.png new file mode 100644 index 0000000..1d4014d Binary files /dev/null and b/assets/deobf2.png differ diff --git a/assets/divider.svg b/assets/divider.svg new file mode 100644 index 0000000..f473231 --- /dev/null +++ b/assets/divider.svg @@ -0,0 +1,26 @@ + diff --git a/assets/hack.jpg b/assets/hack.jpg new file mode 100644 index 0000000..c4252ef Binary files /dev/null and b/assets/hack.jpg differ diff --git a/assets/jak.jpg b/assets/jak.jpg new file mode 100644 index 0000000..162bfe5 Binary files /dev/null and b/assets/jak.jpg differ diff --git a/assets/ss.png b/assets/ss.png new file mode 100644 index 0000000..041b33a Binary files /dev/null and b/assets/ss.png differ diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..e5e5d41 --- /dev/null +++ b/build.gradle @@ -0,0 +1,119 @@ +plugins { + id 'java' + id 'idea' + id 'eclipse' + id 'com.gradleup.shadow' version '8.3.8' +} + +group = 'me.konsolas.aac' +version = '2.1.1' + +def javaVersion = 17 + +repositories { + mavenCentral() + maven { url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/') } +} + +configurations { + apiGenerator +} + +def generatorClasses = layout.buildDirectory.dir('api-generator/classes') +tasks.register('compileApiGenerator', JavaCompile) { + source = files('gradle/GenerateCompileApis.java') + classpath = configurations.apiGenerator + destinationDirectory = generatorClasses + javaCompiler = javaToolchains.compilerFor { languageVersion = JavaLanguageVersion.of(javaVersion) } + options.release = javaVersion + options.encoding = 'UTF-8' +} +tasks.register('generateCompileApis', JavaExec) { + group = 'build setup' + description = 'Generates compile-only API headers from text declarations.' + dependsOn tasks.named('compileApiGenerator') + inputs.dir('gradle/api-signatures') + outputs.dir(layout.buildDirectory.dir('compile-apis')) + classpath = files(generatorClasses) + configurations.apiGenerator + javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(javaVersion) } + mainClass = 'GenerateCompileApis' + maxHeapSize = '2g' + args file('gradle/api-signatures').absolutePath, layout.buildDirectory.dir('compile-apis').get().asFile.absolutePath +} +def compileApi = { String name -> + files(layout.buildDirectory.file("compile-apis/${name}.jar")).builtBy(tasks.named('generateCompileApis')) +} +tasks.register('prepareIde') { + group = 'ide' + description = 'Generates the compile-only API headers used by the IDE import.' + dependsOn tasks.named('generateCompileApis') +} + +java { + toolchain.languageVersion = JavaLanguageVersion.of(javaVersion) + withSourcesJar() +} + +dependencies { + apiGenerator 'org.ow2.asm:asm:9.8' + apiGenerator 'com.google.code.gson:gson:2.10.1' + + implementation 'net.jodah:expiringmap:0.5.5' + + compileOnly compileApi('aac2') + compileOnly 'com.google.guava:guava:21.0' + compileOnly 'com.google.code.gson:gson:2.8.9' + compileOnly 'org.yaml:snakeyaml:1.27' + compileOnly 'commons-lang:commons-lang:2.6' + compileOnly 'com.googlecode.json-simple:json-simple:1.1.1' +} + +tasks.withType(JavaCompile).configureEach { + if (name != 'compileApiGenerator') { + dependsOn tasks.named('generateCompileApis') + } + options.release = javaVersion + options.encoding = 'UTF-8' + options.compilerArgs += ['-parameters', '-Xmaxerrs', '1500'] + options.debug = true + options.debugOptions.debugLevel = 'source,lines,vars' +} + +tasks.withType(AbstractArchiveTask).configureEach { + preserveFileTimestamps = false + reproducibleFileOrder = true + filePermissions { unix('0644') } + dirPermissions { unix('0755') } +} + +jar { + archiveClassifier = 'plain' + manifest.attributes('Implementation-Title': 'AAC', 'Implementation-Version': project.version) +} + +shadowJar { + archiveClassifier = 'java17' + relocate 'net.jodah.expiringmap', 'me.konsolas.aac.lib.expiringmap' + minimize() + mergeServiceFiles() + exclude 'META-INF/*.SF', 'META-INF/*.RSA', 'META-INF/*.DSA' + exclude 'META-INF/INDEX.LIST', 'META-INF/maven/**' + exclude 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE', 'META-INF/NOTICE.txt' + manifest.attributes('Implementation-Title': 'AAC', 'Implementation-Version': project.version) +} + +assemble.dependsOn shadowJar + +idea { + module { + downloadSources = true + downloadJavadoc = true + } +} + +eclipse { + classpath { + downloadSources = true + downloadJavadoc = true + } +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..3e74a9d --- /dev/null +++ b/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8 +org.gradle.workers.max=2 +org.gradle.parallel=false diff --git a/gradle/GenerateCompileApis.java b/gradle/GenerateCompileApis.java new file mode 100644 index 0000000..184fb62 --- /dev/null +++ b/gradle/GenerateCompileApis.java @@ -0,0 +1,66 @@ +import com.google.gson.*; +import org.objectweb.asm.*; +import java.io.*; +import java.nio.file.*; +import java.util.*; +import java.util.jar.*; + +public final class GenerateCompileApis implements Opcodes { + static String text(JsonObject o,String k){return o.has(k)&&!o.get(k).isJsonNull()?o.get(k).getAsString():null;} + static int number(JsonObject o,String k){return o.get(k).getAsInt();} + static JsonArray array(JsonObject o,String k){return o.has(k)?o.getAsJsonArray(k):new JsonArray();} + static String[] strings(JsonObject o,String k){List r=new ArrayList<>();for(JsonElement e:array(o,k))r.add(e.getAsString());return r.toArray(new String[0]);} + static Object scalar(JsonObject o){String v=text(o,"value");return switch(text(o,"type")){ + case "Long"->Long.valueOf(v);case "Integer"->Integer.valueOf(v);case "Float"->Float.valueOf(v);case "Double"->Double.valueOf(v);case "Byte"->Byte.valueOf(v);case "Short"->Short.valueOf(v);case "Character"->v.charAt(0);default->throw new IllegalArgumentException(o.toString());};} + static Object constant(JsonElement e){if(e==null||e.isJsonNull())return null;if(e.isJsonObject())return scalar(e.getAsJsonObject());return e.getAsString();} + static void annotationValue(AnnotationVisitor visitor,String name,JsonElement value){ + if(value.isJsonArray()){AnnotationVisitor nested=visitor.visitArray(name);for(JsonElement e:value.getAsJsonArray())annotationValue(nested,null,e);nested.visitEnd();} + else if(value.isJsonObject()){JsonObject o=value.getAsJsonObject();switch(text(o,"kind")){ + case "scalar"->visitor.visit(name,scalar(o));case "type"->visitor.visit(name,Type.getType(text(o,"descriptor"))); + case "enum"->visitor.visitEnum(name,text(o,"descriptor"),text(o,"name")); + case "annotation"->{JsonObject a=o.getAsJsonObject("annotation");writeAnnotation(visitor.visitAnnotation(name,text(a,"descriptor")),a);} + default->throw new IllegalArgumentException(o.toString());}} + else if(value.getAsJsonPrimitive().isBoolean())visitor.visit(name,value.getAsBoolean()); + else visitor.visit(name,value.getAsString()); + } + static void writeAnnotation(AnnotationVisitor visitor,JsonObject annotation){if(visitor==null)return;for(var e:annotation.getAsJsonObject("values").entrySet())annotationValue(visitor,e.getKey(),e.getValue());visitor.visitEnd();} + interface Factory {AnnotationVisitor create(JsonObject annotation);} + static void annotations(JsonObject o,String key,Factory factory){for(JsonElement a:array(o,key)){JsonObject obj=a.getAsJsonObject();writeAnnotation(factory.create(obj),obj);}} + static TypePath path(JsonObject o){return TypePath.fromString(text(o,"typePath"));} + static byte[] compile(JsonObject c){ + ClassWriter cw=new ClassWriter(0);cw.visit(number(c,"version"),number(c,"access"),text(c,"name"),text(c,"signature"),text(c,"superName"),strings(c,"interfaces")); + if(c.has("outerClass"))cw.visitOuterClass(text(c,"outerClass"),text(c,"outerMethod"),text(c,"outerMethodDescriptor")); + if(c.has("nestHostClass"))cw.visitNestHost(text(c,"nestHostClass")); + for(String n:strings(c,"nestMembers"))cw.visitNestMember(n);for(String n:strings(c,"permittedSubclasses"))cw.visitPermittedSubclass(n); + annotations(c,"annotations",a->cw.visitAnnotation(text(a,"descriptor"),a.get("visible").getAsBoolean())); + annotations(c,"typeAnnotations",a->cw.visitTypeAnnotation(number(a,"typeRef"),path(a),text(a,"descriptor"),a.get("visible").getAsBoolean())); + for(JsonElement el:array(c,"innerClasses")){var n=el.getAsJsonObject();cw.visitInnerClass(text(n,"name"),text(n,"outerName"),text(n,"innerName"),number(n,"access"));} + for(JsonElement el:array(c,"recordComponents")){var r=el.getAsJsonObject();var rv=cw.visitRecordComponent(text(r,"name"),text(r,"descriptor"),text(r,"signature"));annotations(r,"annotations",a->rv.visitAnnotation(text(a,"descriptor"),a.get("visible").getAsBoolean()));annotations(r,"typeAnnotations",a->rv.visitTypeAnnotation(number(a,"typeRef"),path(a),text(a,"descriptor"),a.get("visible").getAsBoolean()));rv.visitEnd();} + for(JsonElement el:array(c,"fields")){var f=el.getAsJsonObject();var fv=cw.visitField(number(f,"access"),text(f,"name"),text(f,"descriptor"),text(f,"signature"),constant(f.get("constant")));annotations(f,"annotations",a->fv.visitAnnotation(text(a,"descriptor"),a.get("visible").getAsBoolean()));annotations(f,"typeAnnotations",a->fv.visitTypeAnnotation(number(a,"typeRef"),path(a),text(a,"descriptor"),a.get("visible").getAsBoolean()));fv.visitEnd();} + for(JsonElement el:array(c,"methods")){var m=el.getAsJsonObject();int access=number(m,"access");String descriptor=text(m,"descriptor");var mv=cw.visitMethod(access,text(m,"name"),descriptor,text(m,"signature"),strings(m,"exceptions")); + for(JsonElement pe:array(m,"parameters")){var p=pe.getAsJsonObject();mv.visitParameter(text(p,"name"),number(p,"access"));} + annotations(m,"annotations",a->mv.visitAnnotation(text(a,"descriptor"),a.get("visible").getAsBoolean()));annotations(m,"typeAnnotations",a->mv.visitTypeAnnotation(number(a,"typeRef"),path(a),text(a,"descriptor"),a.get("visible").getAsBoolean())); + annotations(m,"parameterAnnotations",a->mv.visitParameterAnnotation(number(a,"parameter"),text(a,"descriptor"),a.get("visible").getAsBoolean())); + if(m.has("annotationDefault")){var av=mv.visitAnnotationDefault();annotationValue(av,null,m.get("annotationDefault"));av.visitEnd();} + if((access&(ACC_ABSTRACT|ACC_NATIVE))==0){mv.visitCode();mv.visitTypeInsn(NEW,"java/lang/UnsupportedOperationException");mv.visitInsn(DUP);mv.visitLdcInsn("Compile-only API header; use the real server or library at runtime");mv.visitMethodInsn(INVOKESPECIAL,"java/lang/UnsupportedOperationException","","(Ljava/lang/String;)V",false);mv.visitInsn(ATHROW);int locals=(access&ACC_STATIC)==0?1:0;for(Type t:Type.getArgumentTypes(descriptor))locals+=t.getSize();mv.visitMaxs(3,locals);} + mv.visitEnd();} + cw.visitEnd();return cw.toByteArray(); + } + static SortedMap declarations(Path input,Path schema,Set active)throws Exception { + if(!active.add(schema))throw new IllegalArgumentException("Cyclic API declaration inheritance: "+schema); + JsonObject data;try(Reader r=Files.newBufferedReader(schema)){data=JsonParser.parseReader(r).getAsJsonObject();} + SortedMap classes=new TreeMap<>(); + if(data.has("base"))classes.putAll(declarations(input,input.resolve(text(data,"base")+".json"),active)); + for(JsonElement entry:array(data,"classes")){JsonObject c=entry.getAsJsonObject();classes.put(text(c,"name"),c);} + active.remove(schema);return classes; + } + public static void main(String[] args)throws Exception{ + Path input=Path.of(args[0]),output=Path.of(args[1]);Files.createDirectories(output); + for(Path schema:Files.list(input).filter(p->p.toString().endsWith(".json")).sorted().toList()){ + SortedMap classes=declarations(input,schema,new HashSet<>()); + String name=schema.getFileName().toString().replace(".json",".jar");Path jar=output.resolve(name); + try(var out=new JarOutputStream(Files.newOutputStream(jar))){for(JsonObject c:classes.values()){var entry=new JarEntry(text(c,"name")+".class");entry.setTime(0);out.putNextEntry(entry);out.write(compile(c));out.closeEntry();}} + System.out.println("Generated compile API "+name+" ("+classes.size()+" declarations)"); + } + } +} diff --git a/gradle/api-signatures/aac2.json b/gradle/api-signatures/aac2.json new file mode 100644 index 0000000..d3e0481 --- /dev/null +++ b/gradle/api-signatures/aac2.json @@ -0,0 +1 @@ +{"classes":[{"name":"com/comphenix/protocol/AsynchronousManager","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"registerAsyncHandler","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)Lcom/comphenix/protocol/async/AsyncListenerHandler;"},{"name":"unregisterAsyncHandler","access":1025,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)V"},{"name":"unregisterAsyncHandler","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"unregisterAsyncHandlers","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"getSendingFilters","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getSendingTypes","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getReceivingFilters","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getReceivingTypes","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"hasAsynchronousListeners","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)Z"},{"name":"getPacketStream","access":1025,"descriptor":"()Lcom/comphenix/protocol/PacketStream;"},{"name":"getErrorReporter","access":1025,"descriptor":"()Lcom/comphenix/protocol/error/ErrorReporter;"},{"name":"cleanupAll","access":1025,"descriptor":"()V"},{"name":"signalPacketTransmission","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"registerTimeoutHandler","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"unregisterTimeoutHandler","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"getTimeoutHandlers","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getAsyncHandlers","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"}]},{"name":"com/comphenix/protocol/PacketStream","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"sendServerPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"sendServerPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Z)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"sendServerPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Z)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"sendWirePacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;I[B)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"sendWirePacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/injector/netty/WirePacket;)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"recieveClientPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;)V","exceptions":["java/lang/IllegalAccessException","java/lang/reflect/InvocationTargetException"]},{"name":"recieveClientPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Z)V","exceptions":["java/lang/IllegalAccessException","java/lang/reflect/InvocationTargetException"]},{"name":"recieveClientPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Z)V","exceptions":["java/lang/IllegalAccessException","java/lang/reflect/InvocationTargetException"]}]},{"name":"com/comphenix/protocol/PacketType","version":52,"access":33,"signature":"Ljava/lang/Object;Ljava/io/Serializable;Ljava/lang/Cloneable;Ljava/lang/Comparable;","superName":"java/lang/Object","interfaces":["java/io/Serializable","java/lang/Cloneable","java/lang/Comparable"],"innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409},{"name":"com/comphenix/protocol/PacketType$Legacy","outerName":"com/comphenix/protocol/PacketType","innerName":"Legacy","access":9},{"name":"com/comphenix/protocol/PacketType$Login","outerName":"com/comphenix/protocol/PacketType","innerName":"Login","access":9},{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Handshake","outerName":"com/comphenix/protocol/PacketType","innerName":"Handshake","access":9},{"name":"com/comphenix/protocol/PacketTypeLookup$ClassLookup","outerName":"com/comphenix/protocol/PacketTypeLookup","innerName":"ClassLookup","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9}],"fields":[{"name":"UNKNOWN_PACKET","access":25,"descriptor":"I","constant":{"type":"Integer","value":"-1"}}],"methods":[{"name":"values","access":9,"descriptor":"()Ljava/lang/Iterable;","signature":"()Ljava/lang/Iterable;"},{"name":"findLegacy","access":131081,"descriptor":"(I)Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"findLegacy","access":131081,"descriptor":"(ILcom/comphenix/protocol/PacketType$Sender;)Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hasLegacy","access":131081,"descriptor":"(I)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"findCurrent","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;I)Lcom/comphenix/protocol/PacketType;"},{"name":"findCurrent","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;Ljava/lang/String;)Lcom/comphenix/protocol/PacketType;"},{"name":"hasCurrent","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;I)Z"},{"name":"fromLegacy","access":131081,"descriptor":"(ILcom/comphenix/protocol/PacketType$Sender;)Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromID","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;ILjava/lang/Class;)Lcom/comphenix/protocol/PacketType;","signature":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;ILjava/lang/Class<*>;)Lcom/comphenix/protocol/PacketType;"},{"name":"fromCurrent","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;ILjava/lang/Class;)Lcom/comphenix/protocol/PacketType;","signature":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;ILjava/lang/Class<*>;)Lcom/comphenix/protocol/PacketType;"},{"name":"fromClass","access":9,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/PacketType;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/PacketType;"},{"name":"fromName","access":9,"descriptor":"(Ljava/lang/String;)Ljava/util/Collection;","signature":"(Ljava/lang/String;)Ljava/util/Collection;"},{"name":"hasClass","access":9,"descriptor":"(Ljava/lang/Class;)Z","signature":"(Ljava/lang/Class<*>;)Z"},{"name":"scheduleRegister","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/String;)Ljava/util/concurrent/Future;","signature":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/String;)Ljava/util/concurrent/Future;"},{"name":"getObjectEnum","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/PacketTypeEnum;"},{"name":"","access":129,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;II[Ljava/lang/String;)V"},{"name":"","access":129,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;IILcom/comphenix/protocol/utility/MinecraftVersion;[Ljava/lang/String;)V"},{"name":"newLegacy","access":9,"descriptor":"(Lcom/comphenix/protocol/PacketType$Sender;I)Lcom/comphenix/protocol/PacketType;"},{"name":"isSupported","access":1,"descriptor":"()Z"},{"name":"getProtocol","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"getSender","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"isClient","access":1,"descriptor":"()Z"},{"name":"isServer","access":1,"descriptor":"()Z"},{"name":"getCurrentId","access":1,"descriptor":"()I"},{"name":"getClassNames","access":1,"descriptor":"()[Ljava/lang/String;"},{"name":"getPacketClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"setName","access":0,"descriptor":"(Ljava/lang/String;)V"},{"name":"name","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setDeprecated","access":0,"descriptor":"()V"},{"name":"isDeprecated","access":1,"descriptor":"()Z"},{"name":"forceAsync","access":0,"descriptor":"()V"},{"name":"isAsyncForced","access":1,"descriptor":"()Z"},{"name":"getCurrentVersion","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"getLegacyId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isDynamic","access":1,"descriptor":"()Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;)I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"clone","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType;"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"},{"name":"access$400","access":4104,"descriptor":"()Lcom/comphenix/protocol/PacketTypeLookup;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Handshake","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Handshake","outerName":"com/comphenix/protocol/PacketType","innerName":"Handshake","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getProtocol","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"access$000","access":4104,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Legacy","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Legacy","outerName":"com/comphenix/protocol/PacketType","innerName":"Legacy","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getProtocol","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Login","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Login","outerName":"com/comphenix/protocol/PacketType","innerName":"Login","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getProtocol","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"access$300","access":4104,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Play","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getProtocol","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"access$100","access":4104,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Play$Client","version":52,"access":33,"superName":"com/comphenix/protocol/PacketTypeEnum","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"fields":[{"name":"TELEPORT_ACCEPT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TILE_NBT_QUERY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CHAT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CLIENT_COMMAND","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SETTINGS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TAB_COMPLETE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TRANSACTION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENCHANT_ITEM","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WINDOW_CLICK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CLOSE_WINDOW","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CUSTOM_PAYLOAD","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BOOK_EDIT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_NBT_QUERY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"USE_ENTITY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"KEEP_ALIVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"FLYING","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"POSITION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"POSITION_LOOK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"LOOK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"VEHICLE_MOVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BOAT_MOVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"PICK_ITEM","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"AUTO_RECIPE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ABILITIES","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BLOCK_DIG","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_ACTION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"STEER_VEHICLE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RECIPE_DISPLAYED","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ITEM_NAME","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RESOURCE_PACK_STATUS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ADVANCEMENTS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TRADE_SELECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BEACON","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"HELD_ITEM_SLOT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SET_COMMAND_BLOCK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SET_COMMAND_MINECART","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SET_CREATIVE_SLOT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"STRUCTURE_BLOCK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"UPDATE_SIGN","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ARM_ANIMATION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPECTATE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"USE_ITEM","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BLOCK_PLACE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"}],"methods":[{"name":"getSender","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"getInstance","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Play$Client;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Play$Server","version":52,"access":33,"superName":"com/comphenix/protocol/PacketTypeEnum","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"fields":[{"name":"SPAWN_ENTITY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPAWN_ENTITY_EXPERIENCE_ORB","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPAWN_ENTITY_WEATHER","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPAWN_ENTITY_LIVING","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPAWN_ENTITY_PAINTING","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"NAMED_ENTITY_SPAWN","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ANIMATION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"STATISTIC","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BLOCK_BREAK_ANIMATION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TILE_ENTITY_DATA","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BLOCK_ACTION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BLOCK_CHANGE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BOSS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SERVER_DIFFICULTY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CHAT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"MULTI_BLOCK_CHANGE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TAB_COMPLETE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"COMMANDS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TRANSACTION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CLOSE_WINDOW","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"OPEN_WINDOW","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WINDOW_ITEMS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WINDOW_DATA","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SET_SLOT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SET_COOLDOWN","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CUSTOM_PAYLOAD","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CUSTOM_SOUND_EFFECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"KICK_DISCONNECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_STATUS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"NBT_QUERY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"EXPLOSION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"UNLOAD_CHUNK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"GAME_STATE_CHANGE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"KEEP_ALIVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"MAP_CHUNK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WORLD_EVENT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WORLD_PARTICLES","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"LOGIN","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"MAP","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"REL_ENTITY_MOVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"REL_ENTITY_MOVE_LOOK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_LOOK","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"VEHICLE_MOVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"OPEN_SIGN_EDITOR","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"AUTO_RECIPE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ABILITIES","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"COMBAT_EVENT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"PLAYER_INFO","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"LOOK_AT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"POSITION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"BED","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RECIPES","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_DESTROY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"REMOVE_ENTITY_EFFECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RESOURCE_PACK_SEND","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RESPAWN","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_HEAD_ROTATION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SELECT_ADVANCEMENT_TAB","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"WORLD_BORDER","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"CAMERA","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"HELD_ITEM_SLOT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SCOREBOARD_DISPLAY_OBJECTIVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_METADATA","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ATTACH_ENTITY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_VELOCITY","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_EQUIPMENT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"EXPERIENCE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"UPDATE_HEALTH","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SCOREBOARD_OBJECTIVE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"MOUNT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SCOREBOARD_TEAM","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SCOREBOARD_SCORE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"SPAWN_POSITION","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"UPDATE_TIME","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TITLE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"STOP_SOUND","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"NAMED_SOUND_EFFECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"PLAYER_LIST_HEADER_FOOTER","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"COLLECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_TELEPORT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ADVANCEMENTS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"UPDATE_ATTRIBUTES","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"ENTITY_EFFECT","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"RECIPE_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"TAGS","access":25,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"MAP_CHUNK_BULK","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SET_COMPRESSION","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"UPDATE_ENTITY_NBT","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"CRAFT_PROGRESS_BAR","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"ENTITY_MOVE_LOOK","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"STATISTICS","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"OPEN_SIGN_ENTITY","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"UPDATE_SIGN","access":131097,"descriptor":"Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}],"methods":[{"name":"getSender","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"getInstance","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Play$Server;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Protocol","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"fields":[{"name":"HANDSHAKING","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"PLAY","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"STATUS","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"LOGIN","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"LEGACY","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Protocol;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"fromVanilla","access":9,"descriptor":"(Ljava/lang/Enum;)Lcom/comphenix/protocol/PacketType$Protocol;","signature":"(Ljava/lang/Enum<*>;)Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"getPacketName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Sender","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409}],"fields":[{"name":"CLIENT","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"SERVER","access":16409,"descriptor":"Lcom/comphenix/protocol/PacketType$Sender;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"toSide","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"getPacketName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketType$Status","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getProtocol","access":9,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"access$200","access":4104,"descriptor":"()Lcom/comphenix/protocol/PacketType$Protocol;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/PacketTypeEnum","version":52,"access":33,"signature":"Ljava/lang/Object;Ljava/lang/Iterable;","superName":"java/lang/Object","interfaces":["java/lang/Iterable"],"fields":[{"name":"members","access":4,"descriptor":"Ljava/util/Set;","signature":"Ljava/util/Set;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"registerAll","access":4,"descriptor":"()V"},{"name":"registerMember","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/String;)Z"},{"name":"hasMember","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;)Z"},{"name":"valueOf","access":131073,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"iterator","access":1,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"}]},{"name":"com/comphenix/protocol/PacketTypeLookup","version":52,"access":32,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketTypeLookup$ClassLookup","outerName":"com/comphenix/protocol/PacketTypeLookup","innerName":"ClassLookup","access":9},{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409}],"methods":[{"name":"","access":0,"descriptor":"()V"},{"name":"addPacketTypes","access":1,"descriptor":"(Ljava/lang/Iterable;)Lcom/comphenix/protocol/PacketTypeLookup;","signature":"(Ljava/lang/Iterable<+Lcom/comphenix/protocol/PacketType;>;)Lcom/comphenix/protocol/PacketTypeLookup;"},{"name":"getFromLegacy","access":1,"descriptor":"(I)Lcom/comphenix/protocol/PacketType;"},{"name":"getFromName","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/Collection;","signature":"(Ljava/lang/String;)Ljava/util/Collection;"},{"name":"getFromLegacy","access":1,"descriptor":"(ILcom/comphenix/protocol/PacketType$Sender;)Lcom/comphenix/protocol/PacketType;"},{"name":"getFromCurrent","access":131073,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;I)Lcom/comphenix/protocol/PacketType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getFromCurrent","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;Ljava/lang/String;)Lcom/comphenix/protocol/PacketType;"},{"name":"getClassLookup","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketTypeLookup$ClassLookup;"}]},{"name":"com/comphenix/protocol/PacketTypeLookup$ClassLookup","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketTypeLookup$ClassLookup","outerName":"com/comphenix/protocol/PacketTypeLookup","innerName":"ClassLookup","access":9},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409},{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409}],"fields":[{"name":"HANDSHAKE_CLIENT","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"HANDSHAKE_SERVER","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"GAME_CLIENT","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"GAME_SERVER","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"STATUS_CLIENT","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"STATUS_SERVER","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"LOGIN_CLIENT","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"LOGIN_SERVER","access":17,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getMap","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;)Ljava/util/Map;","signature":"(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;)Ljava/util/Map;"}]},{"name":"com/comphenix/protocol/ProtocolConfig","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"reloadConfig","access":1,"descriptor":"()V"},{"name":"getFile","access":1,"descriptor":"()Ljava/io/File;"},{"name":"isDetailedErrorReporting","access":1,"descriptor":"()Z"},{"name":"setDetailedErrorReporting","access":1,"descriptor":"(Z)V"},{"name":"isAutoNotify","access":1,"descriptor":"()Z"},{"name":"setAutoNotify","access":1,"descriptor":"(Z)V"},{"name":"isAutoDownload","access":1,"descriptor":"()Z"},{"name":"setAutoDownload","access":1,"descriptor":"(Z)V"},{"name":"isDebug","access":1,"descriptor":"()Z"},{"name":"setDebug","access":1,"descriptor":"(Z)V"},{"name":"getSuppressedReports","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;"},{"name":"setSuppressedReports","access":1,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"getAutoDelay","access":1,"descriptor":"()J"},{"name":"setAutoDelay","access":1,"descriptor":"(J)V"},{"name":"getIgnoreVersionCheck","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setIgnoreVersionCheck","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"isMetricsEnabled","access":1,"descriptor":"()Z"},{"name":"setMetricsEnabled","access":1,"descriptor":"(Z)V"},{"name":"isBackgroundCompilerEnabled","access":1,"descriptor":"()Z"},{"name":"setBackgroundCompilerEnabled","access":1,"descriptor":"(Z)V"},{"name":"getAutoLastTime","access":1,"descriptor":"()J"},{"name":"setAutoLastTime","access":1,"descriptor":"(J)V"},{"name":"getScriptEngineName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setScriptEngineName","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getDefaultMethod","access":1,"descriptor":"()Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"getInjectionMethod","access":1,"descriptor":"()Lcom/comphenix/protocol/injector/PlayerInjectHooks;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"setInjectionMethod","access":1,"descriptor":"(Lcom/comphenix/protocol/injector/PlayerInjectHooks;)V"},{"name":"getModificationCount","access":1,"descriptor":"()I"},{"name":"saveAll","access":1,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/ProtocolLibrary","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"MINIMUM_MINECRAFT_VERSION","access":25,"descriptor":"Ljava/lang/String;","constant":"1.8"},{"name":"MAXIMUM_MINECRAFT_VERSION","access":25,"descriptor":"Ljava/lang/String;","constant":"1.13.1"},{"name":"MINECRAFT_LAST_RELEASE_DATE","access":25,"descriptor":"Ljava/lang/String;","constant":"2018-08-22"},{"name":"INCOMPATIBLE","access":25,"descriptor":"Ljava/util/List;","signature":"Ljava/util/List;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"init","access":12,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/ProtocolConfig;Lcom/comphenix/protocol/ProtocolManager;Lcom/comphenix/protocol/error/ErrorReporter;Lcom/google/common/util/concurrent/ListeningScheduledExecutorService;Lcom/google/common/util/concurrent/ListeningScheduledExecutorService;)V"},{"name":"getPlugin","access":9,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getConfig","access":9,"descriptor":"()Lcom/comphenix/protocol/ProtocolConfig;"},{"name":"getProtocolManager","access":9,"descriptor":"()Lcom/comphenix/protocol/ProtocolManager;"},{"name":"getErrorReporter","access":9,"descriptor":"()Lcom/comphenix/protocol/error/ErrorReporter;"},{"name":"getExecutorAsync","access":9,"descriptor":"()Lcom/google/common/util/concurrent/ListeningScheduledExecutorService;"},{"name":"getExecutorSync","access":9,"descriptor":"()Lcom/google/common/util/concurrent/ListeningScheduledExecutorService;"},{"name":"disableUpdates","access":9,"descriptor":"()V"},{"name":"updatesDisabled","access":9,"descriptor":"()Z"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/ProtocolManager","version":52,"access":1537,"superName":"java/lang/Object","interfaces":["com/comphenix/protocol/PacketStream"],"methods":[{"name":"getProtocolVersion","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;)I"},{"name":"sendServerPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Z)V","exceptions":["java/lang/reflect/InvocationTargetException"]},{"name":"recieveClientPacket","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Lcom/comphenix/protocol/events/PacketContainer;Z)V","exceptions":["java/lang/IllegalAccessException","java/lang/reflect/InvocationTargetException"]},{"name":"broadcastServerPacket","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)V"},{"name":"broadcastServerPacket","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Entity;Z)V"},{"name":"broadcastServerPacket","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/Location;I)V"},{"name":"getPacketListeners","access":1025,"descriptor":"()Lcom/google/common/collect/ImmutableSet;","signature":"()Lcom/google/common/collect/ImmutableSet;"},{"name":"addPacketListener","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"removePacketListener","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"removePacketListeners","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"createPacket","access":132097,"descriptor":"(I)Lcom/comphenix/protocol/events/PacketContainer;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"createPacket","access":1025,"descriptor":"(Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"createPacket","access":132097,"descriptor":"(IZ)Lcom/comphenix/protocol/events/PacketContainer;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"createPacket","access":1025,"descriptor":"(Lcom/comphenix/protocol/PacketType;Z)Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"createPacketConstructor","access":132225,"descriptor":"(I[Ljava/lang/Object;)Lcom/comphenix/protocol/injector/PacketConstructor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"createPacketConstructor","access":1153,"descriptor":"(Lcom/comphenix/protocol/PacketType;[Ljava/lang/Object;)Lcom/comphenix/protocol/injector/PacketConstructor;"},{"name":"updateEntity","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;Ljava/util/List;)V","signature":"(Lorg/bukkit/entity/Entity;Ljava/util/List;)V","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"getEntityFromID","access":1025,"descriptor":"(Lorg/bukkit/World;I)Lorg/bukkit/entity/Entity;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"getEntityTrackers","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Ljava/util/List;","signature":"(Lorg/bukkit/entity/Entity;)Ljava/util/List;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"getSendingFilters","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getSendingFilterTypes","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getReceivingFilters","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getReceivingFilterTypes","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getMinecraftVersion","access":1025,"descriptor":"()Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"isClosed","access":1025,"descriptor":"()Z"},{"name":"getAsynchronousManager","access":1025,"descriptor":"()Lcom/comphenix/protocol/AsynchronousManager;"},{"name":"verifyWhitelist","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;Lcom/comphenix/protocol/events/ListeningWhitelist;)V"}]},{"name":"com/comphenix/protocol/async/AsyncListenerHandler","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/timing/TimedListenerManager$ListenerType","outerName":"com/comphenix/protocol/timing/TimedListenerManager","innerName":"ListenerType","access":16409}],"fields":[{"name":"REPORT_HANDLER_NOT_STARTED","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"}],"methods":[{"name":"","access":0,"descriptor":"(Ljava/lang/Thread;Lcom/comphenix/protocol/async/AsyncFilterManager;Lcom/comphenix/protocol/events/PacketListener;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"getAsyncListener","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketListener;"},{"name":"setNullPacketListener","access":0,"descriptor":"(Lcom/comphenix/protocol/async/NullPacketListener;)V"},{"name":"getNullPacketListener","access":0,"descriptor":"()Lcom/comphenix/protocol/events/PacketListener;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"cancel","access":1,"descriptor":"()V"},{"name":"enqueuePacket","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"getListenerLoop","access":1,"descriptor":"()Lcom/comphenix/protocol/async/AsyncRunnable;"},{"name":"start","access":33,"descriptor":"()V"},{"name":"start","access":33,"descriptor":"(Lcom/google/common/base/Function;)V","signature":"(Lcom/google/common/base/Function;)V"},{"name":"getFriendlyWorkerName","access":1,"descriptor":"(I)Ljava/lang/String;"},{"name":"syncStart","access":33,"descriptor":"()Z"},{"name":"syncStart","access":33,"descriptor":"(JLjava/util/concurrent/TimeUnit;)Z"},{"name":"syncStop","access":33,"descriptor":"()Z"},{"name":"start","access":33,"descriptor":"(I)V"},{"name":"stop","access":33,"descriptor":"()V"},{"name":"stop","access":33,"descriptor":"(I)V"},{"name":"setWorkers","access":33,"descriptor":"(I)V"},{"name":"getWorkers","access":33,"descriptor":"()I"},{"name":"access$000","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Lcom/comphenix/protocol/events/PacketListener;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/util/concurrent/atomic/AtomicInteger;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;I)V"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Ljava/lang/Object;"},{"name":"access$400","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Ljava/util/Set;"},{"name":"access$500","access":4104,"descriptor":"()Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"access$600","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Ljava/util/concurrent/ArrayBlockingQueue;"},{"name":"access$700","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Z","exceptions":["java/lang/InterruptedException"]},{"name":"access$800","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)Z"},{"name":"access$900","access":4104,"descriptor":"()Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"access$1000","access":4104,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;ILcom/comphenix/protocol/events/PacketEvent;Ljava/lang/String;)V"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/async/AsyncMarker","version":52,"access":33,"signature":"Ljava/lang/Object;Ljava/io/Serializable;Ljava/lang/Comparable;","superName":"java/lang/Object","interfaces":["java/io/Serializable","java/lang/Comparable"],"innerClasses":[{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9},{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9}],"fields":[{"name":"DEFAULT_TIMEOUT_DELTA","access":25,"descriptor":"I","constant":{"type":"Integer","value":"1800000"}},{"name":"DEFAULT_SENDING_DELTA","access":25,"descriptor":"I","constant":{"type":"Integer","value":"0"}}],"methods":[{"name":"","access":0,"descriptor":"(Lcom/comphenix/protocol/PacketStream;JJJ)V"},{"name":"getInitialTime","access":1,"descriptor":"()J"},{"name":"getTimeout","access":1,"descriptor":"()J"},{"name":"setTimeout","access":1,"descriptor":"(J)V"},{"name":"getOriginalSendingIndex","access":1,"descriptor":"()J"},{"name":"getNewSendingIndex","access":1,"descriptor":"()J"},{"name":"setNewSendingIndex","access":1,"descriptor":"(J)V"},{"name":"getPacketStream","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketStream;"},{"name":"setPacketStream","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketStream;)V"},{"name":"isProcessed","access":1,"descriptor":"()Z"},{"name":"setProcessed","access":0,"descriptor":"(Z)V"},{"name":"incrementProcessingDelay","access":1,"descriptor":"()I"},{"name":"decrementProcessingDelay","access":0,"descriptor":"()I"},{"name":"getProcessingDelay","access":1,"descriptor":"()I"},{"name":"isQueued","access":1,"descriptor":"()Z"},{"name":"getQueuedSendingIndex","access":1,"descriptor":"()J"},{"name":"setQueuedSendingIndex","access":0,"descriptor":"(Ljava/lang/Long;)V"},{"name":"getProcessingLock","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"setProcessingLock","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"isTransmitted","access":1,"descriptor":"()Z"},{"name":"hasExpired","access":1,"descriptor":"()Z"},{"name":"hasExpired","access":1,"descriptor":"(J)Z"},{"name":"isAsyncCancelled","access":1,"descriptor":"()Z"},{"name":"setAsyncCancelled","access":1,"descriptor":"(Z)V"},{"name":"getListenerHandler","access":1,"descriptor":"()Lcom/comphenix/protocol/async/AsyncListenerHandler;"},{"name":"setListenerHandler","access":0,"descriptor":"(Lcom/comphenix/protocol/async/AsyncListenerHandler;)V"},{"name":"getWorkerID","access":1,"descriptor":"()I"},{"name":"setWorkerID","access":0,"descriptor":"(I)V"},{"name":"getListenerTraversal","access":0,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;>;"},{"name":"setListenerTraversal","access":0,"descriptor":"(Ljava/util/Iterator;)V","signature":"(Ljava/util/Iterator;>;)V"},{"name":"sendPacket","access":0,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V","exceptions":["java/io/IOException"]},{"name":"isMinecraftAsync","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)Z","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/async/AsyncMarker;)I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"}]},{"name":"com/comphenix/protocol/async/AsyncRunnable","version":52,"access":1537,"superName":"java/lang/Object","interfaces":["java/lang/Runnable"],"methods":[{"name":"getID","access":1025,"descriptor":"()I"},{"name":"stop","access":1025,"descriptor":"()Z","exceptions":["java/lang/InterruptedException"]},{"name":"isRunning","access":1025,"descriptor":"()Z"},{"name":"isFinished","access":1025,"descriptor":"()Z"}]},{"name":"com/comphenix/protocol/error/ErrorReporter","version":52,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"methods":[{"name":"reportMinimal","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Ljava/lang/Throwable;)V"},{"name":"reportMinimal","access":1153,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V"},{"name":"reportDebug","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report;)V"},{"name":"reportDebug","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report$ReportBuilder;)V"},{"name":"reportWarning","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report;)V"},{"name":"reportWarning","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report$ReportBuilder;)V"},{"name":"reportDetailed","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report;)V"},{"name":"reportDetailed","access":1025,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/Report$ReportBuilder;)V"}]},{"name":"com/comphenix/protocol/error/Report","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"methods":[{"name":"newBuilder","access":9,"descriptor":"(Lcom/comphenix/protocol/error/ReportType;)Lcom/comphenix/protocol/error/Report$ReportBuilder;"},{"name":"","access":4,"descriptor":"(Lcom/comphenix/protocol/error/ReportType;Ljava/lang/Throwable;[Ljava/lang/Object;[Ljava/lang/Object;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":1,"values":{}},{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":2,"values":{}},{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":3,"values":{}}]},{"name":"","access":4,"descriptor":"(Lcom/comphenix/protocol/error/ReportType;Ljava/lang/Throwable;[Ljava/lang/Object;[Ljava/lang/Object;J)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":1,"values":{}},{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":2,"values":{}},{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":3,"values":{}}]},{"name":"getReportMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getMessageParameters","access":1,"descriptor":"()[Ljava/lang/Object;"},{"name":"getCallerParameters","access":1,"descriptor":"()[Ljava/lang/Object;"},{"name":"getType","access":1,"descriptor":"()Lcom/comphenix/protocol/error/ReportType;"},{"name":"getException","access":1,"descriptor":"()Ljava/lang/Throwable;"},{"name":"hasMessageParameters","access":1,"descriptor":"()Z"},{"name":"hasCallerParameters","access":1,"descriptor":"()Z"},{"name":"getRateLimit","access":1,"descriptor":"()J"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"}]},{"name":"com/comphenix/protocol/error/Report$ReportBuilder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"methods":[{"name":"type","access":1,"descriptor":"(Lcom/comphenix/protocol/error/ReportType;)Lcom/comphenix/protocol/error/Report$ReportBuilder;"},{"name":"error","access":1,"descriptor":"(Ljava/lang/Throwable;)Lcom/comphenix/protocol/error/Report$ReportBuilder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":0,"values":{}}]},{"name":"messageParam","access":129,"descriptor":"([Ljava/lang/Object;)Lcom/comphenix/protocol/error/Report$ReportBuilder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":0,"values":{}}]},{"name":"callerParam","access":129,"descriptor":"([Ljava/lang/Object;)Lcom/comphenix/protocol/error/Report$ReportBuilder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":0,"values":{}}]},{"name":"rateLimit","access":1,"descriptor":"(J)Lcom/comphenix/protocol/error/Report$ReportBuilder;"},{"name":"rateLimit","access":1,"descriptor":"(JLjava/util/concurrent/TimeUnit;)Lcom/comphenix/protocol/error/Report$ReportBuilder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/error/Report;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/error/Report$1;)V"}]},{"name":"com/comphenix/protocol/error/ReportType","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9}],"fields":[{"name":"reportName","access":4,"descriptor":"Ljava/lang/String;"}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getMessage","access":1,"descriptor":"([Ljava/lang/Object;)Ljava/lang/String;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getSenderClass","access":9,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Class;","signature":"(Ljava/lang/Object;)Ljava/lang/Class<*>;"},{"name":"getReportName","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/error/ReportType;)Ljava/lang/String;"},{"name":"getReports","access":9,"descriptor":"(Ljava/lang/Class;)[Lcom/comphenix/protocol/error/ReportType;","signature":"(Ljava/lang/Class<*>;)[Lcom/comphenix/protocol/error/ReportType;"}]},{"name":"com/comphenix/protocol/events/ConnectionSide","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409}],"fields":[{"name":"SERVER_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"CLIENT_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"BOTH","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ConnectionSide;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"isForClient","access":1,"descriptor":"()Z"},{"name":"isForServer","access":1,"descriptor":"()Z"},{"name":"getSender","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"add","access":9,"descriptor":"(Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ConnectionSide;)Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/ListenerOptions","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"INTERCEPT_INPUT_BUFFER","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"DISABLE_GAMEPHASE_DETECTION","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"SKIP_PLUGIN_VERIFIER","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"ASYNC","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerOptions;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/ListenerPriority","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LOWEST","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"LOW","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"NORMAL","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"HIGH","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"HIGHEST","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"MONITOR","access":16409,"descriptor":"Lcom/comphenix/protocol/events/ListenerPriority;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"getSlot","access":1,"descriptor":"()I"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/ListeningWhitelist","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/events/ListeningWhitelist$Builder","outerName":"com/comphenix/protocol/events/ListeningWhitelist","innerName":"Builder","access":9}],"fields":[{"name":"EMPTY_WHITELIST","access":25,"descriptor":"Lcom/comphenix/protocol/events/ListeningWhitelist;"}],"methods":[{"name":"","access":131073,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;)V","signature":"(Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;Lcom/comphenix/protocol/injector/GamePhase;)V","signature":"(Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;Lcom/comphenix/protocol/injector/GamePhase;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;[Ljava/lang/Integer;Lcom/comphenix/protocol/injector/GamePhase;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;[Ljava/lang/Integer;Lcom/comphenix/protocol/injector/GamePhase;[Lcom/comphenix/protocol/events/ListenerOptions;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isEnabled","access":1,"descriptor":"()Z"},{"name":"getPriority","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"getWhitelist","access":131073,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getTypes","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getGamePhase","access":1,"descriptor":"()Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"getOptions","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"containsAny","access":137,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist;[I)Z"},{"name":"isEmpty","access":9,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist;)Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"newBuilder","access":9,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"access$500","access":4104,"descriptor":"(Ljava/util/Collection;)Ljava/util/Set;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;Lcom/comphenix/protocol/events/ListeningWhitelist$1;)V"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/ListeningWhitelist$Builder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/events/ListeningWhitelist$Builder","outerName":"com/comphenix/protocol/events/ListeningWhitelist","innerName":"Builder","access":9}],"methods":[{"name":"priority","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"monitor","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"normal","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"lowest","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"low","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"highest","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"high","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"whitelist","access":131073,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"types","access":129,"descriptor":"([Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"types","access":1,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"gamePhase","access":1,"descriptor":"(Lcom/comphenix/protocol/injector/GamePhase;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"gamePhaseBoth","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"options","access":1,"descriptor":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","signature":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"options","access":1,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"options","access":1,"descriptor":"([Lcom/comphenix/protocol/events/ListenerOptions;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"mergeOptions","access":129,"descriptor":"([Lcom/comphenix/protocol/events/ListenerOptions;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"mergeOptions","access":1,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"access$000","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;)Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"access$100","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;)Ljava/util/Set;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;)Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist$Builder;)Ljava/util/Set;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/events/ListeningWhitelist;Lcom/comphenix/protocol/events/ListeningWhitelist$1;)V"}]},{"name":"com/comphenix/protocol/events/NetworkMarker","version":52,"access":1057,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ConnectionSide;Ljava/nio/ByteBuffer;Lcom/comphenix/protocol/PacketType;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ConnectionSide;[BLcom/comphenix/protocol/PacketType;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getSide","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"getSerializer","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/StreamSerializer;"},{"name":"getInputBuffer","access":1,"descriptor":"()Ljava/nio/ByteBuffer;"},{"name":"getInputBuffer","access":1,"descriptor":"(Z)Ljava/nio/ByteBuffer;"},{"name":"getInputStream","access":1,"descriptor":"()Ljava/io/DataInputStream;"},{"name":"getInputStream","access":1,"descriptor":"(Z)Ljava/io/DataInputStream;"},{"name":"requireOutputHeader","access":1,"descriptor":"()Z"},{"name":"addOutputHandler","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketOutputHandler;)Z","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"removeOutputHandler","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketOutputHandler;)Z","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getOutputHandlers","access":1,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"addPostListener","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketPostListener;)Z"},{"name":"removePostListener","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketPostListener;)Z"},{"name":"getPostListeners","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getScheduledPackets","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"skipHeader","access":4,"descriptor":"(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;","exceptions":["java/io/IOException"]},{"name":"skipHeader","access":1028,"descriptor":"(Ljava/io/DataInputStream;)Ljava/io/DataInputStream;","exceptions":["java/io/IOException"]},{"name":"addHeader","access":1028,"descriptor":"(Ljava/nio/ByteBuffer;Lcom/comphenix/protocol/PacketType;)Ljava/nio/ByteBuffer;"},{"name":"addHeader","access":1028,"descriptor":"(Ljava/io/DataInputStream;Lcom/comphenix/protocol/PacketType;)Ljava/io/DataInputStream;"},{"name":"hasOutputHandlers","access":9,"descriptor":"(Lcom/comphenix/protocol/events/NetworkMarker;)Z"},{"name":"hasPostListeners","access":9,"descriptor":"(Lcom/comphenix/protocol/events/NetworkMarker;)Z"},{"name":"getByteBuffer","access":9,"descriptor":"(Lcom/comphenix/protocol/events/NetworkMarker;)[B"},{"name":"getNetworkMarker","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)Lcom/comphenix/protocol/events/NetworkMarker;"},{"name":"readScheduledPackets","access":9,"descriptor":"(Lcom/comphenix/protocol/events/NetworkMarker;)Ljava/util/List;","signature":"(Lcom/comphenix/protocol/events/NetworkMarker;)Ljava/util/List;"}]},{"name":"com/comphenix/protocol/events/PacketAdapter","version":52,"access":1057,"superName":"java/lang/Object","interfaces":["com/comphenix/protocol/events/PacketListener"],"innerClasses":[{"name":"com/comphenix/protocol/events/PacketAdapter$AdapterParameteters","outerName":"com/comphenix/protocol/events/PacketAdapter","innerName":"AdapterParameteters","access":9},{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409},{"name":"com/comphenix/protocol/events/ListeningWhitelist$Builder","outerName":"com/comphenix/protocol/events/ListeningWhitelist","innerName":"Builder","access":9}],"fields":[{"name":"plugin","access":4,"descriptor":"Lorg/bukkit/plugin/Plugin;"},{"name":"connectionSide","access":4,"descriptor":"Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"receivingWhitelist","access":4,"descriptor":"Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"sendingWhitelist","access":4,"descriptor":"Lcom/comphenix/protocol/events/ListeningWhitelist;"}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"","access":129,"descriptor":"(Lorg/bukkit/plugin/Plugin;[Lcom/comphenix/protocol/PacketType;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Iterable;)V","signature":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Iterable<+Lcom/comphenix/protocol/PacketType;>;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/lang/Iterable;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/lang/Iterable<+Lcom/comphenix/protocol/PacketType;>;)V"},{"name":"","access":129,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/lang/Iterable;[Lcom/comphenix/protocol/events/ListenerOptions;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/lang/Iterable<+Lcom/comphenix/protocol/PacketType;>;[Lcom/comphenix/protocol/events/ListenerOptions;)V"},{"name":"","access":129,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ListenerPriority;[Lcom/comphenix/protocol/PacketType;)V"},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Ljava/util/Set;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/injector/GamePhase;Ljava/util/Set;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/injector/GamePhase;Ljava/util/Set;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Lcom/comphenix/protocol/injector/GamePhase;Ljava/util/Set;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Lcom/comphenix/protocol/injector/GamePhase;Ljava/util/Set;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;[Lcom/comphenix/protocol/events/ListenerOptions;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/injector/GamePhase;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Lcom/comphenix/protocol/injector/GamePhase;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131201,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/events/ConnectionSide;Lcom/comphenix/protocol/events/ListenerPriority;Lcom/comphenix/protocol/injector/GamePhase;[Lcom/comphenix/protocol/events/ListenerOptions;[Ljava/lang/Integer;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"onPacketReceiving","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"onPacketSending","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"getReceivingWhitelist","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"getSendingWhitelist","access":1,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getPluginName","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;)Ljava/lang/String;"},{"name":"getPluginName","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/lang/String;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"params","access":9,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"params","access":131209,"descriptor":"(Lorg/bukkit/plugin/Plugin;[Ljava/lang/Integer;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"params","access":137,"descriptor":"(Lorg/bukkit/plugin/Plugin;[Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"}]},{"name":"com/comphenix/protocol/events/PacketAdapter$AdapterParameteters","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/events/PacketAdapter$AdapterParameteters","outerName":"com/comphenix/protocol/events/PacketAdapter","innerName":"AdapterParameteters","access":9},{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"plugin","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"connectionSide","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ConnectionSide;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"clientSide","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"serverSide","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"listenerPriority","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ListenerPriority;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"gamePhase","access":1,"descriptor":"(Lcom/comphenix/protocol/injector/GamePhase;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"loginPhase","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"options","access":129,"descriptor":"([Lcom/comphenix/protocol/events/ListenerOptions;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"options","access":1,"descriptor":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","signature":"(Ljava/util/Set<+Lcom/comphenix/protocol/events/ListenerOptions;>;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"optionIntercept","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"optionManualGamePhase","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"optionAsync","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;"},{"name":"packets","access":131201,"descriptor":"([Ljava/lang/Integer;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"packets","access":131073,"descriptor":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","signature":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"types","access":129,"descriptor":"([Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"types","access":1,"descriptor":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","signature":"(Ljava/util/Set;)Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"access$000","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)Lorg/bukkit/plugin/Plugin;"},{"name":"access$100","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)Lcom/comphenix/protocol/events/ConnectionSide;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"access$400","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)[Lcom/comphenix/protocol/events/ListenerOptions;"},{"name":"access$500","access":4104,"descriptor":"(Lcom/comphenix/protocol/events/PacketAdapter$AdapterParameteters;)[Lcom/comphenix/protocol/PacketType;"}]},{"name":"com/comphenix/protocol/events/PacketContainer","version":52,"access":33,"superName":"java/lang/Object","interfaces":["java/io/Serializable"],"innerClasses":[{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ClientCommand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ClientCommand","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatVisibility","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Difficulty","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Difficulty","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"EntityUseAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"NativeGameMode","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ResourcePackStatus","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerInfoAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$TitleAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"TitleAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"WorldBorderAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$CombatEventType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"CombatEventType","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerDigType","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ScoreboardAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Particle","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Particle","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$SoundCategory","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"SoundCategory","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ItemSlot","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ItemSlot","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Hand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Hand","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Direction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Direction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatType","access":16409},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"BuilderParameters","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$Builder","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9}],"fields":[{"name":"type","access":4,"descriptor":"Lcom/comphenix/protocol/PacketType;"},{"name":"handle","access":132,"descriptor":"Ljava/lang/Object;"},{"name":"structureModifier","access":132,"descriptor":"Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"Lcom/comphenix/protocol/reflect/StructureModifier;"}],"methods":[{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(ILjava/lang/Object;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(ILjava/lang/Object;Lcom/comphenix/protocol/reflect/StructureModifier;)V","signature":"(ILjava/lang/Object;Lcom/comphenix/protocol/reflect/StructureModifier;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;)V"},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/Object;)V"},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/Object;Lcom/comphenix/protocol/reflect/StructureModifier;)V","signature":"(Lcom/comphenix/protocol/PacketType;Ljava/lang/Object;Lcom/comphenix/protocol/reflect/StructureModifier;)V"},{"name":"fromPacket","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"","access":4,"descriptor":"()V"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"getModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getSpecificModifier","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getBytes","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getBooleans","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getShorts","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getIntegers","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getLongs","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getFloat","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getDoubles","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getStrings","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getUUIDs","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getStringArrays","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[Ljava/lang/String;>;"},{"name":"getByteArrays","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[B>;"},{"name":"getByteArraySerializer","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/StreamSerializer;"},{"name":"getIntegerArrays","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[I>;"},{"name":"getItemModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getItemArrayModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[Lorg/bukkit/inventory/ItemStack;>;"},{"name":"getItemListModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getStatisticMaps","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getWorldTypeModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getDataWatcherModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getEntityModifier","access":1,"descriptor":"(Lorg/bukkit/World;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Lorg/bukkit/World;)Lcom/comphenix/protocol/reflect/StructureModifier;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getEntityModifier","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Lcom/comphenix/protocol/events/PacketEvent;)Lcom/comphenix/protocol/reflect/StructureModifier;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getPositionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getBlockPositionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getChunkCoordIntPairs","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getNbtModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getListNbtModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;>;"},{"name":"getVectors","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getAttributeCollectionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getPositionCollectionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getBlockPositionCollectionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getWatchableCollectionModifier","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getBlocks","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getGameProfiles","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getBlockData","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getMultiBlockChangeInfoArrays","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[Lcom/comphenix/protocol/wrappers/MultiBlockChangeInfo;>;"},{"name":"getChatComponents","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getChatComponentArrays","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier<[Lcom/comphenix/protocol/wrappers/WrappedChatComponent;>;"},{"name":"getServerPings","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getPlayerInfoDataLists","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getProtocols","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getClientCommands","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getChatVisibilities","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getDifficulties","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getEntityUseActions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getGameModes","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getResourcePackStatus","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getPlayerInfoAction","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getTitleActions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getWorldBorderActions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getCombatEvents","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getPlayerDigTypes","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getPlayerActions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getScoreboardActions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getParticles","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getNewParticles","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getEffectTypes","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getSoundCategories","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getSoundEffects","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getItemSlots","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getHands","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getDirections","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getChatTypes","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getMinecraftKeys","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getDimensions","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getMaps","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getSets","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getLists","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;>;"},{"name":"getEnumModifier","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":";>(Ljava/lang/Class;Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getEnumModifier","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":";>(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getID","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getType","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType;"},{"name":"shallowClone","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"deepClone","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"createPacketBuffer","access":9,"descriptor":"()Lio/netty/buffer/ByteBuf;"},{"name":"getMeta","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/Optional;","signature":"(Ljava/lang/String;)Ljava/util/Optional;"},{"name":"setMeta","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V","signature":"(Ljava/lang/String;TT;)V"},{"name":"removeMeta","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getMetadata","access":131073,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"addMetadata","access":131073,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"removeMetadata","access":131073,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hasMetadata","access":131073,"descriptor":"(Ljava/lang/String;)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/PacketEvent","version":52,"access":33,"superName":"java/util/EventObject","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"fields":[{"name":"REPORT_CHANGING_PACKET_TYPE_IS_CONFUSING","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"},{"name":"networkMarker","access":0,"descriptor":"Lcom/comphenix/protocol/events/NetworkMarker;"}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"fromClient","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromClient","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromClient","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Lorg/bukkit/entity/Player;Z)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromServer","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromServer","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromServer","access":9,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/events/PacketContainer;Lcom/comphenix/protocol/events/NetworkMarker;Lorg/bukkit/entity/Player;Z)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"fromSynchronous","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;Lcom/comphenix/protocol/async/AsyncMarker;)Lcom/comphenix/protocol/events/PacketEvent;"},{"name":"isAsync","access":1,"descriptor":"()Z"},{"name":"getPacket","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"setPacket","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)V"},{"name":"getPacketID","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getPacketType","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"getNetworkMarker","access":1,"descriptor":"()Lcom/comphenix/protocol/events/NetworkMarker;"},{"name":"setNetworkMarker","access":1,"descriptor":"(Lcom/comphenix/protocol/events/NetworkMarker;)V"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getPlayer","access":1,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"isPlayerTemporary","access":1,"descriptor":"()Z"},{"name":"isFiltered","access":1,"descriptor":"()Z"},{"name":"isServerPacket","access":1,"descriptor":"()Z"},{"name":"getAsyncMarker","access":1,"descriptor":"()Lcom/comphenix/protocol/async/AsyncMarker;"},{"name":"setAsyncMarker","access":1,"descriptor":"(Lcom/comphenix/protocol/async/AsyncMarker;)V"},{"name":"isReadOnly","access":1,"descriptor":"()Z"},{"name":"setReadOnly","access":1,"descriptor":"(Z)V"},{"name":"isAsynchronous","access":1,"descriptor":"()Z"},{"name":"schedule","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ScheduledPacket;)V"},{"name":"unschedule","access":1,"descriptor":"(Lcom/comphenix/protocol/events/ScheduledPacket;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/events/PacketListener","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"onPacketSending","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"onPacketReceiving","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"},{"name":"getSendingWhitelist","access":1025,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"getReceivingWhitelist","access":1025,"descriptor":"()Lcom/comphenix/protocol/events/ListeningWhitelist;"},{"name":"getPlugin","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"}]},{"name":"com/comphenix/protocol/events/PacketOutputHandler","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPriority","access":1025,"descriptor":"()Lcom/comphenix/protocol/events/ListenerPriority;"},{"name":"getPlugin","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"handle","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;[B)[B"}]},{"name":"com/comphenix/protocol/events/PacketPostListener","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPlugin","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"onPostEvent","access":1025,"descriptor":"(Lcom/comphenix/protocol/events/PacketEvent;)V"}]},{"name":"com/comphenix/protocol/events/ScheduledPacket","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Sender","outerName":"com/comphenix/protocol/PacketType","innerName":"Sender","access":16409}],"fields":[{"name":"packet","access":4,"descriptor":"Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"target","access":4,"descriptor":"Lorg/bukkit/entity/Player;"},{"name":"filtered","access":4,"descriptor":"Z"}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Player;Z)V"},{"name":"fromSilent","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/ScheduledPacket;"},{"name":"fromFiltered","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/events/ScheduledPacket;"},{"name":"getPacket","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"setPacket","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)V"},{"name":"getTarget","access":1,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"setTarget","access":1,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"isFiltered","access":1,"descriptor":"()Z"},{"name":"setFiltered","access":1,"descriptor":"(Z)V"},{"name":"getSender","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType$Sender;"},{"name":"schedule","access":1,"descriptor":"()V"},{"name":"schedule","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketStream;)V"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/injector/GamePhase","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LOGIN","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"PLAYING","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"BOTH","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/GamePhase;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/injector/GamePhase;"},{"name":"hasLogin","access":1,"descriptor":"()Z"},{"name":"hasPlaying","access":1,"descriptor":"()Z"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/injector/PacketConstructor","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/injector/PacketConstructor$Unwrapper","outerName":"com/comphenix/protocol/injector/PacketConstructor","innerName":"Unwrapper","access":1545}],"fields":[{"name":"DEFAULT","access":9,"descriptor":"Lcom/comphenix/protocol/injector/PacketConstructor;"}],"methods":[{"name":"getUnwrappers","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;"},{"name":"getPacketID","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getType","access":1,"descriptor":"()Lcom/comphenix/protocol/PacketType;"},{"name":"withUnwrappers","access":1,"descriptor":"(Ljava/util/List;)Lcom/comphenix/protocol/injector/PacketConstructor;","signature":"(Ljava/util/List;)Lcom/comphenix/protocol/injector/PacketConstructor;"},{"name":"withPacket","access":131073,"descriptor":"(I[Ljava/lang/Object;)Lcom/comphenix/protocol/injector/PacketConstructor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"withPacket","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;[Ljava/lang/Object;)Lcom/comphenix/protocol/injector/PacketConstructor;"},{"name":"createPacket","access":129,"descriptor":"([Ljava/lang/Object;)Lcom/comphenix/protocol/events/PacketContainer;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"getClass","access":9,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Class;","signature":"(Ljava/lang/Object;)Ljava/lang/Class<*>;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/injector/PacketConstructor$Unwrapper","version":52,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/injector/PacketConstructor$Unwrapper","outerName":"com/comphenix/protocol/injector/PacketConstructor","innerName":"Unwrapper","access":1545}],"methods":[{"name":"unwrapItem","access":1025,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"}]},{"name":"com/comphenix/protocol/injector/PlayerInjectHooks","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"NONE","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"NETWORK_MANAGER_OBJECT","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"NETWORK_HANDLER_FIELDS","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"NETWORK_SERVER_OBJECT","access":16409,"descriptor":"Lcom/comphenix/protocol/injector/PlayerInjectHooks;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/injector/PlayerInjectHooks;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/injector/netty/WirePacket","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/PacketType;[B)V"},{"name":"","access":1,"descriptor":"(I[B)V"},{"name":"getId","access":1,"descriptor":"()I"},{"name":"getBytes","access":1,"descriptor":"()[B"},{"name":"writeId","access":1,"descriptor":"(Lio/netty/buffer/ByteBuf;)V"},{"name":"writeBytes","access":1,"descriptor":"(Lio/netty/buffer/ByteBuf;)V"},{"name":"writeFully","access":1,"descriptor":"(Lio/netty/buffer/ByteBuf;)V"},{"name":"serialize","access":1,"descriptor":"()Lio/netty/buffer/ByteBuf;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"fromPacket","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)Lcom/comphenix/protocol/injector/netty/WirePacket;"},{"name":"bytesFromPacket","access":9,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)[B"},{"name":"fromPacket","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/injector/netty/WirePacket;"},{"name":"writeVarInt","access":9,"descriptor":"(Lio/netty/buffer/ByteBuf;I)V"},{"name":"readVarInt","access":9,"descriptor":"(Lio/netty/buffer/ByteBuf;)I"}]},{"name":"com/comphenix/protocol/reflect/ClassAnalyser","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","outerName":"com/comphenix/protocol/reflect/ClassAnalyser","innerName":"AsmMethod","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getDefault","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/ClassAnalyser;"},{"name":"getMethodCalls","access":1,"descriptor":"(Ljava/lang/reflect/Method;)Ljava/util/List;","signature":"(Ljava/lang/reflect/Method;)Ljava/util/List;","exceptions":["java/io/IOException"]},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","outerName":"com/comphenix/protocol/reflect/ClassAnalyser","innerName":"AsmMethod","access":9},{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes","outerName":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","innerName":"AsmOpcodes","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"},{"name":"getOwnerName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getOpcode","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"getOwnerClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;","exceptions":["java/lang/ClassNotFoundException"]},{"name":"getMethodName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getSignature","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","outerName":"com/comphenix/protocol/reflect/ClassAnalyser","innerName":"AsmMethod","access":9},{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes","outerName":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","innerName":"AsmOpcodes","access":16409}],"fields":[{"name":"INVOKE_VIRTUAL","access":16409,"descriptor":"Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"INVOKE_SPECIAL","access":16409,"descriptor":"Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"INVOKE_STATIC","access":16409,"descriptor":"Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"INVOKE_INTERFACE","access":16409,"descriptor":"Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"INVOKE_DYNAMIC","access":16409,"descriptor":"Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"fromIntOpcode","access":9,"descriptor":"(I)Lcom/comphenix/protocol/reflect/ClassAnalyser$AsmMethod$AsmOpcodes;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/reflect/EquivalentConverter","version":52,"access":1537,"signature":"Ljava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"getGeneric","access":1025,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;","signature":"(TT;)Ljava/lang/Object;"},{"name":"getSpecific","access":1025,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;","signature":"(Ljava/lang/Object;)TT;"},{"name":"getSpecificType","access":1025,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class;"}]},{"name":"com/comphenix/protocol/reflect/FieldAccessException","version":52,"access":33,"superName":"java/lang/RuntimeException","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"fromFormat","access":137,"descriptor":"(Ljava/lang/String;[Ljava/lang/Object;)Lcom/comphenix/protocol/reflect/FieldAccessException;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/reflect/MethodInfo","version":52,"access":1057,"superName":"java/lang/Object","interfaces":["java/lang/reflect/GenericDeclaration","java/lang/reflect/Member"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"fromMethod","access":9,"descriptor":"(Ljava/lang/reflect/Method;)Lcom/comphenix/protocol/reflect/MethodInfo;"},{"name":"fromMethods","access":9,"descriptor":"([Ljava/lang/reflect/Method;)Ljava/util/Collection;","signature":"([Ljava/lang/reflect/Method;)Ljava/util/Collection;"},{"name":"fromMethods","access":9,"descriptor":"(Ljava/util/Collection;)Ljava/util/List;","signature":"(Ljava/util/Collection;)Ljava/util/List;"},{"name":"fromConstructor","access":9,"descriptor":"(Ljava/lang/reflect/Constructor;)Lcom/comphenix/protocol/reflect/MethodInfo;","signature":"(Ljava/lang/reflect/Constructor<*>;)Lcom/comphenix/protocol/reflect/MethodInfo;"},{"name":"fromConstructors","access":9,"descriptor":"([Ljava/lang/reflect/Constructor;)Ljava/util/Collection;","signature":"([Ljava/lang/reflect/Constructor<*>;)Ljava/util/Collection;"},{"name":"fromConstructors","access":9,"descriptor":"(Ljava/util/Collection;)Ljava/util/List;","signature":"(Ljava/util/Collection;>;)Ljava/util/List;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"toGenericString","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getExceptionTypes","access":1025,"descriptor":"()[Ljava/lang/Class;","signature":"()[Ljava/lang/Class<*>;"},{"name":"getReturnType","access":1025,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getParameterTypes","access":1025,"descriptor":"()[Ljava/lang/Class;","signature":"()[Ljava/lang/Class<*>;"},{"name":"isConstructor","access":1025,"descriptor":"()Z"}]},{"name":"com/comphenix/protocol/reflect/ObjectEnum","version":51,"access":33,"signature":"Ljava/lang/Object;Ljava/lang/Iterable;","superName":"java/lang/Object","interfaces":["java/lang/Iterable"],"fields":[{"name":"members","access":4,"descriptor":"Lcom/google/common/collect/BiMap;","signature":"Lcom/google/common/collect/BiMap;"}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Class;)V","signature":"(Ljava/lang/Class;)V"},{"name":"registerAll","access":4,"descriptor":"(Ljava/lang/Class;)V","signature":"(Ljava/lang/Class;)V"},{"name":"registerMember","access":1,"descriptor":"(Ljava/lang/Object;Ljava/lang/String;)Z","signature":"(TT;Ljava/lang/String;)Z"},{"name":"hasMember","access":1,"descriptor":"(Ljava/lang/Object;)Z","signature":"(TT;)Z"},{"name":"valueOf","access":1,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;","signature":"(Ljava/lang/String;)TT;"},{"name":"getDeclaredName","access":1,"descriptor":"(Ljava/lang/Object;)Ljava/lang/String;","signature":"(TT;)Ljava/lang/String;"},{"name":"values","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"iterator","access":1,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"}]},{"name":"com/comphenix/protocol/reflect/StructureModifier","version":52,"access":33,"signature":"Ljava/lang/Object;","superName":"java/lang/Object","fields":[{"name":"targetType","access":4,"descriptor":"Ljava/lang/Class;"},{"name":"target","access":4,"descriptor":"Ljava/lang/Object;"},{"name":"converter","access":4,"descriptor":"Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"fieldType","access":4,"descriptor":"Ljava/lang/Class;"},{"name":"data","access":4,"descriptor":"Ljava/util/List;","signature":"Ljava/util/List;"},{"name":"defaultFields","access":4,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"subtypeCache","access":4,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"},{"name":"customConvertHandling","access":4,"descriptor":"Z"},{"name":"useStructureCompiler","access":4,"descriptor":"Z"}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Class;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Class;Z)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;Z)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;ZZ)V"},{"name":"","access":4,"descriptor":"()V"},{"name":"initialize","access":4,"descriptor":"(Lcom/comphenix/protocol/reflect/StructureModifier;)V","signature":"(Lcom/comphenix/protocol/reflect/StructureModifier;)V"},{"name":"initialize","access":4,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;Ljava/util/Map;)V","signature":"(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;Ljava/util/Map;)V"},{"name":"initialize","access":4,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;Ljava/util/Map;Z)V","signature":"(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;Ljava/util/Map;Z)V"},{"name":"read","access":1,"descriptor":"(I)Ljava/lang/Object;","signature":"(I)TTField;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"readSafely","access":1,"descriptor":"(I)Ljava/lang/Object;","signature":"(I)TTField;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"optionRead","access":1,"descriptor":"(I)Ljava/util/Optional;","signature":"(I)Ljava/util/Optional;"},{"name":"isReadOnly","access":1,"descriptor":"(I)Z"},{"name":"isPublic","access":1,"descriptor":"(I)Z"},{"name":"setReadOnly","access":1,"descriptor":"(IZ)V","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"setFinalState","access":12,"descriptor":"(Ljava/lang/reflect/Field;Z)V","exceptions":["java/lang/IllegalAccessException"]},{"name":"write","access":1,"descriptor":"(ILjava/lang/Object;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(ITTField;)Lcom/comphenix/protocol/reflect/StructureModifier;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"getFieldType","access":4,"descriptor":"(I)Ljava/lang/Class;","signature":"(I)Ljava/lang/Class<*>;"},{"name":"writeSafely","access":1,"descriptor":"(ILjava/lang/Object;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(ITTField;)Lcom/comphenix/protocol/reflect/StructureModifier;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"modify","access":1,"descriptor":"(ILcom/google/common/base/Function;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(ILcom/google/common/base/Function;)Lcom/comphenix/protocol/reflect/StructureModifier;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"withType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"writeDefaults","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"()Lcom/comphenix/protocol/reflect/StructureModifier;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"withType","access":1,"descriptor":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"getFieldType","access":1,"descriptor":"()Ljava/lang/Class;"},{"name":"getTargetType","access":1,"descriptor":"()Ljava/lang/Class;"},{"name":"getTarget","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"size","access":1,"descriptor":"()I"},{"name":"withFieldType","access":4,"descriptor":"(Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"withFieldType","access":4,"descriptor":"(Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Class;Ljava/util/List;Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"withTarget","access":1,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"(Ljava/lang/Object;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"setConverter","access":4,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)V","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)V"},{"name":"getFields","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getField","access":1,"descriptor":"(I)Ljava/lang/reflect/Field;"},{"name":"getValues","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;","exceptions":["com/comphenix/protocol/reflect/FieldAccessException"]},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner","version":52,"access":33,"superName":"java/lang/Object","interfaces":["com/comphenix/protocol/reflect/cloning/Cloner"],"innerClasses":[{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$Builder","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"BuilderParameters","access":9}],"fields":[{"name":"DEFAULT","access":25,"descriptor":"Lcom/comphenix/protocol/reflect/cloning/AggregateCloner;"}],"methods":[{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;"},{"name":"getCloners","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"canClone","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"clone","access":1,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$1;)V"},{"name":"access$500","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner;Ljava/lang/Iterable;)V"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$Builder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$Builder","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"BuilderParameters","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"instanceProvider","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/instances/InstanceProvider;)Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;"},{"name":"andThen","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;","signature":"(Ljava/lang/Class<+Lcom/comphenix/protocol/reflect/cloning/Cloner;>;)Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;"},{"name":"andThen","access":1,"descriptor":"(Lcom/google/common/base/Function;)Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;","signature":"(Lcom/google/common/base/Function;)Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/cloning/AggregateCloner;"}]},{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters","outerName":"com/comphenix/protocol/reflect/cloning/AggregateCloner","innerName":"BuilderParameters","access":9}],"methods":[{"name":"getInstanceProvider","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/instances/InstanceProvider;"},{"name":"getAggregateCloner","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/cloning/Cloner;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$1;)V"},{"name":"access$102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters;Lcom/comphenix/protocol/reflect/instances/InstanceProvider;)Lcom/comphenix/protocol/reflect/instances/InstanceProvider;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters;)Lcom/comphenix/protocol/reflect/instances/InstanceProvider;"},{"name":"access$100","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters;)Lcom/comphenix/protocol/reflect/instances/InstanceProvider;"},{"name":"access$402","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters;Lcom/comphenix/protocol/reflect/cloning/Cloner;)Lcom/comphenix/protocol/reflect/cloning/Cloner;"},{"name":"access$202","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/cloning/AggregateCloner$BuilderParameters;Lcom/comphenix/protocol/reflect/instances/InstanceProvider;)Lcom/comphenix/protocol/reflect/instances/InstanceProvider;"}]},{"name":"com/comphenix/protocol/reflect/cloning/Cloner","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"canClone","access":1025,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"clone","access":1025,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher","version":52,"access":1057,"signature":"Ljava/lang/Object;Ljava/lang/Comparable;>;","superName":"java/lang/Object","interfaces":["java/lang/Comparable"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"isMatch","access":1025,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z","signature":"(TT;Ljava/lang/Object;)Z"},{"name":"calculateRoundNumber","access":1028,"descriptor":"()I"},{"name":"getRoundNumber","access":17,"descriptor":"()I"},{"name":"combineRounds","access":20,"descriptor":"(II)I"},{"name":"combineRounds","access":148,"descriptor":"([Ljava/lang/Integer;)I"},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)I","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)I"},{"name":"inverted","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;"},{"name":"and","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;"},{"name":"or","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","version":52,"access":1057,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerName":"Builder","access":1033}],"fields":[{"name":"modifiersRequired","access":4,"descriptor":"I"},{"name":"modifiersBanned","access":4,"descriptor":"I"},{"name":"nameRegex","access":4,"descriptor":"Ljava/util/regex/Pattern;"},{"name":"declaringMatcher","access":4,"descriptor":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;"},{"name":"sealed","access":132,"descriptor":"Z"}],"methods":[{"name":"","access":4,"descriptor":"()V"},{"name":"prepareBuild","access":4,"descriptor":"()V"},{"name":"","access":4,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;)V","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;)V"},{"name":"getModifiersRequired","access":1,"descriptor":"()I"},{"name":"getModifiersBanned","access":1,"descriptor":"()I"},{"name":"getNameRegex","access":1,"descriptor":"()Ljava/util/regex/Pattern;"},{"name":"getDeclaringMatcher","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;"},{"name":"isMatch","access":1,"descriptor":"(Ljava/lang/reflect/Member;Ljava/lang/Object;)Z","signature":"(TT;Ljava/lang/Object;)Z"},{"name":"calculateRoundNumber","access":4,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getKeyValueView","access":4,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","version":52,"access":1057,"signature":";>Ljava/lang/Object;","superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerName":"Builder","access":1033}],"fields":[{"name":"member","access":4,"descriptor":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","signature":"TT;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"requireModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"requirePublic","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"banModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameExact","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassExactType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassMatching","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"initialMember","access":1028,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","signature":"()TT;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"build","access":1025,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","signature":"()TT;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract","version":52,"access":33,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract","innerName":"Builder","access":9}],"methods":[{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"getFieldContracts","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;>;"},{"name":"getMethodContracts","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;>;"},{"name":"getConstructorContracts","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;>;"},{"name":"getBaseclassContracts","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;>;>;"},{"name":"getInterfaceContracts","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;>;>;"},{"name":"calculateRoundNumber","access":4,"descriptor":"()I"},{"name":"isMatch","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;)Z","signature":"(Ljava/lang/Class<*>;Ljava/lang/Object;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$1;)V"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"field","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"field","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"method","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"method","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"constructor","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"constructor","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"baseclass","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"baseclass","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"interfaces","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"interfaces","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract;"},{"name":"access$100","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Ljava/util/List;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Ljava/util/List;"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Ljava/util/List;"},{"name":"access$400","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Ljava/util/List;"},{"name":"access$500","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder;)Ljava/util/List;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","version":52,"access":33,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9}],"methods":[{"name":"matchType","access":9,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;"},{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"getTypeMatcher","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;"},{"name":"isMatch","access":1,"descriptor":"(Ljava/lang/reflect/Field;Ljava/lang/Object;)Z"},{"name":"calculateRoundNumber","access":4,"descriptor":"()I"},{"name":"getKeyValueView","access":4,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/reflect/Member;Ljava/lang/Object;)Z"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$1;)V"},{"name":"access$102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$1;)V"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","version":52,"access":33,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerName":"Builder","access":1033}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"requireModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"banModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"requirePublic","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"nameExact","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"declaringClassExactType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"declaringClassSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"declaringClassDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"declaringClassMatching","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"initialMember","access":4,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"typeExact","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"typeSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"typeDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"typeMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract;"},{"name":"build","access":4161,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;"},{"name":"initialMember","access":4164,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"declaringClassMatching","access":4161,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassDerivedOf","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassSuperOf","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassExactType","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameExact","access":4161,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":4161,"descriptor":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":4161,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"banModifier","access":4161,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"requirePublic","access":4161,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"requireModifier","access":4161,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","version":52,"access":33,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$ParameterClassMatcher","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"ParameterClassMatcher","access":10}],"methods":[{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"getReturnMatcher","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;"},{"name":"getParamMatchers","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;"},{"name":"getExceptionMatchers","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getParamCount","access":1,"descriptor":"()Ljava/lang/Integer;"},{"name":"prepareBuild","access":4,"descriptor":"()V"},{"name":"isMatch","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/MethodInfo;Ljava/lang/Object;)Z"},{"name":"calculateRoundNumber","access":4,"descriptor":"()I"},{"name":"getKeyValueView","access":4,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/reflect/Member;Ljava/lang/Object;)Z"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z"},{"name":"access$000","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;)Ljava/util/List;"},{"name":"access$102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;Ljava/lang/Integer;)Ljava/lang/Integer;"},{"name":"access$202","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;)Ljava/util/List;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$1;)V"},{"name":"access$500","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","version":52,"access":33,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember","innerName":"Builder","access":1033},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$ParameterClassMatcher","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"ParameterClassMatcher","access":10}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"requireModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"requirePublic","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"banModifier","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"nameRegex","access":1,"descriptor":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"nameExact","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"declaringClassExactType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"declaringClassSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"declaringClassDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"declaringClassMatching","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterExactType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterExactType","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterExactArray","access":129,"descriptor":"([Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"([Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterSuperOf","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"parameterCount","access":1,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"returnTypeVoid","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"returnTypeExact","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"returnDerivedOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"returnTypeMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionExactType","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionSuperOf","access":1,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionExactType","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionSuperOf","access":1,"descriptor":"(Ljava/lang/Class;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Ljava/lang/Class<*>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"exceptionMatches","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;I)Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder;"},{"name":"initialMember","access":4,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract;"},{"name":"build","access":4161,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;"},{"name":"initialMember","access":4164,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember;","annotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"values":{}}]},{"name":"declaringClassMatching","access":4161,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassDerivedOf","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassSuperOf","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"declaringClassExactType","access":4161,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameExact","access":4161,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":4161,"descriptor":"(Ljava/util/regex/Pattern;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"nameRegex","access":4161,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"banModifier","access":4161,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"requirePublic","access":4161,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"},{"name":"requireModifier","access":4161,"descriptor":"(I)Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMember$Builder;"}]},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$ParameterClassMatcher","version":52,"access":32,"signature":"Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher<[Ljava/lang/Class<*>;>;","superName":"com/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$ParameterClassMatcher","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"ParameterClassMatcher","access":10}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;)V","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;Ljava/lang/Integer;)V","signature":"(Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;Ljava/lang/Integer;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"isParameterMatch","access":1,"descriptor":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/MethodInfo;I)Z","signature":"(Ljava/lang/Class<*>;Lcom/comphenix/protocol/reflect/MethodInfo;I)Z"},{"name":"isMatch","access":1,"descriptor":"([Ljava/lang/Class;Ljava/lang/Object;)Z","signature":"([Ljava/lang/Class<*>;Ljava/lang/Object;)Z"},{"name":"calculateRoundNumber","access":4,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"isMatch","access":4161,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)Z"}]},{"name":"com/comphenix/protocol/reflect/instances/InstanceProvider","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"create","access":1025,"descriptor":"(Ljava/lang/Class;)Ljava/lang/Object;","signature":"(Ljava/lang/Class<*>;)Ljava/lang/Object;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nullable;","visible":true,"parameter":0,"values":{}}]}]},{"name":"com/comphenix/protocol/timing/OnlineComputation","version":52,"access":1057,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getCount","access":1025,"descriptor":"()I"},{"name":"observe","access":1025,"descriptor":"(D)V"},{"name":"copy","access":1025,"descriptor":"()Lcom/comphenix/protocol/timing/OnlineComputation;"},{"name":"synchronizedComputation","access":9,"descriptor":"(Lcom/comphenix/protocol/timing/OnlineComputation;)Lcom/comphenix/protocol/timing/OnlineComputation;"}]},{"name":"com/comphenix/protocol/timing/StatisticsStream","version":52,"access":33,"superName":"com/comphenix/protocol/timing/OnlineComputation","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/timing/StatisticsStream;)V"},{"name":"copy","access":1,"descriptor":"()Lcom/comphenix/protocol/timing/StatisticsStream;"},{"name":"observe","access":1,"descriptor":"(D)V"},{"name":"getMean","access":1,"descriptor":"()D"},{"name":"getVariance","access":1,"descriptor":"()D"},{"name":"getStandardDeviation","access":1,"descriptor":"()D"},{"name":"getMinimum","access":1,"descriptor":"()D"},{"name":"getMaximum","access":1,"descriptor":"()D"},{"name":"add","access":1,"descriptor":"(Lcom/comphenix/protocol/timing/StatisticsStream;)Lcom/comphenix/protocol/timing/StatisticsStream;"},{"name":"getCount","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"copy","access":4161,"descriptor":"()Lcom/comphenix/protocol/timing/OnlineComputation;"}]},{"name":"com/comphenix/protocol/timing/TimedListenerManager","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/timing/TimedListenerManager$ListenerType","outerName":"com/comphenix/protocol/timing/TimedListenerManager","innerName":"ListenerType","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getInstance","access":9,"descriptor":"()Lcom/comphenix/protocol/timing/TimedListenerManager;"},{"name":"startTiming","access":1,"descriptor":"()Z"},{"name":"stopTiming","access":1,"descriptor":"()Z"},{"name":"getStarted","access":1,"descriptor":"()Ljava/util/Date;"},{"name":"getStopped","access":1,"descriptor":"()Ljava/util/Date;"},{"name":"isTiming","access":1,"descriptor":"()Z"},{"name":"clear","access":1,"descriptor":"()V"},{"name":"getTrackedPlugins","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getTracker","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;)Lcom/comphenix/protocol/timing/TimedTracker;"},{"name":"getTracker","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketListener;Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;)Lcom/comphenix/protocol/timing/TimedTracker;"},{"name":"getTracker","access":1,"descriptor":"(Ljava/lang/String;Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;)Lcom/comphenix/protocol/timing/TimedTracker;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/timing/TimedListenerManager$ListenerType","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/timing/TimedListenerManager$ListenerType","outerName":"com/comphenix/protocol/timing/TimedListenerManager","innerName":"ListenerType","access":16409}],"fields":[{"name":"ASYNC_SERVER_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"},{"name":"ASYNC_CLIENT_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"},{"name":"SYNC_SERVER_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"},{"name":"SYNC_CLIENT_SIDE","access":16409,"descriptor":"Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/timing/TimedListenerManager$ListenerType;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/timing/TimedTracker","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"beginTracking","access":1,"descriptor":"()J"},{"name":"endTracking","access":33,"descriptor":"(JLcom/comphenix/protocol/PacketType;)V"},{"name":"getObservations","access":1,"descriptor":"()I"},{"name":"getStatistics","access":33,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"}]},{"name":"com/comphenix/protocol/utility/ClassSource","version":52,"access":1057,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"fromClassLoader","access":9,"descriptor":"()Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"fromPackage","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"fromClassLoader","access":9,"descriptor":"(Ljava/lang/ClassLoader;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"fromMap","access":9,"descriptor":"(Ljava/util/Map;)Lcom/comphenix/protocol/utility/ClassSource;","signature":"(Ljava/util/Map;>;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"empty","access":9,"descriptor":"()Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"attemptLoadFrom","access":137,"descriptor":"([Lcom/comphenix/protocol/utility/ClassSource;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"retry","access":1,"descriptor":"(Lcom/comphenix/protocol/utility/ClassSource;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"usingPackage","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/utility/ClassSource;"},{"name":"append","access":12,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"},{"name":"loadClass","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;","exceptions":["java/lang/ClassNotFoundException"]}]},{"name":"com/comphenix/protocol/utility/MinecraftReflection","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod","outerName":"com/comphenix/protocol/reflect/ClassAnalyser","innerName":"AsmMethod","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyClassContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","outerName":"com/comphenix/protocol/utility/RemappedClassSource","innerName":"RemapperUnavailableException","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/PacketType$Login","outerName":"com/comphenix/protocol/PacketType","innerName":"Login","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason","outerName":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","innerName":"Reason","access":16409},{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"fields":[{"name":"REPORT_CANNOT_FIND_MCPC_REMAPPER","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"},{"name":"REPORT_CANNOT_LOAD_CPC_REMAPPER","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"},{"name":"REPORT_NON_CRAFTBUKKIT_LIBRARY_PACKAGE","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"},{"name":"MINECRAFT_OBJECT","access":131097,"descriptor":"Ljava/lang/String;","constant":"net\\.minecraft\\.(\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*\\.)+\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"minecraftPackage","access":8,"descriptor":"Lcom/comphenix/protocol/utility/CachedPackage;"},{"name":"craftbukkitPackage","access":8,"descriptor":"Lcom/comphenix/protocol/utility/CachedPackage;"},{"name":"libraryPackage","access":8,"descriptor":"Lcom/comphenix/protocol/utility/CachedPackage;"}],"methods":[{"name":"getMinecraftObjectRegex","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getMinecraftObjectMatcher","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;","signature":"()Lcom/comphenix/protocol/reflect/fuzzy/AbstractFuzzyMatcher;>;"},{"name":"getMinecraftPackage","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getPackageVersion","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"setMinecraftPackage","access":9,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V"},{"name":"getCraftBukkitPackage","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getBukkitEntity","access":9,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"isMinecraftObject","access":9,"descriptor":"(Ljava/lang/Object;)Z","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"isMinecraftClass","access":9,"descriptor":"(Ljava/lang/Class;)Z","signature":"(Ljava/lang/Class<*>;)Z","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"isMinecraftObject","access":9,"descriptor":"(Ljava/lang/Object;Ljava/lang/String;)Z","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"is","access":9,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;)Z","signature":"(Ljava/lang/Class<*>;Ljava/lang/Object;)Z"},{"name":"is","access":9,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;)Z","signature":"(Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Z"},{"name":"isChunkPosition","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isBlockPosition","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isChunkCoordIntPair","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isChunkCoordinates","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isPacketClass","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isLoginHandler","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isServerHandler","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isMinecraftEntity","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isItemStack","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isCraftPlayer","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isMinecraftPlayer","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isWatchableObject","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isDataWatcher","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isIntHashMap","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isCraftItemStack","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"getEntityPlayerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getEntityHumanClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getGameProfileClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getEntityClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftChatMessage","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getWorldServerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNmsWorldClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPacketClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getByteBufClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getEnumProtocolClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getIChatBaseComponentClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getIChatBaseComponentArrayClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChatComponentTextClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChatSerializerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getServerPingClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getServerPingServerDataClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getServerPingPlayerSampleClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"isUsingNetty","access":9,"descriptor":"()Z"},{"name":"getMinecraftServerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getStatisticClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getStatisticListClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerListClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNetLoginHandlerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerConnectionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNetworkManagerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNetHandlerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getItemStackClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getBlockClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getItemClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getFluidTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getParticleTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getWorldTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getDataWatcherClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChunkPositionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getBlockPositionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getVec3DClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChunkCoordinatesClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChunkCoordIntPair","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getWatchableObjectClass","access":131081,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getDataWatcherItemClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getDataWatcherObjectClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"watcherObjectExists","access":9,"descriptor":"()Z"},{"name":"getDataWatcherSerializerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getDataWatcherRegistryClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMinecraftKeyClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMobEffectListClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getSoundEffectClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getServerConnectionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNBTBaseClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNBTReadLimiterClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNBTCompoundClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getEntityTrackerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNetworkListenThreadClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getAttributeSnapshotClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getIntHashMapClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getAttributeModifierClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMobEffectClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPacketDataSerializerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getNbtCompressedStreamToolsClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getTileEntityClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMinecraftGsonClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getItemStackArrayClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getArrayClass","access":9,"descriptor":"(Ljava/lang/Class;)Ljava/lang/Class;","signature":"(Ljava/lang/Class<*>;)Ljava/lang/Class<*>;"},{"name":"getCraftItemStackClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftPlayerClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftWorldClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftEntityClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftMessageClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerInfoDataClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"isPlayerInfoData","access":9,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"getIBlockDataClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMultiBlockChangeInfoClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getMultiBlockChangeInfoArrayClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"signUpdateExists","access":9,"descriptor":"()Z"},{"name":"getNonNullListClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCraftSoundClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getBukkitItemStack","access":9,"descriptor":"(Ljava/lang/Object;)Lorg/bukkit/inventory/ItemStack;"},{"name":"getMinecraftItemStack","access":9,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/lang/Object;"},{"name":"getCraftBukkitClass","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"getMinecraftClass","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"getNullableNMS","access":8,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"getMinecraftClass","access":137,"descriptor":"(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"getMinecraftLibraryClass","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"getNetworkManagerName","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getNetLoginHandlerName","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getPacketDataSerializer","access":9,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/utility/MinecraftVersion","version":52,"access":33,"signature":"Ljava/lang/Object;Ljava/lang/Comparable;Ljava/io/Serializable;","superName":"java/lang/Object","interfaces":["java/lang/Comparable","java/io/Serializable"],"fields":[{"name":"AQUATIC_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"COLOR_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"EXPLORATION_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"FROSTBURN_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"COMBAT_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"BOUNTIFUL_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"SKIN_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"WORLD_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"HORSE_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"REDSTONE_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"SCARY_UPDATE","access":25,"descriptor":"Lcom/comphenix/protocol/utility/MinecraftVersion;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/Server;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(IIILjava/lang/String;)V"},{"name":"getMajor","access":1,"descriptor":"()I"},{"name":"getMinor","access":1,"descriptor":"()I"},{"name":"getBuild","access":1,"descriptor":"()I"},{"name":"getDevelopmentStage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getSnapshot","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/SnapshotVersion;"},{"name":"isSnapshot","access":1,"descriptor":"()Z"},{"name":"getVersion","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/utility/MinecraftVersion;)I"},{"name":"isAtLeast","access":1,"descriptor":"(Lcom/comphenix/protocol/utility/MinecraftVersion;)Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"extractVersion","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"fromServerVersion","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"setCurrentVersion","access":9,"descriptor":"(Lcom/comphenix/protocol/utility/MinecraftVersion;)V"},{"name":"getCurrentVersion","access":9,"descriptor":"()Lcom/comphenix/protocol/utility/MinecraftVersion;"},{"name":"atOrAbove","access":9,"descriptor":"(Lcom/comphenix/protocol/utility/MinecraftVersion;)Z"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/utility/RemappedClassSource","version":52,"access":32,"superName":"com/comphenix/protocol/utility/ClassSource","innerClasses":[{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","outerName":"com/comphenix/protocol/utility/RemappedClassSource","innerName":"RemapperUnavailableException","access":9},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason","outerName":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","innerName":"Reason","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/ClassLoader;)V"},{"name":"initialize","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/RemappedClassSource;"},{"name":"loadClass","access":1,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;","exceptions":["java/lang/ClassNotFoundException"]},{"name":"getClassName","access":1,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","version":52,"access":33,"superName":"java/lang/RuntimeException","innerClasses":[{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","outerName":"com/comphenix/protocol/utility/RemappedClassSource","innerName":"RemapperUnavailableException","access":9},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason","outerName":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","innerName":"Reason","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;)V"},{"name":"getReason","access":1,"descriptor":"()Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;"}]},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","outerName":"com/comphenix/protocol/utility/RemappedClassSource","innerName":"RemapperUnavailableException","access":9},{"name":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason","outerName":"com/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException","innerName":"Reason","access":16409}],"fields":[{"name":"MCPC_NOT_PRESENT","access":16409,"descriptor":"Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;"},{"name":"REMAPPER_DISABLED","access":16409,"descriptor":"Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/utility/RemappedClassSource$RemapperUnavailableException$Reason;"},{"name":"getMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/utility/SnapshotVersion","version":52,"access":33,"signature":"Ljava/lang/Object;Ljava/lang/Comparable;Ljava/io/Serializable;","superName":"java/lang/Object","interfaces":["java/lang/Comparable","java/io/Serializable"],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getSnapshotWeekVersion","access":1,"descriptor":"()I"},{"name":"getSnapshotDate","access":1,"descriptor":"()Ljava/util/Date;"},{"name":"getSnapshotString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/utility/SnapshotVersion;)I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/utility/StreamSerializer","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getDefault","access":9,"descriptor":"()Lcom/comphenix/protocol/utility/StreamSerializer;"},{"name":"serializeVarInt","access":1,"descriptor":"(Ljava/io/DataOutputStream;I)V","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"deserializeVarInt","access":1,"descriptor":"(Ljava/io/DataInputStream;)I","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"serializeCompound","access":1,"descriptor":"(Ljava/io/DataOutputStream;Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;)V","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"deserializeCompound","access":1,"descriptor":"(Ljava/io/DataInputStream;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"serializeString","access":1,"descriptor":"(Ljava/io/DataOutputStream;Ljava/lang/String;)V","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"deserializeString","access":1,"descriptor":"(Ljava/io/DataInputStream;I)Ljava/lang/String;","exceptions":["java/io/IOException"],"parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"serializeItemStack","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/lang/String;","exceptions":["java/io/IOException"]},{"name":"deserializeItemStack","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/ItemStack;","exceptions":["java/io/IOException"]},{"name":"serializeItemStack","access":1,"descriptor":"(Ljava/io/DataOutputStream;Lorg/bukkit/inventory/ItemStack;)V","exceptions":["java/io/IOException"]},{"name":"deserializeItemStack","access":131073,"descriptor":"(Ljava/io/DataInputStream;)Lorg/bukkit/inventory/ItemStack;","exceptions":["java/io/IOException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/utility/WrappedScheduler","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/utility/WrappedScheduler$TaskWrapper","outerName":"com/comphenix/protocol/utility/WrappedScheduler","innerName":"TaskWrapper","access":1545}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"runAsynchronouslyOnce","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;J)Lcom/comphenix/protocol/utility/WrappedScheduler$TaskWrapper;"},{"name":"runAsynchronouslyRepeat","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)Lcom/comphenix/protocol/utility/WrappedScheduler$TaskWrapper;"},{"name":"runAsynchronouslyRepeat","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitScheduler;Ljava/lang/Runnable;JJ)Lcom/comphenix/protocol/utility/WrappedScheduler$TaskWrapper;"}]},{"name":"com/comphenix/protocol/utility/WrappedScheduler$TaskWrapper","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/utility/WrappedScheduler$TaskWrapper","outerName":"com/comphenix/protocol/utility/WrappedScheduler","innerName":"TaskWrapper","access":1545}],"methods":[{"name":"cancel","access":1025,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/AbstractWrapper","version":52,"access":1057,"superName":"java/lang/Object","fields":[{"name":"handle","access":4,"descriptor":"Ljava/lang/Object;"},{"name":"handleType","access":4,"descriptor":"Ljava/lang/Class;","signature":"Ljava/lang/Class<*>;"}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Class;)V","signature":"(Ljava/lang/Class<*>;)V"},{"name":"setHandle","access":4,"descriptor":"(Ljava/lang/Object;)V"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"getHandleType","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/wrappers/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"ORIGIN","access":9,"descriptor":"Lcom/comphenix/protocol/wrappers/BlockPosition;"},{"name":"x","access":20,"descriptor":"I"},{"name":"y","access":20,"descriptor":"I"},{"name":"z","access":20,"descriptor":"I"}],"methods":[{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"toVector","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"toLocation","access":1,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/Location;"},{"name":"getX","access":1,"descriptor":"()I"},{"name":"getY","access":1,"descriptor":"()I"},{"name":"getZ","access":1,"descriptor":"()I"},{"name":"add","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/BlockPosition;)Lcom/comphenix/protocol/wrappers/BlockPosition;"},{"name":"subtract","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/BlockPosition;)Lcom/comphenix/protocol/wrappers/BlockPosition;"},{"name":"multiply","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/BlockPosition;"},{"name":"divide","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/BlockPosition;"},{"name":"getConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/StructureModifier;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$100","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/BukkitConverters","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/injector/PacketConstructor$Unwrapper","outerName":"com/comphenix/protocol/injector/PacketConstructor","innerName":"Unwrapper","access":1545},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getMapConverter","access":9,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getListConverter","access":9,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getSetConverter","access":131081,"descriptor":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Ljava/lang/Class<*>;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;>;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getSetConverter","access":9,"descriptor":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getArrayConverter","access":9,"descriptor":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Ljava/lang/Class<*>;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getWrappedGameProfileConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWrappedChatComponentConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWrappedBlockDataConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWrappedAttributeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWatchableObjectConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getDataWatcherConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWorldTypeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getNbtConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getEntityConverter","access":9,"descriptor":"(Lorg/bukkit/World;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lorg/bukkit/World;)Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getItemStackConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWrappedServerPingConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWrappedStatisticConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getBlockConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWorldConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getPotionEffectConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getVectorConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getSoundConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getParticleConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getAdvancementConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"asUnwrapper","access":9,"descriptor":"(Ljava/lang/Class;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/injector/PacketConstructor$Unwrapper;","signature":"(Ljava/lang/Class<*>;Lcom/comphenix/protocol/reflect/EquivalentConverter;)Lcom/comphenix/protocol/injector/PacketConstructor$Unwrapper;"},{"name":"getConvertersForGeneric","access":9,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;>;"},{"name":"getUnwrappers","access":9,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getEffectTypeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getDimensionIDConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Method;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/reflect/Method;"},{"name":"access$102","access":4104,"descriptor":"(Ljava/lang/reflect/Method;)Ljava/lang/reflect/Method;"},{"name":"access$200","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$300","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$400","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$500","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$502","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$600","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$602","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/StructureModifier;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$700","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$702","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$800","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$802","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/StructureModifier;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$900","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1000","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1100","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$1102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;)Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$1200","access":4104,"descriptor":"()Ljava/util/Map;"},{"name":"access$1202","access":4104,"descriptor":"(Ljava/util/Map;)Ljava/util/Map;"},{"name":"access$1300","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1302","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1400","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1402","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1500","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1502","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1600","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"access$1602","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/ChunkCoordIntPair","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"chunkX","access":20,"descriptor":"I"},{"name":"chunkZ","access":20,"descriptor":"I"}],"methods":[{"name":"","access":1,"descriptor":"(II)V"},{"name":"getPosition","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"getChunkX","access":1,"descriptor":"()I"},{"name":"getChunkZ","access":1,"descriptor":"()I"},{"name":"getConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"access$000","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/ConstructorAccessor;"},{"name":"access$002","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/ConstructorAccessor;)Lcom/comphenix/protocol/reflect/accessors/ConstructorAccessor;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/Class;"},{"name":"access$200","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$300","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$202","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;)Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"access$302","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;)Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/ChunkPosition","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"ORIGIN","access":9,"descriptor":"Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"x","access":20,"descriptor":"I"},{"name":"y","access":20,"descriptor":"I"},{"name":"z","access":20,"descriptor":"I"}],"methods":[{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"toVector","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"getX","access":1,"descriptor":"()I"},{"name":"getY","access":1,"descriptor":"()I"},{"name":"getZ","access":1,"descriptor":"()I"},{"name":"add","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/ChunkPosition;)Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"subtract","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/ChunkPosition;)Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"multiply","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"divide","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"getConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$102","access":4104,"descriptor":"(Lcom/comphenix/protocol/reflect/StructureModifier;)Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"access$100","access":4104,"descriptor":"()Lcom/comphenix/protocol/reflect/StructureModifier;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/ClonableWrapper","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getHandle","access":1025,"descriptor":"()Ljava/lang/Object;"},{"name":"deepClone","access":1025,"descriptor":"()Lcom/comphenix/protocol/wrappers/ClonableWrapper;"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers","version":52,"access":1057,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatType","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Direction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Direction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Hand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Hand","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ItemSlot","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ItemSlot","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$SoundCategory","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"SoundCategory","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Particle","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Particle","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ScoreboardAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerDigType","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$CombatEventType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"CombatEventType","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"WorldBorderAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$TitleAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"TitleAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerInfoAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ResourcePackStatus","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"NativeGameMode","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"EntityUseAction","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Difficulty","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Difficulty","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatVisibility","access":16409},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ClientCommand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ClientCommand","access":16409},{"name":"com/comphenix/protocol/PacketType$Protocol","outerName":"com/comphenix/protocol/PacketType","innerName":"Protocol","access":16409},{"name":"com/comphenix/protocol/PacketType$Handshake","outerName":"com/comphenix/protocol/PacketType","innerName":"Handshake","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Client","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Client","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getFromNativeMap","access":9,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter<*>;>;"},{"name":"getFromWrapperMap","access":9,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter<*>;>;"},{"name":"getProtocolClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getClientCommandClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChatVisibilityClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getDifficultyClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getEntityUseActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getGameModeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getResourcePackStatusClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerInfoActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getTitleActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getWorldBorderActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getCombatEventTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerDigTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getPlayerActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getScoreboardActionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getParticleClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getSoundCategoryClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getItemSlotClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getHandClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getDirectionClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getChatTypeClass","access":9,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getProtocolConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getClientCommandConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getChatVisibilityConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getDifficultyConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getEntityUseActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getGameModeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getResourcePackStatusConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getPlayerInfoActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getTitleActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getWorldBorderActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getCombatEventTypeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getPlayerDiggingActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getEntityActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getUpdateScoreActionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getParticleConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getSoundCategoryConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getItemSlotConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getHandConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getDirectionConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getChatTypeConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getGenericConverter","access":9,"descriptor":"(Ljava/lang/Class;Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":";>(Ljava/lang/Class<*>;Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getGenericConverter","access":131081,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":";>(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatType","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatType","access":16409}],"fields":[{"name":"CHAT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatType;"},{"name":"SYSTEM","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatType;"},{"name":"GAME_INFO","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatType;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatType;"},{"name":"getId","access":1,"descriptor":"()B"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ChatVisibility","access":16409}],"fields":[{"name":"FULL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility;"},{"name":"SYSTEM","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility;"},{"name":"HIDDEN","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ClientCommand","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ClientCommand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ClientCommand","access":16409}],"fields":[{"name":"PERFORM_RESPAWN","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ClientCommand;"},{"name":"REQUEST_STATS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ClientCommand;"},{"name":"OPEN_INVENTORY_ACHIEVEMENT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ClientCommand;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ClientCommand;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ClientCommand;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$CombatEventType","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$CombatEventType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"CombatEventType","access":16409}],"fields":[{"name":"ENTER_COMBAT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$CombatEventType;"},{"name":"END_COMBAT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$CombatEventType;"},{"name":"ENTITY_DIED","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$CombatEventType;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$CombatEventType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$CombatEventType;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Difficulty","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Difficulty","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Difficulty","access":16409}],"fields":[{"name":"PEACEFUL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"},{"name":"EASY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"},{"name":"NORMAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"},{"name":"HARD","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$Difficulty;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Direction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Direction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Direction","access":16409}],"fields":[{"name":"DOWN","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"UP","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"NORTH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"SOUTH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"WEST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"EAST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$Direction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"EntityUseAction","access":16409}],"fields":[{"name":"INTERACT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction;"},{"name":"ATTACK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction;"},{"name":"INTERACT_AT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$EntityUseAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Hand","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Hand","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Hand","access":16409}],"fields":[{"name":"MAIN_HAND","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Hand;"},{"name":"OFF_HAND","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Hand;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$Hand;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$Hand;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ItemSlot","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ItemSlot","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ItemSlot","access":16409}],"fields":[{"name":"MAINHAND","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"OFFHAND","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"FEET","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"LEGS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"CHEST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"HEAD","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ItemSlot;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"NativeGameMode","access":16409}],"fields":[{"name":"NOT_SET","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"SURVIVAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"CREATIVE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"ADVENTURE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"SPECTATOR","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"NONE","access":147481,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"toBukkit","access":1,"descriptor":"()Lorg/bukkit/GameMode;"},{"name":"fromBukkit","access":9,"descriptor":"(Lorg/bukkit/GameMode;)Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Particle","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Particle","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Particle","access":16409}],"fields":[{"name":"EXPLOSION_NORMAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"EXPLOSION_LARGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"EXPLOSION_HUGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"FIREWORKS_SPARK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"WATER_BUBBLE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"WATER_SPLASH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"WATER_WAKE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SUSPENDED","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SUSPENDED_DEPTH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"CRIT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"CRIT_MAGIC","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SMOKE_NORMAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SMOKE_LARGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPELL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPELL_INSTANT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPELL_MOB","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPELL_MOB_AMBIENT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPELL_WITCH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"DRIP_WATER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"DRIP_LAVA","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"VILLAGER_ANGRY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"VILLAGER_HAPPY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"TOWN_AURA","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"NOTE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"PORTAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"ENCHANTMENT_TABLE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"FLAME","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"LAVA","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"FOOTSTEP","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"CLOUD","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"REDSTONE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SNOWBALL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SNOW_SHOVEL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SLIME","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"HEART","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"BARRIER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"ITEM_CRACK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"BLOCK_CRACK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"BLOCK_DUST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"WATER_DROP","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"ITEM_TAKE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"MOB_APPEARANCE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"DRAGON_BREATH","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"END_ROD","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"DAMAGE_INDICATOR","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SWEEP_ATTACK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"FALLING_DUST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"TOTEM","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"SPIT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getId","access":1,"descriptor":"()I"},{"name":"isLongDistance","access":1,"descriptor":"()Z"},{"name":"getDataLength","access":1,"descriptor":"()I"},{"name":"getByName","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"getById","access":9,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/EnumWrappers$Particle;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerAction","access":16409}],"fields":[{"name":"START_SNEAKING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"STOP_SNEAKING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"STOP_SLEEPING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"START_SPRINTING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"STOP_SPRINTING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"START_RIDING_JUMP","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"STOP_RIDING_JUMP","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"OPEN_INVENTORY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"START_FALL_FLYING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerDigType","access":16409}],"fields":[{"name":"START_DESTROY_BLOCK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"ABORT_DESTROY_BLOCK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"STOP_DESTROY_BLOCK","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"DROP_ALL_ITEMS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"DROP_ITEM","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"RELEASE_USE_ITEM","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"SWAP_HELD_ITEMS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerDigType;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"PlayerInfoAction","access":16409}],"fields":[{"name":"ADD_PLAYER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"UPDATE_GAME_MODE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"UPDATE_LATENCY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"UPDATE_DISPLAY_NAME","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"REMOVE_PLAYER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$PlayerInfoAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ResourcePackStatus","access":16409}],"fields":[{"name":"SUCCESSFULLY_LOADED","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"},{"name":"DECLINED","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"},{"name":"FAILED_DOWNLOAD","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"},{"name":"ACCEPTED","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ResourcePackStatus;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"ScoreboardAction","access":16409}],"fields":[{"name":"CHANGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction;"},{"name":"REMOVE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$ScoreboardAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$SoundCategory","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$SoundCategory","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"SoundCategory","access":16409}],"fields":[{"name":"MASTER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"MUSIC","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"RECORDS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"WEATHER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"BLOCKS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"HOSTILE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"NEUTRAL","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"PLAYERS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"AMBIENT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"VOICE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"getKey","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getByKey","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$SoundCategory;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$TitleAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$TitleAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"TitleAction","access":16409}],"fields":[{"name":"TITLE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"SUBTITLE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"ACTIONBAR","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"TIMES","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"CLEAR","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"RESET","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$TitleAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"WorldBorderAction","access":16409}],"fields":[{"name":"SET_SIZE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"LERP_SIZE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"SET_CENTER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"INITIALIZE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"SET_WARNING_TIME","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"SET_WARNING_BLOCKS","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/EnumWrappers$WorldBorderAction;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/MinecraftKey","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/MinecraftKey;"},{"name":"fromEnum","access":131081,"descriptor":"(Ljava/lang/Enum;)Lcom/comphenix/protocol/wrappers/MinecraftKey;","signature":"(Ljava/lang/Enum<*>;)Lcom/comphenix/protocol/wrappers/MinecraftKey;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getPrefix","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getKey","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getFullKey","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getEnumFormat","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/MultiBlockChangeInfo","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(SLcom/comphenix/protocol/wrappers/WrappedBlockData;Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Location;Lcom/comphenix/protocol/wrappers/WrappedBlockData;)V"},{"name":"getLocation","access":1,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/Location;"},{"name":"setLocation","access":1,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"setLocation","access":1,"descriptor":"(III)V"},{"name":"getX","access":1,"descriptor":"()I"},{"name":"getAbsoluteX","access":1,"descriptor":"()I"},{"name":"setX","access":1,"descriptor":"(I)V"},{"name":"getY","access":1,"descriptor":"()I"},{"name":"setY","access":1,"descriptor":"(I)V"},{"name":"getZ","access":1,"descriptor":"()I"},{"name":"getAbsoluteZ","access":1,"descriptor":"()I"},{"name":"setZ","access":1,"descriptor":"(I)V"},{"name":"getData","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"setData","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedBlockData;)V"},{"name":"getChunk","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;"},{"name":"getConverter","access":9,"descriptor":"(Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;)Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"getArrayConverter","access":9,"descriptor":"(Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;)Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"(Lcom/comphenix/protocol/wrappers/ChunkCoordIntPair;)Lcom/comphenix/protocol/reflect/EquivalentConverter<[Lcom/comphenix/protocol/wrappers/MultiBlockChangeInfo;>;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/Class;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/MultiBlockChangeInfo;)S"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/MultiBlockChangeInfo;)Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/PlayerInfoData","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"NativeGameMode","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedGameProfile;ILcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;Lcom/comphenix/protocol/wrappers/WrappedChatComponent;)V"},{"name":"getProfile","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"getPing","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getLatency","access":1,"descriptor":"()I"},{"name":"getGameMode","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"getDisplayName","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"getConverter","access":9,"descriptor":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;","signature":"()Lcom/comphenix/protocol/reflect/EquivalentConverter;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$002","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"access$100","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/PlayerInfoData;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"access$200","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/PlayerInfoData;)I"},{"name":"access$300","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/PlayerInfoData;)Lcom/comphenix/protocol/wrappers/EnumWrappers$NativeGameMode;"},{"name":"access$400","access":4104,"descriptor":"(Lcom/comphenix/protocol/wrappers/PlayerInfoData;)Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"}]},{"name":"com/comphenix/protocol/wrappers/WrappedAttribute","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedAttribute$Builder","outerName":"com/comphenix/protocol/wrappers/WrappedAttribute","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Operation","access":16409}],"fields":[{"name":"handle","access":4,"descriptor":"Ljava/lang/Object;"},{"name":"modifier","access":4,"descriptor":"Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"Lcom/comphenix/protocol/reflect/StructureModifier;"}],"methods":[{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedAttribute;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;"},{"name":"newBuilder","access":9,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedAttribute;)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getAttributeKey","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getBaseValue","access":1,"descriptor":"()D"},{"name":"getFinalValue","access":1,"descriptor":"()D"},{"name":"getParentPacket","access":1,"descriptor":"()Lcom/comphenix/protocol/events/PacketContainer;"},{"name":"hasModifier","access":1,"descriptor":"(Ljava/util/UUID;)Z"},{"name":"getModifierByUUID","access":1,"descriptor":"(Ljava/util/UUID;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier;"},{"name":"getModifiers","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"withModifiers","access":1,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/wrappers/WrappedAttribute;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/wrappers/WrappedAttribute;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"checkDouble","access":8,"descriptor":"(D)D"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$102","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"},{"name":"","access":4096,"descriptor":"(Ljava/lang/Object;Lcom/comphenix/protocol/wrappers/WrappedAttribute$1;)V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedAttribute$Builder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedAttribute$Builder","outerName":"com/comphenix/protocol/wrappers/WrappedAttribute","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/PacketType$Play","outerName":"com/comphenix/protocol/PacketType","innerName":"Play","access":9},{"name":"com/comphenix/protocol/PacketType$Play$Server","outerName":"com/comphenix/protocol/PacketType$Play","innerName":"Server","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"baseValue","access":1,"descriptor":"(D)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;"},{"name":"attributeKey","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;"},{"name":"modifiers","access":1,"descriptor":"(Ljava/util/Collection;)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;","signature":"(Ljava/util/Collection;)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;"},{"name":"packet","access":1,"descriptor":"(Lcom/comphenix/protocol/events/PacketContainer;)Lcom/comphenix/protocol/wrappers/WrappedAttribute$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedAttribute;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedAttribute;Lcom/comphenix/protocol/wrappers/WrappedAttribute$1;)V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Operation","access":16409}],"fields":[{"name":"modifier","access":4,"descriptor":"Lcom/comphenix/protocol/reflect/StructureModifier;","signature":"Lcom/comphenix/protocol/reflect/StructureModifier;"}],"methods":[{"name":"","access":4,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;DLcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;)V"},{"name":"","access":4,"descriptor":"(Ljava/lang/Object;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"","access":4,"descriptor":"(Ljava/lang/Object;Ljava/util/UUID;Ljava/lang/String;DLcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;)V","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"newBuilder","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;"},{"name":"newBuilder","access":9,"descriptor":"(Ljava/util/UUID;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;"},{"name":"newBuilder","access":9,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getUUID","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getOperation","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"getAmount","access":1,"descriptor":"()D"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"setPendingSynchronization","access":1,"descriptor":"(Z)V"},{"name":"isPendingSynchronization","access":1,"descriptor":"()Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/reflect/Constructor;"},{"name":"access$102","access":4104,"descriptor":"(Ljava/lang/reflect/Constructor;)Ljava/lang/reflect/Constructor;"}]},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Operation","access":16409},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"uuid","access":1,"descriptor":"(Ljava/util/UUID;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"operation","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"name","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"amount","access":1,"descriptor":"(D)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Builder;"},{"name":"build","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier;"},{"name":"","access":4096,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier;Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$1;)V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation","outerName":"com/comphenix/protocol/wrappers/WrappedAttributeModifier","innerName":"Operation","access":16409}],"fields":[{"name":"ADD_NUMBER","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"MULTIPLY_PERCENTAGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"ADD_PERCENTAGE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"getId","access":1,"descriptor":"()I"},{"name":"fromId","access":9,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedAttributeModifier$Operation;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedBlockData","version":52,"access":1057,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","interfaces":["com/comphenix/protocol/wrappers/ClonableWrapper"],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/Material;"},{"name":"getData","access":132097,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setType","access":1025,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"setData","access":132097,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeAndData","access":132097,"descriptor":"(Lorg/bukkit/Material;I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"deepClone","access":1025,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"createData","access":9,"descriptor":"(Lorg/bukkit/Material;)Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"createData","access":131081,"descriptor":"(Lorg/bukkit/Material;I)Lcom/comphenix/protocol/wrappers/WrappedBlockData;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"createData","access":9,"descriptor":"(Lorg/bukkit/block/data/BlockData;)Lcom/comphenix/protocol/wrappers/WrappedBlockData;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"deepClone","access":4161,"descriptor":"()Lcom/comphenix/protocol/wrappers/ClonableWrapper;"},{"name":"access$000","access":4104,"descriptor":"()Ljava/lang/Class;"},{"name":"access$100","access":4104,"descriptor":"()Ljava/lang/Class;"},{"name":"access$200","access":4104,"descriptor":"()Ljava/lang/Class;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedChatComponent","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","methods":[{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"fromJson","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"fromText","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"fromChatMessage","access":9,"descriptor":"(Ljava/lang/String;)[Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"getJson","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setJson","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"deepClone","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedChunkCoordinate","version":52,"access":33,"signature":"Lcom/comphenix/protocol/wrappers/AbstractWrapper;Ljava/lang/Comparable;","superName":"com/comphenix/protocol/wrappers/AbstractWrapper","interfaces":["java/lang/Comparable"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Comparable;)V"},{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/ChunkPosition;)V"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"getX","access":1,"descriptor":"()I"},{"name":"setX","access":1,"descriptor":"(I)V"},{"name":"getY","access":1,"descriptor":"()I"},{"name":"setY","access":1,"descriptor":"(I)V"},{"name":"getZ","access":1,"descriptor":"()I"},{"name":"setZ","access":1,"descriptor":"(I)V"},{"name":"toPosition","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/ChunkPosition;"},{"name":"compareTo","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedChunkCoordinate;)I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"}]},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher","version":52,"access":33,"signature":"Lcom/comphenix/protocol/wrappers/AbstractWrapper;Ljava/lang/Iterable;Lcom/comphenix/protocol/wrappers/ClonableWrapper;","superName":"com/comphenix/protocol/wrappers/AbstractWrapper","interfaces":["java/lang/Iterable","com/comphenix/protocol/wrappers/ClonableWrapper"],"innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Registry","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Registry","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Serializer","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"WrappedDataWatcherObject","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyFieldContract","innerName":"Builder","access":9},{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;)V"},{"name":"","access":1,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"asMap","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getIndexes","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getWatchableObjects","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"iterator","access":1,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"},{"name":"size","access":1,"descriptor":"()I"},{"name":"getWatchableObject","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedWatchableObject;"},{"name":"removeObject","access":131073,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedWatchableObject;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"remove","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedWatchableObject;"},{"name":"hasIndex","access":1,"descriptor":"(I)Z"},{"name":"indexSet","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"clear","access":1,"descriptor":"()V"},{"name":"getByte","access":1,"descriptor":"(I)Ljava/lang/Byte;"},{"name":"getShort","access":1,"descriptor":"(I)Ljava/lang/Short;"},{"name":"getInteger","access":1,"descriptor":"(I)Ljava/lang/Integer;"},{"name":"getFloat","access":1,"descriptor":"(I)Ljava/lang/Float;"},{"name":"getString","access":1,"descriptor":"(I)Ljava/lang/String;"},{"name":"getItemStack","access":1,"descriptor":"(I)Lorg/bukkit/inventory/ItemStack;"},{"name":"getChunkCoordinate","access":1,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedChunkCoordinate;"},{"name":"getObject","access":1,"descriptor":"(I)Ljava/lang/Object;"},{"name":"getObject","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;)Ljava/lang/Object;"},{"name":"setObject","access":1,"descriptor":"(ILjava/lang/Object;Z)V"},{"name":"setObject","access":1,"descriptor":"(ILjava/lang/Object;)V"},{"name":"setObject","access":1,"descriptor":"(ILcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;Ljava/lang/Object;Z)V"},{"name":"setObject","access":1,"descriptor":"(ILcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;Ljava/lang/Object;)V"},{"name":"setObject","access":1,"descriptor":"(ILcom/comphenix/protocol/wrappers/WrappedWatchableObject;Z)V"},{"name":"setObject","access":1,"descriptor":"(ILcom/comphenix/protocol/wrappers/WrappedWatchableObject;)V"},{"name":"setObject","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;Lcom/comphenix/protocol/wrappers/WrappedWatchableObject;Z)V"},{"name":"setObject","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;Lcom/comphenix/protocol/wrappers/WrappedWatchableObject;)V"},{"name":"setObject","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;Ljava/lang/Object;Z)V"},{"name":"setObject","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;Ljava/lang/Object;)V"},{"name":"deepClone","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher;"},{"name":"getEntityWatcher","access":9,"descriptor":"(Lorg/bukkit/entity/Entity;)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher;"},{"name":"getEntity","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"setEntity","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;)V"},{"name":"getTypeID","access":9,"descriptor":"(Ljava/lang/Class;)Ljava/lang/Integer;","signature":"(Ljava/lang/Class<*>;)Ljava/lang/Integer;"},{"name":"getTypeClass","access":9,"descriptor":"(I)Ljava/lang/Class;","signature":"(I)Ljava/lang/Class<*>;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"deepClone","access":4161,"descriptor":"()Lcom/comphenix/protocol/wrappers/ClonableWrapper;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Registry","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Serializer","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Registry","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Registry","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"get","access":9,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"get","access":9,"descriptor":"(Ljava/lang/Class;Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;","signature":"(Ljava/lang/Class<*>;Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getChatComponentSerializer","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getChatComponentSerializer","access":9,"descriptor":"(Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getItemStackSerializer","access":9,"descriptor":"(Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getBlockDataSerializer","access":9,"descriptor":"(Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getVectorSerializer","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getBlockPositionSerializer","access":9,"descriptor":"(Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getDirectionSerializer","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getUUIDSerializer","access":9,"descriptor":"(Z)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"getNBTCompoundSerializer","access":9,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Serializer","access":9}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;Z)V","signature":"(Ljava/lang/Class<*>;Ljava/lang/Object;Z)V"},{"name":"getType","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"isOptional","access":1,"descriptor":"()Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"WrappedDataWatcherObject","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Serializer","access":9},{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$Registry","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"Registry","access":9}],"methods":[{"name":"","access":4,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"","access":1,"descriptor":"(ILcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;)V"},{"name":"fromIndex","access":8,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;"},{"name":"getIndex","access":1,"descriptor":"()I"},{"name":"getSerializer","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer;"},{"name":"checkSerializer","access":1,"descriptor":"()V"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"getHandleType","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedGameProfile","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","innerClasses":[{"name":"com/comphenix/protocol/error/Report$ReportBuilder","outerName":"com/comphenix/protocol/error/Report","innerName":"ReportBuilder","access":9}],"fields":[{"name":"REPORT_INVALID_UUID","access":25,"descriptor":"Lcom/comphenix/protocol/error/ReportType;"}],"methods":[{"name":"fromPlayer","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"fromOfflinePlayer","access":9,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"","access":131073,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;)V"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"getUUID","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getId","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getProperties","access":1,"descriptor":"()Lcom/google/common/collect/Multimap;","signature":"()Lcom/google/common/collect/Multimap;"},{"name":"withName","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"withId","access":1,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedGameProfile;"},{"name":"isComplete","access":1,"descriptor":"()Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedParticle","version":52,"access":33,"signature":"Ljava/lang/Object;","superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract$Builder","outerName":"com/comphenix/protocol/reflect/fuzzy/FuzzyMethodContract","innerName":"Builder","access":9}],"methods":[{"name":"getParticle","access":1,"descriptor":"()Lorg/bukkit/Particle;"},{"name":"getData","access":1,"descriptor":"()Ljava/lang/Object;","signature":"()TT;"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedParticle;"},{"name":"create","access":9,"descriptor":"(Lorg/bukkit/Particle;Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedParticle;","signature":"(Lorg/bukkit/Particle;TT;)Lcom/comphenix/protocol/wrappers/WrappedParticle;"}]},{"name":"com/comphenix/protocol/wrappers/WrappedServerPing","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","interfaces":["com/comphenix/protocol/wrappers/ClonableWrapper"],"innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage","outerName":"com/comphenix/protocol/wrappers/WrappedServerPing","innerName":"CompressedImage","access":9},{"name":"com/comphenix/protocol/PacketType$Status","outerName":"com/comphenix/protocol/PacketType","innerName":"Status","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"resetPlayers","access":4,"descriptor":"()V"},{"name":"resetVersion","access":4,"descriptor":"()V"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedServerPing;"},{"name":"fromJson","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedServerPing;"},{"name":"getMotD","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedChatComponent;"},{"name":"setMotD","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedChatComponent;)V"},{"name":"setMotD","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getFavicon","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;"},{"name":"setFavicon","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;)V"},{"name":"getPlayersOnline","access":1,"descriptor":"()I"},{"name":"setPlayersOnline","access":1,"descriptor":"(I)V"},{"name":"getPlayersMaximum","access":1,"descriptor":"()I"},{"name":"setPlayersMaximum","access":1,"descriptor":"(I)V"},{"name":"setPlayersVisible","access":1,"descriptor":"(Z)V"},{"name":"isPlayersVisible","access":1,"descriptor":"()Z"},{"name":"getPlayers","access":1,"descriptor":"()Lcom/google/common/collect/ImmutableList;","signature":"()Lcom/google/common/collect/ImmutableList;"},{"name":"setPlayers","access":1,"descriptor":"(Ljava/lang/Iterable;)V","signature":"(Ljava/lang/Iterable<+Lcom/comphenix/protocol/wrappers/WrappedGameProfile;>;)V"},{"name":"setBukkitPlayers","access":1,"descriptor":"(Ljava/lang/Iterable;)V","signature":"(Ljava/lang/Iterable<+Lorg/bukkit/entity/Player;>;)V"},{"name":"getVersionName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setVersionName","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getVersionProtocol","access":1,"descriptor":"()I"},{"name":"setVersionProtocol","access":1,"descriptor":"(I)V"},{"name":"deepClone","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedServerPing;"},{"name":"toJson","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"deepClone","access":4161,"descriptor":"()Lcom/comphenix/protocol/wrappers/ClonableWrapper;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage","outerName":"com/comphenix/protocol/wrappers/WrappedServerPing","innerName":"CompressedImage","access":9}],"fields":[{"name":"mime","access":68,"descriptor":"Ljava/lang/String;"},{"name":"data","access":68,"descriptor":"[B"},{"name":"encoded","access":68,"descriptor":"Ljava/lang/String;"}],"methods":[{"name":"","access":4,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;[B)V"},{"name":"fromPng","access":9,"descriptor":"(Ljava/io/InputStream;)Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;","exceptions":["java/io/IOException"]},{"name":"fromPng","access":9,"descriptor":"([B)Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;"},{"name":"fromBase64Png","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;"},{"name":"fromPng","access":9,"descriptor":"(Ljava/awt/image/RenderedImage;)Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;","exceptions":["java/io/IOException"]},{"name":"fromEncodedText","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage;"},{"name":"getMime","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getDataCopy","access":1,"descriptor":"()[B"},{"name":"getData","access":4,"descriptor":"()[B"},{"name":"getImage","access":1,"descriptor":"()Ljava/awt/image/BufferedImage;","exceptions":["java/io/IOException"]},{"name":"toEncodedText","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/comphenix/protocol/wrappers/WrappedSignedProperty","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"},{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedSignedProperty;"},{"name":"fromValues","access":9,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedSignedProperty;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getSignature","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getValue","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"hasSignature","access":1,"descriptor":"()Z"},{"name":"isSignatureValid","access":1,"descriptor":"(Ljava/security/PublicKey;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedStatistic","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","methods":[{"name":"fromHandle","access":9,"descriptor":"(Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/WrappedStatistic;"},{"name":"fromName","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/WrappedStatistic;"},{"name":"values","access":9,"descriptor":"()Ljava/lang/Iterable;","signature":"()Ljava/lang/Iterable;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/WrappedWatchableObject","version":52,"access":33,"superName":"com/comphenix/protocol/wrappers/AbstractWrapper","innerClasses":[{"name":"com/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject","outerName":"com/comphenix/protocol/wrappers/WrappedDataWatcher","innerName":"WrappedDataWatcherObject","access":9},{"name":"com/comphenix/protocol/wrappers/EnumWrappers$Direction","outerName":"com/comphenix/protocol/wrappers/EnumWrappers","innerName":"Direction","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"","access":1,"descriptor":"(ILjava/lang/Object;)V"},{"name":"","access":1,"descriptor":"(Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;Ljava/lang/Object;)V"},{"name":"getWatcherObject","access":1,"descriptor":"()Lcom/comphenix/protocol/wrappers/WrappedDataWatcher$WrappedDataWatcherObject;"},{"name":"getIndex","access":1,"descriptor":"()I"},{"name":"getValue","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"getRawValue","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"setValue","access":1,"descriptor":"(Ljava/lang/Object;Z)V"},{"name":"setValue","access":1,"descriptor":"(Ljava/lang/Object;)V"},{"name":"getDirtyState","access":1,"descriptor":"()Z"},{"name":"setDirtyState","access":1,"descriptor":"(Z)V"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getWrapped","access":8,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"getUnwrapped","access":8,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/nbt/NbtBase","version":52,"access":1537,"signature":"Ljava/lang/Object;Lcom/comphenix/protocol/wrappers/ClonableWrapper;","superName":"java/lang/Object","interfaces":["com/comphenix/protocol/wrappers/ClonableWrapper"],"methods":[{"name":"accept","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtVisitor;)Z"},{"name":"getType","access":1025,"descriptor":"()Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setName","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getValue","access":1025,"descriptor":"()Ljava/lang/Object;","signature":"()TTType;"},{"name":"setValue","access":1025,"descriptor":"(Ljava/lang/Object;)V","signature":"(TTType;)V"},{"name":"deepClone","access":1025,"descriptor":"()Lcom/comphenix/protocol/wrappers/nbt/NbtBase;","signature":"()Lcom/comphenix/protocol/wrappers/nbt/NbtBase;"},{"name":"getHandle","access":1,"descriptor":"()Ljava/lang/Object;"},{"name":"deepClone","access":4161,"descriptor":"()Lcom/comphenix/protocol/wrappers/ClonableWrapper;"}]},{"name":"com/comphenix/protocol/wrappers/nbt/NbtCompound","version":52,"access":1537,"signature":"Ljava/lang/Object;Lcom/comphenix/protocol/wrappers/nbt/NbtBase;>;>;Ljava/lang/Iterable;>;","superName":"java/lang/Object","interfaces":["com/comphenix/protocol/wrappers/nbt/NbtBase","java/lang/Iterable"],"methods":[{"name":"getValue","access":132097,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;>;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"containsKey","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getKeys","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getValue","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase;"},{"name":"getValueOrDefault","access":1025,"descriptor":"(Ljava/lang/String;Lcom/comphenix/protocol/wrappers/nbt/NbtType;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase;","signature":"(Ljava/lang/String;Lcom/comphenix/protocol/wrappers/nbt/NbtType;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase<*>;"},{"name":"put","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","parameterAnnotations":[{"descriptor":"Ljavax/annotation/Nonnull;","visible":true,"parameter":0,"values":{}}]},{"name":"getString","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"getStringOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","signature":"(Ljava/lang/String;Lcom/comphenix/protocol/wrappers/nbt/NbtBase<*>;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getByte","access":1025,"descriptor":"(Ljava/lang/String;)B"},{"name":"getByteOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)B"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;B)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getShort","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/Short;"},{"name":"getShortOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)S"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;S)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getInteger","access":1025,"descriptor":"(Ljava/lang/String;)I"},{"name":"getIntegerOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)I"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;I)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getLong","access":1025,"descriptor":"(Ljava/lang/String;)J"},{"name":"getLongOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)J"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;J)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getFloat","access":1025,"descriptor":"(Ljava/lang/String;)F"},{"name":"getFloatOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)F"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;F)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getDouble","access":1025,"descriptor":"(Ljava/lang/String;)D"},{"name":"getDoubleOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)D"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;D)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getByteArray","access":1025,"descriptor":"(Ljava/lang/String;)[B"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;[B)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getIntegerArray","access":1025,"descriptor":"(Ljava/lang/String;)[I"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;[I)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"putObject","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getObject","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;"},{"name":"getCompound","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getCompoundOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"put","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"getList","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtList;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtList;"},{"name":"getListOrDefault","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtList;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtList;"},{"name":"put","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"put","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/Collection;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;","signature":"(Ljava/lang/String;Ljava/util/Collection<+Lcom/comphenix/protocol/wrappers/nbt/NbtBase;>;)Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;"},{"name":"remove","access":1025,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase;","signature":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtBase<*>;"},{"name":"iterator","access":1025,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;>;"},{"name":"getValue","access":4161,"descriptor":"()Ljava/lang/Object;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"com/comphenix/protocol/wrappers/nbt/NbtList","version":52,"access":1537,"signature":"Ljava/lang/Object;Lcom/comphenix/protocol/wrappers/nbt/NbtBase;>;>;Ljava/lang/Iterable;","superName":"java/lang/Object","interfaces":["com/comphenix/protocol/wrappers/nbt/NbtBase","java/lang/Iterable"],"fields":[{"name":"EMPTY_NAME","access":25,"descriptor":"Ljava/lang/String;","constant":""}],"methods":[{"name":"getElementType","access":1025,"descriptor":"()Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"setElementType","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtType;)V"},{"name":"addClosest","access":1025,"descriptor":"(Ljava/lang/Object;)V"},{"name":"add","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)V","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)V"},{"name":"add","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"add","access":1025,"descriptor":"(B)V"},{"name":"add","access":1025,"descriptor":"(S)V"},{"name":"add","access":1025,"descriptor":"(I)V"},{"name":"add","access":1025,"descriptor":"(J)V"},{"name":"add","access":1025,"descriptor":"(D)V"},{"name":"add","access":1025,"descriptor":"([B)V"},{"name":"add","access":1025,"descriptor":"([I)V"},{"name":"remove","access":1025,"descriptor":"(Ljava/lang/Object;)V"},{"name":"getValue","access":1025,"descriptor":"(I)Ljava/lang/Object;","signature":"(I)TTType;"},{"name":"size","access":1025,"descriptor":"()I"},{"name":"asCollection","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;>;"},{"name":"iterator","access":1025,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"}]},{"name":"com/comphenix/protocol/wrappers/nbt/NbtType","version":52,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"TAG_END","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_BYTE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_SHORT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_INT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_LONG","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_FLOAT","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_DOUBLE","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_BYTE_ARRAY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_INT_ARRAY","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_STRING","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_LIST","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"TAG_COMPOUND","access":16409,"descriptor":"Lcom/comphenix/protocol/wrappers/nbt/NbtType;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"isComposite","access":1,"descriptor":"()Z"},{"name":"getRawID","access":1,"descriptor":"()I"},{"name":"getValueType","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getTypeFromID","access":9,"descriptor":"(I)Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"getTypeFromClass","access":9,"descriptor":"(Ljava/lang/Class;)Lcom/comphenix/protocol/wrappers/nbt/NbtType;","signature":"(Ljava/lang/Class<*>;)Lcom/comphenix/protocol/wrappers/nbt/NbtType;"},{"name":"","access":8,"descriptor":"()V"}]},{"name":"com/comphenix/protocol/wrappers/nbt/NbtVisitor","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"visit","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase;)Z","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtBase<*>;)Z"},{"name":"visitEnter","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList;)Z","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList<*>;)Z"},{"name":"visitEnter","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;)Z"},{"name":"visitLeave","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList;)Z","signature":"(Lcom/comphenix/protocol/wrappers/nbt/NbtList<*>;)Z"},{"name":"visitLeave","access":1025,"descriptor":"(Lcom/comphenix/protocol/wrappers/nbt/NbtCompound;)Z"}]},{"name":"com/gmail/nossr50/api/AbilityAPI","version":61,"access":49,"superName":"java/lang/Object","methods":[{"name":"berserkEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"gigaDrillBreakerEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"greenTerraEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"serratedStrikesEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"skullSplitterEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"superBreakerEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"treeFellerEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"isAnyAbilityEnabled","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"resetCooldowns","access":9,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"setBerserkCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setGigaDrillBreakerCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setGreenTerraCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setSerratedStrikesCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setSkullSplitterCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setSuperBreakerCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"setTreeFellerCooldown","access":9,"descriptor":"(Lorg/bukkit/entity/Player;J)V"},{"name":"isBleeding","access":9,"descriptor":"(Lorg/bukkit/entity/LivingEntity;)Z"}]},{"name":"com/gmail/nossr50/events/fake/FakeBlockBreakEvent","version":61,"access":33,"superName":"org/bukkit/event/block/BlockBreakEvent","interfaces":["com/gmail/nossr50/events/fake/FakeEvent"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/block/Block;Lorg/bukkit/entity/Player;)V"}]},{"name":"com/gmail/nossr50/events/fake/FakeEvent","version":61,"access":1537,"superName":"java/lang/Object"},{"name":"org/bukkit/Achievement","version":51,"access":147505,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"fields":[{"name":"OPEN_INVENTORY","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"MINE_WOOD","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_WORKBENCH","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_FURNACE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"ACQUIRE_IRON","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_HOE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"MAKE_BREAD","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BAKE_CAKE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_BETTER_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"COOK_FISH","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"ON_A_RAIL","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BUILD_SWORD","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"KILL_ENEMY","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"KILL_COW","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"FLY_PIG","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"SNIPE_SKELETON","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"GET_DIAMONDS","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"NETHER_PORTAL","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"GHAST_RETURN","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"GET_BLAZE_ROD","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BREW_POTION","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"END_PORTAL","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"THE_END","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"ENCHANTMENTS","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"OVERKILL","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BOOKCASE","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"EXPLORE_ALL_BIOMES","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"SPAWN_WITHER","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"KILL_WITHER","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"FULL_BEACON","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"BREED_COW","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"DIAMONDS_TO_YOU","access":16409,"descriptor":"Lorg/bukkit/Achievement;"},{"name":"OVERPOWERED","access":16409,"descriptor":"Lorg/bukkit/Achievement;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"hasParent","access":1,"descriptor":"()Z"},{"name":"getParent","access":1,"descriptor":"()Lorg/bukkit/Achievement;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Achievement;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Achievement;"}]},{"name":"org/bukkit/BanEntry","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getTarget","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getCreated","access":1025,"descriptor":"()Ljava/util/Date;"},{"name":"setCreated","access":1025,"descriptor":"(Ljava/util/Date;)V"},{"name":"getSource","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setSource","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getExpiration","access":1025,"descriptor":"()Ljava/util/Date;"},{"name":"setExpiration","access":1025,"descriptor":"(Ljava/util/Date;)V"},{"name":"getReason","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setReason","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"save","access":1025,"descriptor":"()V"}]},{"name":"org/bukkit/BanList","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/BanList$Type","outerName":"org/bukkit/BanList","innerName":"Type","access":16409}],"methods":[{"name":"getBanEntry","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/BanEntry;"},{"name":"addBan","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;Ljava/lang/String;)Lorg/bukkit/BanEntry;"},{"name":"getBanEntries","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"isBanned","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"pardon","access":1025,"descriptor":"(Ljava/lang/String;)V"}]},{"name":"org/bukkit/BanList$Type","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/BanList$Type","outerName":"org/bukkit/BanList","innerName":"Type","access":16409}],"fields":[{"name":"NAME","access":16409,"descriptor":"Lorg/bukkit/BanList$Type;"},{"name":"IP","access":16409,"descriptor":"Lorg/bukkit/BanList$Type;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/BanList$Type;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/BanList$Type;"}]},{"name":"org/bukkit/BlockChangeDelegate","version":51,"access":132609,"superName":"java/lang/Object","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"methods":[{"name":"setRawTypeId","access":132097,"descriptor":"(IIII)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setRawTypeIdAndData","access":132097,"descriptor":"(IIIII)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeId","access":132097,"descriptor":"(IIII)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeIdAndData","access":132097,"descriptor":"(IIIII)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getTypeId","access":132097,"descriptor":"(III)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHeight","access":1025,"descriptor":"()I"},{"name":"isEmpty","access":1025,"descriptor":"(III)Z"}]},{"name":"org/bukkit/Bukkit","version":51,"access":49,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/BanList$Type","outerName":"org/bukkit/BanList","innerName":"Type","access":16409},{"name":"org/bukkit/Server$Spigot","outerName":"org/bukkit/Server","innerName":"Spigot","access":9},{"name":"org/bukkit/Warning$WarningState","outerName":"org/bukkit/Warning","innerName":"WarningState","access":16409},{"name":"org/bukkit/generator/ChunkGenerator$ChunkData","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"ChunkData","access":1545}],"methods":[{"name":"getServer","access":9,"descriptor":"()Lorg/bukkit/Server;"},{"name":"setServer","access":9,"descriptor":"(Lorg/bukkit/Server;)V"},{"name":"getName","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getVersion","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getBukkitVersion","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getOnlinePlayers","access":9,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection<+Lorg/bukkit/entity/Player;>;"},{"name":"getMaxPlayers","access":9,"descriptor":"()I"},{"name":"getPort","access":9,"descriptor":"()I"},{"name":"getViewDistance","access":9,"descriptor":"()I"},{"name":"getIp","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getServerName","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getServerId","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getWorldType","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getGenerateStructures","access":9,"descriptor":"()Z"},{"name":"getAllowEnd","access":9,"descriptor":"()Z"},{"name":"getAllowNether","access":9,"descriptor":"()Z"},{"name":"hasWhitelist","access":9,"descriptor":"()Z"},{"name":"setWhitelist","access":9,"descriptor":"(Z)V"},{"name":"getWhitelistedPlayers","access":9,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"reloadWhitelist","access":9,"descriptor":"()V"},{"name":"broadcastMessage","access":9,"descriptor":"(Ljava/lang/String;)I"},{"name":"getUpdateFolder","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getUpdateFolderFile","access":9,"descriptor":"()Ljava/io/File;"},{"name":"getConnectionThrottle","access":9,"descriptor":"()J"},{"name":"getTicksPerAnimalSpawns","access":9,"descriptor":"()I"},{"name":"getTicksPerMonsterSpawns","access":9,"descriptor":"()I"},{"name":"getPlayer","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Player;"},{"name":"getPlayerExact","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Player;"},{"name":"matchPlayer","access":9,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getPlayer","access":9,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/entity/Player;"},{"name":"getPluginManager","access":9,"descriptor":"()Lorg/bukkit/plugin/PluginManager;"},{"name":"getScheduler","access":9,"descriptor":"()Lorg/bukkit/scheduler/BukkitScheduler;"},{"name":"getServicesManager","access":9,"descriptor":"()Lorg/bukkit/plugin/ServicesManager;"},{"name":"getWorlds","access":9,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"createWorld","access":9,"descriptor":"(Lorg/bukkit/WorldCreator;)Lorg/bukkit/World;"},{"name":"unloadWorld","access":9,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"unloadWorld","access":9,"descriptor":"(Lorg/bukkit/World;Z)Z"},{"name":"getWorld","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/World;"},{"name":"getWorld","access":9,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/World;"},{"name":"getMap","access":131081,"descriptor":"(S)Lorg/bukkit/map/MapView;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"createMap","access":9,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/map/MapView;"},{"name":"reload","access":9,"descriptor":"()V"},{"name":"reloadData","access":9,"descriptor":"()V"},{"name":"getLogger","access":9,"descriptor":"()Ljava/util/logging/Logger;"},{"name":"getPluginCommand","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/PluginCommand;"},{"name":"savePlayers","access":9,"descriptor":"()V"},{"name":"dispatchCommand","access":9,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)Z","exceptions":["org/bukkit/command/CommandException"]},{"name":"addRecipe","access":9,"descriptor":"(Lorg/bukkit/inventory/Recipe;)Z"},{"name":"getRecipesFor","access":9,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/List;","signature":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/List;"},{"name":"recipeIterator","access":9,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"},{"name":"clearRecipes","access":9,"descriptor":"()V"},{"name":"resetRecipes","access":9,"descriptor":"()V"},{"name":"getCommandAliases","access":9,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getSpawnRadius","access":9,"descriptor":"()I"},{"name":"setSpawnRadius","access":9,"descriptor":"(I)V"},{"name":"getOnlineMode","access":9,"descriptor":"()Z"},{"name":"getAllowFlight","access":9,"descriptor":"()Z"},{"name":"isHardcore","access":9,"descriptor":"()Z"},{"name":"shutdown","access":9,"descriptor":"()V"},{"name":"broadcast","access":9,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)I"},{"name":"getOfflinePlayer","access":131081,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/OfflinePlayer;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getOfflinePlayer","access":9,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/OfflinePlayer;"},{"name":"getIPBans","access":9,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"banIP","access":9,"descriptor":"(Ljava/lang/String;)V"},{"name":"unbanIP","access":9,"descriptor":"(Ljava/lang/String;)V"},{"name":"getBannedPlayers","access":9,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getBanList","access":9,"descriptor":"(Lorg/bukkit/BanList$Type;)Lorg/bukkit/BanList;"},{"name":"getOperators","access":9,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getDefaultGameMode","access":9,"descriptor":"()Lorg/bukkit/GameMode;"},{"name":"setDefaultGameMode","access":9,"descriptor":"(Lorg/bukkit/GameMode;)V"},{"name":"getConsoleSender","access":9,"descriptor":"()Lorg/bukkit/command/ConsoleCommandSender;"},{"name":"getWorldContainer","access":9,"descriptor":"()Ljava/io/File;"},{"name":"getOfflinePlayers","access":9,"descriptor":"()[Lorg/bukkit/OfflinePlayer;"},{"name":"getMessenger","access":9,"descriptor":"()Lorg/bukkit/plugin/messaging/Messenger;"},{"name":"getHelpMap","access":9,"descriptor":"()Lorg/bukkit/help/HelpMap;"},{"name":"createInventory","access":9,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;Lorg/bukkit/event/inventory/InventoryType;)Lorg/bukkit/inventory/Inventory;"},{"name":"createInventory","access":9,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;Lorg/bukkit/event/inventory/InventoryType;Ljava/lang/String;)Lorg/bukkit/inventory/Inventory;"},{"name":"createInventory","access":9,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;I)Lorg/bukkit/inventory/Inventory;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"createInventory","access":9,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;ILjava/lang/String;)Lorg/bukkit/inventory/Inventory;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"createMerchant","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/Merchant;"},{"name":"getMonsterSpawnLimit","access":9,"descriptor":"()I"},{"name":"getAnimalSpawnLimit","access":9,"descriptor":"()I"},{"name":"getWaterAnimalSpawnLimit","access":9,"descriptor":"()I"},{"name":"getAmbientSpawnLimit","access":9,"descriptor":"()I"},{"name":"isPrimaryThread","access":9,"descriptor":"()Z"},{"name":"getMotd","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getShutdownMessage","access":9,"descriptor":"()Ljava/lang/String;"},{"name":"getWarningState","access":9,"descriptor":"()Lorg/bukkit/Warning$WarningState;"},{"name":"getItemFactory","access":9,"descriptor":"()Lorg/bukkit/inventory/ItemFactory;"},{"name":"getScoreboardManager","access":9,"descriptor":"()Lorg/bukkit/scoreboard/ScoreboardManager;"},{"name":"getServerIcon","access":9,"descriptor":"()Lorg/bukkit/util/CachedServerIcon;"},{"name":"loadServerIcon","access":9,"descriptor":"(Ljava/io/File;)Lorg/bukkit/util/CachedServerIcon;","exceptions":["java/lang/IllegalArgumentException","java/lang/Exception"]},{"name":"loadServerIcon","access":9,"descriptor":"(Ljava/awt/image/BufferedImage;)Lorg/bukkit/util/CachedServerIcon;","exceptions":["java/lang/IllegalArgumentException","java/lang/Exception"]},{"name":"setIdleTimeout","access":9,"descriptor":"(I)V"},{"name":"getIdleTimeout","access":9,"descriptor":"()I"},{"name":"createChunkData","access":9,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/generator/ChunkGenerator$ChunkData;"},{"name":"createBossBar","access":137,"descriptor":"(Ljava/lang/String;Lorg/bukkit/boss/BarColor;Lorg/bukkit/boss/BarStyle;[Lorg/bukkit/boss/BarFlag;)Lorg/bukkit/boss/BossBar;"},{"name":"getEntity","access":9,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/entity/Entity;"},{"name":"getAdvancement","access":9,"descriptor":"(Lorg/bukkit/NamespacedKey;)Lorg/bukkit/advancement/Advancement;"},{"name":"advancementIterator","access":9,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"},{"name":"getUnsafe","access":131081,"descriptor":"()Lorg/bukkit/UnsafeValues;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"spigot","access":9,"descriptor":"()Lorg/bukkit/Server$Spigot;"}]},{"name":"org/bukkit/ChatColor","version":51,"access":16417,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"BLACK","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_BLUE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_GREEN","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_AQUA","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_RED","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_PURPLE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"GOLD","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"GRAY","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"DARK_GRAY","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"BLUE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"GREEN","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"AQUA","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"RED","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"LIGHT_PURPLE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"YELLOW","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"WHITE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"MAGIC","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"BOLD","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"STRIKETHROUGH","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"UNDERLINE","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"ITALIC","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"RESET","access":16409,"descriptor":"Lorg/bukkit/ChatColor;"},{"name":"COLOR_CHAR","access":25,"descriptor":"C","constant":{"type":"Integer","value":"167"}}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"asBungee","access":1,"descriptor":"()Lnet/md_5/bungee/api/ChatColor;"},{"name":"getChar","access":1,"descriptor":"()C"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"isFormat","access":1,"descriptor":"()Z"},{"name":"isColor","access":1,"descriptor":"()Z"},{"name":"getByChar","access":9,"descriptor":"(C)Lorg/bukkit/ChatColor;"},{"name":"getByChar","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/ChatColor;"},{"name":"stripColor","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"translateAlternateColorCodes","access":9,"descriptor":"(CLjava/lang/String;)Ljava/lang/String;"},{"name":"getLastColors","access":9,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/ChatColor;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/ChatColor;"},{"name":"","access":4096,"descriptor":"(Ljava/lang/String;ICILorg/bukkit/ChatColor;)V"},{"name":"","access":4096,"descriptor":"(Ljava/lang/String;ICIZLorg/bukkit/ChatColor;)V"}]},{"name":"org/bukkit/Chunk","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getX","access":1025,"descriptor":"()I"},{"name":"getZ","access":1025,"descriptor":"()I"},{"name":"getWorld","access":1025,"descriptor":"()Lorg/bukkit/World;"},{"name":"getBlock","access":1025,"descriptor":"(III)Lorg/bukkit/block/Block;"},{"name":"getChunkSnapshot","access":1025,"descriptor":"()Lorg/bukkit/ChunkSnapshot;"},{"name":"getChunkSnapshot","access":1025,"descriptor":"(ZZZ)Lorg/bukkit/ChunkSnapshot;"},{"name":"getEntities","access":1025,"descriptor":"()[Lorg/bukkit/entity/Entity;"},{"name":"getTileEntities","access":1025,"descriptor":"()[Lorg/bukkit/block/BlockState;"},{"name":"isLoaded","access":1025,"descriptor":"()Z"},{"name":"load","access":1025,"descriptor":"(Z)Z"},{"name":"load","access":1025,"descriptor":"()Z"},{"name":"unload","access":132097,"descriptor":"(ZZ)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"unload","access":1025,"descriptor":"(Z)Z"},{"name":"unload","access":1025,"descriptor":"()Z"},{"name":"isSlimeChunk","access":1025,"descriptor":"()Z"}]},{"name":"org/bukkit/ChunkSnapshot","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getX","access":1025,"descriptor":"()I"},{"name":"getZ","access":1025,"descriptor":"()I"},{"name":"getWorldName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getBlockType","access":1025,"descriptor":"(III)Lorg/bukkit/Material;"},{"name":"getBlockTypeId","access":132097,"descriptor":"(III)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getBlockData","access":132097,"descriptor":"(III)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getBlockSkyLight","access":1025,"descriptor":"(III)I"},{"name":"getBlockEmittedLight","access":1025,"descriptor":"(III)I"},{"name":"getHighestBlockYAt","access":1025,"descriptor":"(II)I"},{"name":"getBiome","access":1025,"descriptor":"(II)Lorg/bukkit/block/Biome;"},{"name":"getRawBiomeTemperature","access":1025,"descriptor":"(II)D"},{"name":"getRawBiomeRainfall","access":132097,"descriptor":"(II)D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getCaptureFullTime","access":1025,"descriptor":"()J"},{"name":"isSectionEmpty","access":1025,"descriptor":"(I)Z"}]},{"name":"org/bukkit/Color","version":51,"access":49,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/serialization/ConfigurationSerializable"],"annotations":[{"descriptor":"Lorg/bukkit/configuration/serialization/SerializableAs;","visible":true,"values":{"value":"Color"}}],"fields":[{"name":"WHITE","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"SILVER","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"GRAY","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"BLACK","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"RED","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"MAROON","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"YELLOW","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"OLIVE","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"LIME","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"GREEN","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"AQUA","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"TEAL","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"BLUE","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"NAVY","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"FUCHSIA","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"PURPLE","access":25,"descriptor":"Lorg/bukkit/Color;"},{"name":"ORANGE","access":25,"descriptor":"Lorg/bukkit/Color;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"fromRGB","access":9,"descriptor":"(III)Lorg/bukkit/Color;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"fromBGR","access":9,"descriptor":"(III)Lorg/bukkit/Color;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"fromRGB","access":9,"descriptor":"(I)Lorg/bukkit/Color;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"fromBGR","access":9,"descriptor":"(I)Lorg/bukkit/Color;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getRed","access":1,"descriptor":"()I"},{"name":"setRed","access":1,"descriptor":"(I)Lorg/bukkit/Color;"},{"name":"getGreen","access":1,"descriptor":"()I"},{"name":"setGreen","access":1,"descriptor":"(I)Lorg/bukkit/Color;"},{"name":"getBlue","access":1,"descriptor":"()I"},{"name":"setBlue","access":1,"descriptor":"(I)Lorg/bukkit/Color;"},{"name":"asRGB","access":1,"descriptor":"()I"},{"name":"asBGR","access":1,"descriptor":"()I"},{"name":"mixDyes","access":129,"descriptor":"([Lorg/bukkit/DyeColor;)Lorg/bukkit/Color;"},{"name":"mixColors","access":129,"descriptor":"([Lorg/bukkit/Color;)Lorg/bukkit/Color;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/Color;","signature":"(Ljava/util/Map;)Lorg/bukkit/Color;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/Difficulty","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"PEACEFUL","access":16409,"descriptor":"Lorg/bukkit/Difficulty;"},{"name":"EASY","access":16409,"descriptor":"Lorg/bukkit/Difficulty;"},{"name":"NORMAL","access":16409,"descriptor":"Lorg/bukkit/Difficulty;"},{"name":"HARD","access":16409,"descriptor":"Lorg/bukkit/Difficulty;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getValue","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByValue","access":131081,"descriptor":"(I)Lorg/bukkit/Difficulty;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Difficulty;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Difficulty;"}]},{"name":"org/bukkit/DyeColor","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"WHITE","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"ORANGE","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"MAGENTA","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"LIGHT_BLUE","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"YELLOW","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"LIME","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"PINK","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"GRAY","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"SILVER","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"CYAN","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"PURPLE","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"BLUE","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"BROWN","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"GREEN","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"RED","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"},{"name":"BLACK","access":16409,"descriptor":"Lorg/bukkit/DyeColor;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getWoolData","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getDyeData","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getColor","access":1,"descriptor":"()Lorg/bukkit/Color;"},{"name":"getFireworkColor","access":1,"descriptor":"()Lorg/bukkit/Color;"},{"name":"getByWoolData","access":131081,"descriptor":"(B)Lorg/bukkit/DyeColor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByDyeData","access":131081,"descriptor":"(B)Lorg/bukkit/DyeColor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByColor","access":9,"descriptor":"(Lorg/bukkit/Color;)Lorg/bukkit/DyeColor;"},{"name":"getByFireworkColor","access":9,"descriptor":"(Lorg/bukkit/Color;)Lorg/bukkit/DyeColor;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/DyeColor;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/DyeColor;"}]},{"name":"org/bukkit/Effect","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Effect$Type","outerName":"org/bukkit/Effect","innerName":"Type","access":16409}],"fields":[{"name":"CLICK2","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"CLICK1","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"BOW_FIRE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"DOOR_TOGGLE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"IRON_DOOR_TOGGLE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"TRAPDOOR_TOGGLE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"IRON_TRAPDOOR_TOGGLE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"FENCE_GATE_TOGGLE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"DOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"IRON_DOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"TRAPDOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"IRON_TRAPDOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"FENCE_GATE_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"EXTINGUISH","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"RECORD_PLAY","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"GHAST_SHRIEK","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"GHAST_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"BLAZE_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ZOMBIE_CHEW_WOODEN_DOOR","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ZOMBIE_CHEW_IRON_DOOR","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ZOMBIE_DESTROY_DOOR","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"SMOKE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"STEP_SOUND","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"POTION_BREAK","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ENDER_SIGNAL","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"MOBSPAWNER_FLAMES","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"BREWING_STAND_BREW","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"CHORUS_FLOWER_GROW","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"CHORUS_FLOWER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"PORTAL_TRAVEL","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ENDEREYE_LAUNCH","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"FIREWORK_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"VILLAGER_PLANT_GROW","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"DRAGON_BREATH","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ANVIL_BREAK","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ANVIL_USE","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ANVIL_LAND","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ENDERDRAGON_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"WITHER_BREAK_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"WITHER_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ZOMBIE_INFECT","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ZOMBIE_CONVERTED_VILLAGER","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"BAT_TAKEOFF","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"END_GATEWAY_SPAWN","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"ENDERDRAGON_GROWL","access":16409,"descriptor":"Lorg/bukkit/Effect;"},{"name":"FIREWORKS_SPARK","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"CRIT","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"MAGIC_CRIT","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"POTION_SWIRL","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"POTION_SWIRL_TRANSPARENT","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SPELL","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"INSTANT_SPELL","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"WITCH_MAGIC","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"NOTE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"PORTAL","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"FLYING_GLYPH","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"FLAME","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"LAVA_POP","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"FOOTSTEP","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SPLASH","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"PARTICLE_SMOKE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"EXPLOSION_HUGE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"EXPLOSION_LARGE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"EXPLOSION","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"VOID_FOG","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SMALL_SMOKE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"CLOUD","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"COLOURED_DUST","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SNOWBALL_BREAK","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"WATERDRIP","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"LAVADRIP","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SNOW_SHOVEL","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"SLIME","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"HEART","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"VILLAGER_THUNDERCLOUD","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"HAPPY_VILLAGER","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"LARGE_SMOKE","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"ITEM_BREAK","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"TILE_BREAK","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"TILE_DUST","access":147481,"descriptor":"Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getName","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/Effect$Type;"},{"name":"getData","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"getById","access":131081,"descriptor":"(I)Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByName","access":131081,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Effect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Effect;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Effect;"}]},{"name":"org/bukkit/Effect$Type","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Effect$Type","outerName":"org/bukkit/Effect","innerName":"Type","access":16409}],"fields":[{"name":"SOUND","access":16409,"descriptor":"Lorg/bukkit/Effect$Type;"},{"name":"VISUAL","access":16409,"descriptor":"Lorg/bukkit/Effect$Type;"},{"name":"PARTICLE","access":16409,"descriptor":"Lorg/bukkit/Effect$Type;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Effect$Type;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Effect$Type;"}]},{"name":"org/bukkit/EntityEffect","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"ARROW_PARTICLES","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"RABBIT_JUMP","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"HURT","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"DEATH","access":147481,"descriptor":"Lorg/bukkit/EntityEffect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"WOLF_SMOKE","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"WOLF_HEARTS","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"WOLF_SHAKE","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"SHEEP_EAT","access":147481,"descriptor":"Lorg/bukkit/EntityEffect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"IRON_GOLEM_ROSE","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"VILLAGER_HEART","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"VILLAGER_ANGRY","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"VILLAGER_HAPPY","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"WITCH_MAGIC","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"ZOMBIE_TRANSFORM","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"FIREWORK_EXPLODE","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"LOVE_HEARTS","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"SQUID_ROTATE","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"ENTITY_POOF","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"GUARDIAN_TARGET","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"SHIELD_BLOCK","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"SHIELD_BREAK","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"ARMOR_STAND_HIT","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"THORNS_HURT","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"IRON_GOLEM_SHEATH","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"TOTEM_RESURRECT","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"HURT_DROWN","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"},{"name":"HURT_EXPLOSION","access":16409,"descriptor":"Lorg/bukkit/EntityEffect;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getData","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getApplicable","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<+Lorg/bukkit/entity/Entity;>;"},{"name":"getByData","access":131081,"descriptor":"(B)Lorg/bukkit/EntityEffect;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/EntityEffect;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/EntityEffect;"}]},{"name":"org/bukkit/GameMode","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"CREATIVE","access":16409,"descriptor":"Lorg/bukkit/GameMode;"},{"name":"SURVIVAL","access":16409,"descriptor":"Lorg/bukkit/GameMode;"},{"name":"ADVENTURE","access":16409,"descriptor":"Lorg/bukkit/GameMode;"},{"name":"SPECTATOR","access":16409,"descriptor":"Lorg/bukkit/GameMode;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getValue","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByValue","access":131081,"descriptor":"(I)Lorg/bukkit/GameMode;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/GameMode;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/GameMode;"}]},{"name":"org/bukkit/Instrument","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"PIANO","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"BASS_DRUM","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"SNARE_DRUM","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"STICKS","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"BASS_GUITAR","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"FLUTE","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"BELL","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"GUITAR","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"CHIME","access":16409,"descriptor":"Lorg/bukkit/Instrument;"},{"name":"XYLOPHONE","access":16409,"descriptor":"Lorg/bukkit/Instrument;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getType","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByType","access":131081,"descriptor":"(B)Lorg/bukkit/Instrument;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Instrument;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Instrument;"}]},{"name":"org/bukkit/Keyed","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getKey","access":1025,"descriptor":"()Lorg/bukkit/NamespacedKey;"}]},{"name":"org/bukkit/Location","version":51,"access":33,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable","org/bukkit/configuration/serialization/ConfigurationSerializable"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/World;DDD)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/World;DDDFF)V"},{"name":"setWorld","access":1,"descriptor":"(Lorg/bukkit/World;)V"},{"name":"getWorld","access":1,"descriptor":"()Lorg/bukkit/World;"},{"name":"getChunk","access":1,"descriptor":"()Lorg/bukkit/Chunk;"},{"name":"getBlock","access":1,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"setX","access":1,"descriptor":"(D)V"},{"name":"getX","access":1,"descriptor":"()D"},{"name":"getBlockX","access":1,"descriptor":"()I"},{"name":"setY","access":1,"descriptor":"(D)V"},{"name":"getY","access":1,"descriptor":"()D"},{"name":"getBlockY","access":1,"descriptor":"()I"},{"name":"setZ","access":1,"descriptor":"(D)V"},{"name":"getZ","access":1,"descriptor":"()D"},{"name":"getBlockZ","access":1,"descriptor":"()I"},{"name":"setYaw","access":1,"descriptor":"(F)V"},{"name":"getYaw","access":1,"descriptor":"()F"},{"name":"setPitch","access":1,"descriptor":"(F)V"},{"name":"getPitch","access":1,"descriptor":"()F"},{"name":"getDirection","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"setDirection","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/Location;"},{"name":"add","access":1,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Location;"},{"name":"add","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/Location;"},{"name":"add","access":1,"descriptor":"(DDD)Lorg/bukkit/Location;"},{"name":"subtract","access":1,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Location;"},{"name":"subtract","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/Location;"},{"name":"subtract","access":1,"descriptor":"(DDD)Lorg/bukkit/Location;"},{"name":"length","access":1,"descriptor":"()D"},{"name":"lengthSquared","access":1,"descriptor":"()D"},{"name":"distance","access":1,"descriptor":"(Lorg/bukkit/Location;)D"},{"name":"distanceSquared","access":1,"descriptor":"(Lorg/bukkit/Location;)D"},{"name":"multiply","access":1,"descriptor":"(D)Lorg/bukkit/Location;"},{"name":"zero","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"toVector","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"checkFinite","access":1,"descriptor":"()V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"locToBlock","access":9,"descriptor":"(D)I"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/Location;","signature":"(Ljava/util/Map;)Lorg/bukkit/Location;"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]}]},{"name":"org/bukkit/Material","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"AIR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIRT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COBBLESTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SAPLING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEDROCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WATER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STATIONARY_WATER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LAVA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STATIONARY_LAVA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SAND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRAVEL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COAL_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LOG","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEAVES","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPONGE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GLASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LAPIS_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LAPIS_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DISPENSER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SANDSTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NOTE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BED_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POWERED_RAIL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DETECTOR_RAIL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PISTON_STICKY_BASE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WEB","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LONG_GRASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DEAD_BUSH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PISTON_BASE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PISTON_EXTENSION","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PISTON_MOVING_PIECE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"YELLOW_FLOWER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_ROSE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BROWN_MUSHROOM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_MUSHROOM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DOUBLE_STEP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STEP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BRICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TNT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOOKSHELF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MOSSY_COBBLESTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"OBSIDIAN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TORCH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FIRE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MOB_SPAWNER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHEST","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_WIRE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WORKBENCH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CROPS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SOIL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FURNACE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BURNING_FURNACE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SIGN_POST","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOODEN_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LADDER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RAILS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COBBLESTONE_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WALL_SIGN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEVER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_PLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_DOOR_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_PLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GLOWING_REDSTONE_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_TORCH_OFF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_TORCH_ON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_BUTTON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SNOW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ICE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SNOW_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CACTUS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CLAY","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SUGAR_CANE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUKEBOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PUMPKIN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHERRACK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SOUL_SAND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GLOWSTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PORTAL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JACK_O_LANTERN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CAKE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIODE_BLOCK_OFF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIODE_BLOCK_ON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STAINED_GLASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TRAP_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MONSTER_EGGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SMOOTH_BRICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HUGE_MUSHROOM_1","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HUGE_MUSHROOM_2","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"THIN_GLASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MELON_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PUMPKIN_STEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MELON_STEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"VINE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BRICK_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SMOOTH_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MYCEL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WATER_LILY","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_BRICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_BRICK_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_WARTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENCHANTMENT_TABLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BREWING_STAND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CAULDRON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENDER_PORTAL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENDER_PORTAL_FRAME","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENDER_STONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DRAGON_EGG","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_LAMP_OFF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_LAMP_ON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_DOUBLE_STEP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_STEP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COCOA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SANDSTONE_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EMERALD_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENDER_CHEST","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TRIPWIRE_HOOK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TRIPWIRE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EMERALD_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPRUCE_WOOD_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BIRCH_WOOD_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUNGLE_WOOD_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COMMAND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEACON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COBBLE_WALL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FLOWER_POT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CARROT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POTATO","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_BUTTON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SKULL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ANVIL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TRAPPED_CHEST","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_PLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_PLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_COMPARATOR_OFF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_COMPARATOR_ON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DAYLIGHT_DETECTOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"QUARTZ_ORE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HOPPER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"QUARTZ_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"QUARTZ_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACTIVATOR_RAIL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DROPPER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STAINED_CLAY","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STAINED_GLASS_PANE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEAVES_2","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LOG_2","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACACIA_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DARK_OAK_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SLIME_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BARRIER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_TRAPDOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PRISMARINE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SEA_LANTERN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HAY_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CARPET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HARD_CLAY","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COAL_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PACKED_ICE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DOUBLE_PLANT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STANDING_BANNER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WALL_BANNER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DAYLIGHT_DETECTOR_INVERTED","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_SANDSTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_SANDSTONE_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DOUBLE_STONE_SLAB2","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_SLAB2","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPRUCE_FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BIRCH_FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUNGLE_FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DARK_OAK_FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACACIA_FENCE_GATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPRUCE_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BIRCH_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUNGLE_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DARK_OAK_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACACIA_FENCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPRUCE_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BIRCH_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUNGLE_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACACIA_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DARK_OAK_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"END_ROD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHORUS_PLANT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHORUS_FLOWER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPUR_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPUR_PILLAR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPUR_STAIRS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPUR_DOUBLE_SLAB","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPUR_SLAB","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"END_BRICKS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEETROOT_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRASS_PATH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"END_GATEWAY","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COMMAND_REPEATING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COMMAND_CHAIN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FROSTED_ICE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MAGMA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_WART_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_NETHER_BRICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BONE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STRUCTURE_VOID","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"OBSERVER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WHITE_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ORANGE_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MAGENTA_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LIGHT_BLUE_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"YELLOW_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LIME_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PINK_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRAY_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SILVER_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CYAN_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPLE_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLUE_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BROWN_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GREEN_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLACK_SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WHITE_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ORANGE_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MAGENTA_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LIGHT_BLUE_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"YELLOW_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LIME_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PINK_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRAY_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SILVER_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CYAN_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PURPLE_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLUE_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BROWN_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GREEN_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RED_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLACK_GLAZED_TERRACOTTA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CONCRETE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CONCRETE_POWDER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STRUCTURE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_SPADE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_AXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FLINT_AND_STEEL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"APPLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ARROW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COAL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_INGOT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_INGOT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_SWORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_SWORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_SPADE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_AXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_SWORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_SPADE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_AXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_SWORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_SPADE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_AXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOWL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MUSHROOM_SOUP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_SWORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_SPADE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_PICKAXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_AXE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STRING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FEATHER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SULPHUR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_HOE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STONE_HOE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_HOE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_HOE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_HOE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SEEDS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WHEAT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BREAD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEATHER_HELMET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEATHER_CHESTPLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEATHER_LEGGINGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEATHER_BOOTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHAINMAIL_HELMET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHAINMAIL_CHESTPLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHAINMAIL_LEGGINGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHAINMAIL_BOOTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_HELMET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_CHESTPLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_LEGGINGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_BOOTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_HELMET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_CHESTPLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_LEGGINGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_BOOTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_HELMET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_CHESTPLATE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_LEGGINGS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_BOOTS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FLINT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PORK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GRILLED_PORK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PAINTING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLDEN_APPLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SIGN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WOOD_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BUCKET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WATER_BUCKET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LAVA_BUCKET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SADDLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_DOOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SNOW_BALL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEATHER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MILK_BUCKET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CLAY_BRICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CLAY_BALL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SUGAR_CANE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PAPER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOOK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SLIME_BALL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"STORAGE_MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POWERED_MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EGG","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COMPASS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FISHING_ROD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WATCH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GLOWSTONE_DUST","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RAW_FISH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKED_FISH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"INK_SACK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BONE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SUGAR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CAKE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BED","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIODE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKIE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MAP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SHEARS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MELON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PUMPKIN_SEEDS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MELON_SEEDS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RAW_BEEF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKED_BEEF","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RAW_CHICKEN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKED_CHICKEN","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ROTTEN_FLESH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENDER_PEARL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLAZE_ROD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GHAST_TEAR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_NUGGET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_STALK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POTION","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GLASS_BOTTLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPIDER_EYE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FERMENTED_SPIDER_EYE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BLAZE_POWDER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MAGMA_CREAM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BREWING_STAND_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CAULDRON_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EYE_OF_ENDER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPECKLED_MELON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MONSTER_EGG","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EXP_BOTTLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FIREBALL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOOK_AND_QUILL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"WRITTEN_BOOK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EMERALD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ITEM_FRAME","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FLOWER_POT_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CARROT_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POTATO_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BAKED_POTATO","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"POISONOUS_POTATO","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EMPTY_MAP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLDEN_CARROT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SKULL_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CARROT_STICK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_STAR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PUMPKIN_PIE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FIREWORK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"FIREWORK_CHARGE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ENCHANTED_BOOK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"REDSTONE_COMPARATOR","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NETHER_BRICK_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"QUARTZ","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"EXPLOSIVE_MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"HOPPER_MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PRISMARINE_SHARD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"PRISMARINE_CRYSTALS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RABBIT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKED_RABBIT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RABBIT_STEW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RABBIT_FOOT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RABBIT_HIDE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ARMOR_STAND","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_BARDING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_BARDING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DIAMOND_BARDING","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LEASH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"NAME_TAG","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COMMAND_MINECART","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"MUTTON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"COOKED_MUTTON","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BANNER","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"END_CRYSTAL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPRUCE_DOOR_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BIRCH_DOOR_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"JUNGLE_DOOR_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ACACIA_DOOR_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DARK_OAK_DOOR_ITEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHORUS_FRUIT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"CHORUS_FRUIT_POPPED","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEETROOT","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEETROOT_SEEDS","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BEETROOT_SOUP","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"DRAGONS_BREATH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPLASH_POTION","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SPECTRAL_ARROW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TIPPED_ARROW","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"LINGERING_POTION","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SHIELD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"ELYTRA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT_SPRUCE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT_BIRCH","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT_JUNGLE","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT_ACACIA","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"BOAT_DARK_OAK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"TOTEM","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"SHULKER_SHELL","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"IRON_NUGGET","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"KNOWLEDGE_BOOK","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GOLD_RECORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"GREEN_RECORD","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_3","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_4","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_5","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_6","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_7","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_8","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_9","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_10","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_11","access":16409,"descriptor":"Lorg/bukkit/Material;"},{"name":"RECORD_12","access":16409,"descriptor":"Lorg/bukkit/Material;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getMaxStackSize","access":1,"descriptor":"()I"},{"name":"getMaxDurability","access":1,"descriptor":"()S"},{"name":"getData","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<+Lorg/bukkit/material/MaterialData;>;"},{"name":"getNewData","access":131073,"descriptor":"(B)Lorg/bukkit/material/MaterialData;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isBlock","access":1,"descriptor":"()Z"},{"name":"isEdible","access":1,"descriptor":"()Z"},{"name":"getMaterial","access":131081,"descriptor":"(I)Lorg/bukkit/Material;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getMaterial","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Material;"},{"name":"matchMaterial","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Material;"},{"name":"isRecord","access":1,"descriptor":"()Z"},{"name":"isSolid","access":1,"descriptor":"()Z"},{"name":"isTransparent","access":1,"descriptor":"()Z"},{"name":"isFlammable","access":1,"descriptor":"()Z"},{"name":"isBurnable","access":1,"descriptor":"()Z"},{"name":"isFuel","access":1,"descriptor":"()Z"},{"name":"isOccluding","access":1,"descriptor":"()Z"},{"name":"hasGravity","access":1,"descriptor":"()Z"},{"name":"isItem","access":1,"descriptor":"()Z"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Material;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Material;"},{"name":"$SWITCH_TABLE$org$bukkit$Material","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/Nameable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getCustomName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setCustomName","access":1025,"descriptor":"(Ljava/lang/String;)V"}]},{"name":"org/bukkit/NamespacedKey","version":51,"access":49,"superName":"java/lang/Object","fields":[{"name":"MINECRAFT","access":25,"descriptor":"Ljava/lang/String;","constant":"minecraft"},{"name":"BUKKIT","access":25,"descriptor":"Ljava/lang/String;","constant":"bukkit"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)V"},{"name":"getNamespace","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getKey","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"randomKey","access":131081,"descriptor":"()Lorg/bukkit/NamespacedKey;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"minecraft","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/NamespacedKey;"}]},{"name":"org/bukkit/Note","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/Note$Tone","outerName":"org/bukkit/Note","innerName":"Tone","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(I)V"},{"name":"","access":1,"descriptor":"(ILorg/bukkit/Note$Tone;Z)V"},{"name":"flat","access":9,"descriptor":"(ILorg/bukkit/Note$Tone;)Lorg/bukkit/Note;"},{"name":"sharp","access":9,"descriptor":"(ILorg/bukkit/Note$Tone;)Lorg/bukkit/Note;"},{"name":"natural","access":9,"descriptor":"(ILorg/bukkit/Note$Tone;)Lorg/bukkit/Note;"},{"name":"sharped","access":1,"descriptor":"()Lorg/bukkit/Note;"},{"name":"flattened","access":1,"descriptor":"()Lorg/bukkit/Note;"},{"name":"getId","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getOctave","access":1,"descriptor":"()I"},{"name":"getTone","access":1,"descriptor":"()Lorg/bukkit/Note$Tone;"},{"name":"isSharped","access":1,"descriptor":"()Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/Note$Tone","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Note$Tone","outerName":"org/bukkit/Note","innerName":"Tone","access":16409}],"fields":[{"name":"G","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"A","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"B","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"C","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"D","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"E","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"F","access":16409,"descriptor":"Lorg/bukkit/Note$Tone;"},{"name":"TONES_COUNT","access":25,"descriptor":"B","constant":{"type":"Integer","value":"12"}}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getId","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getId","access":131073,"descriptor":"(Z)B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isSharpable","access":1,"descriptor":"()Z"},{"name":"isSharped","access":131073,"descriptor":"(B)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getById","access":131081,"descriptor":"(B)Lorg/bukkit/Note$Tone;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Note$Tone;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Note$Tone;"}]},{"name":"org/bukkit/OfflinePlayer","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/permissions/ServerOperator","org/bukkit/entity/AnimalTamer","org/bukkit/configuration/serialization/ConfigurationSerializable"],"methods":[{"name":"isOnline","access":1025,"descriptor":"()Z"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getUniqueId","access":1025,"descriptor":"()Ljava/util/UUID;"},{"name":"isBanned","access":1025,"descriptor":"()Z"},{"name":"isWhitelisted","access":1025,"descriptor":"()Z"},{"name":"setWhitelisted","access":1025,"descriptor":"(Z)V"},{"name":"getPlayer","access":1025,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"getFirstPlayed","access":1025,"descriptor":"()J"},{"name":"getLastPlayed","access":1025,"descriptor":"()J"},{"name":"hasPlayedBefore","access":1025,"descriptor":"()Z"},{"name":"getBedSpawnLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"}]},{"name":"org/bukkit/Particle","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"EXPLOSION_NORMAL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"EXPLOSION_LARGE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"EXPLOSION_HUGE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"FIREWORKS_SPARK","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"WATER_BUBBLE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"WATER_SPLASH","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"WATER_WAKE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SUSPENDED","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SUSPENDED_DEPTH","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"CRIT","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"CRIT_MAGIC","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SMOKE_NORMAL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SMOKE_LARGE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPELL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPELL_INSTANT","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPELL_MOB","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPELL_MOB_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPELL_WITCH","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"DRIP_WATER","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"DRIP_LAVA","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"VILLAGER_ANGRY","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"VILLAGER_HAPPY","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"TOWN_AURA","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"NOTE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"PORTAL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"ENCHANTMENT_TABLE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"FLAME","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"LAVA","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"FOOTSTEP","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"CLOUD","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"REDSTONE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SNOWBALL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SNOW_SHOVEL","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SLIME","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"HEART","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"BARRIER","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"ITEM_CRACK","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"BLOCK_CRACK","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"BLOCK_DUST","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"WATER_DROP","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"ITEM_TAKE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"MOB_APPEARANCE","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"DRAGON_BREATH","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"END_ROD","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"DAMAGE_INDICATOR","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SWEEP_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"FALLING_DUST","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"TOTEM","access":16409,"descriptor":"Lorg/bukkit/Particle;"},{"name":"SPIT","access":16409,"descriptor":"Lorg/bukkit/Particle;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getDataType","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<*>;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Particle;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Particle;"}]},{"name":"org/bukkit/Server","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/plugin/messaging/PluginMessageRecipient"],"innerClasses":[{"name":"org/bukkit/BanList$Type","outerName":"org/bukkit/BanList","innerName":"Type","access":16409},{"name":"org/bukkit/Server$Spigot","outerName":"org/bukkit/Server","innerName":"Spigot","access":9},{"name":"org/bukkit/Warning$WarningState","outerName":"org/bukkit/Warning","innerName":"WarningState","access":16409},{"name":"org/bukkit/generator/ChunkGenerator$ChunkData","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"ChunkData","access":1545}],"fields":[{"name":"BROADCAST_CHANNEL_ADMINISTRATIVE","access":25,"descriptor":"Ljava/lang/String;","constant":"bukkit.broadcast.admin"},{"name":"BROADCAST_CHANNEL_USERS","access":25,"descriptor":"Ljava/lang/String;","constant":"bukkit.broadcast.user"}],"methods":[{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getVersion","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getBukkitVersion","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getOnlinePlayers","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection<+Lorg/bukkit/entity/Player;>;"},{"name":"getMaxPlayers","access":1025,"descriptor":"()I"},{"name":"getPort","access":1025,"descriptor":"()I"},{"name":"getViewDistance","access":1025,"descriptor":"()I"},{"name":"getIp","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getServerName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getServerId","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getWorldType","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getGenerateStructures","access":1025,"descriptor":"()Z"},{"name":"getAllowEnd","access":1025,"descriptor":"()Z"},{"name":"getAllowNether","access":1025,"descriptor":"()Z"},{"name":"hasWhitelist","access":1025,"descriptor":"()Z"},{"name":"setWhitelist","access":1025,"descriptor":"(Z)V"},{"name":"getWhitelistedPlayers","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"reloadWhitelist","access":1025,"descriptor":"()V"},{"name":"broadcastMessage","access":1025,"descriptor":"(Ljava/lang/String;)I"},{"name":"getUpdateFolder","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getUpdateFolderFile","access":1025,"descriptor":"()Ljava/io/File;"},{"name":"getConnectionThrottle","access":1025,"descriptor":"()J"},{"name":"getTicksPerAnimalSpawns","access":1025,"descriptor":"()I"},{"name":"getTicksPerMonsterSpawns","access":1025,"descriptor":"()I"},{"name":"getPlayer","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Player;"},{"name":"getPlayerExact","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Player;"},{"name":"matchPlayer","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getPlayer","access":1025,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/entity/Player;"},{"name":"getPluginManager","access":1025,"descriptor":"()Lorg/bukkit/plugin/PluginManager;"},{"name":"getScheduler","access":1025,"descriptor":"()Lorg/bukkit/scheduler/BukkitScheduler;"},{"name":"getServicesManager","access":1025,"descriptor":"()Lorg/bukkit/plugin/ServicesManager;"},{"name":"getWorlds","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"createWorld","access":1025,"descriptor":"(Lorg/bukkit/WorldCreator;)Lorg/bukkit/World;"},{"name":"unloadWorld","access":1025,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"unloadWorld","access":1025,"descriptor":"(Lorg/bukkit/World;Z)Z"},{"name":"getWorld","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/World;"},{"name":"getWorld","access":1025,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/World;"},{"name":"getMap","access":132097,"descriptor":"(S)Lorg/bukkit/map/MapView;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"createMap","access":1025,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/map/MapView;"},{"name":"reload","access":1025,"descriptor":"()V"},{"name":"reloadData","access":1025,"descriptor":"()V"},{"name":"getLogger","access":1025,"descriptor":"()Ljava/util/logging/Logger;"},{"name":"getPluginCommand","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/PluginCommand;"},{"name":"savePlayers","access":1025,"descriptor":"()V"},{"name":"dispatchCommand","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)Z","exceptions":["org/bukkit/command/CommandException"]},{"name":"addRecipe","access":1025,"descriptor":"(Lorg/bukkit/inventory/Recipe;)Z"},{"name":"getRecipesFor","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/List;","signature":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/List;"},{"name":"recipeIterator","access":1025,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"},{"name":"clearRecipes","access":1025,"descriptor":"()V"},{"name":"resetRecipes","access":1025,"descriptor":"()V"},{"name":"getCommandAliases","access":1025,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getSpawnRadius","access":1025,"descriptor":"()I"},{"name":"setSpawnRadius","access":1025,"descriptor":"(I)V"},{"name":"getOnlineMode","access":1025,"descriptor":"()Z"},{"name":"getAllowFlight","access":1025,"descriptor":"()Z"},{"name":"isHardcore","access":1025,"descriptor":"()Z"},{"name":"shutdown","access":1025,"descriptor":"()V"},{"name":"broadcast","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)I"},{"name":"getOfflinePlayer","access":132097,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/OfflinePlayer;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getOfflinePlayer","access":1025,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/OfflinePlayer;"},{"name":"getIPBans","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"banIP","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"unbanIP","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getBannedPlayers","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getBanList","access":1025,"descriptor":"(Lorg/bukkit/BanList$Type;)Lorg/bukkit/BanList;"},{"name":"getOperators","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getDefaultGameMode","access":1025,"descriptor":"()Lorg/bukkit/GameMode;"},{"name":"setDefaultGameMode","access":1025,"descriptor":"(Lorg/bukkit/GameMode;)V"},{"name":"getConsoleSender","access":1025,"descriptor":"()Lorg/bukkit/command/ConsoleCommandSender;"},{"name":"getWorldContainer","access":1025,"descriptor":"()Ljava/io/File;"},{"name":"getOfflinePlayers","access":1025,"descriptor":"()[Lorg/bukkit/OfflinePlayer;"},{"name":"getMessenger","access":1025,"descriptor":"()Lorg/bukkit/plugin/messaging/Messenger;"},{"name":"getHelpMap","access":1025,"descriptor":"()Lorg/bukkit/help/HelpMap;"},{"name":"createInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;Lorg/bukkit/event/inventory/InventoryType;)Lorg/bukkit/inventory/Inventory;"},{"name":"createInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;Lorg/bukkit/event/inventory/InventoryType;Ljava/lang/String;)Lorg/bukkit/inventory/Inventory;"},{"name":"createInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;I)Lorg/bukkit/inventory/Inventory;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"createInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryHolder;ILjava/lang/String;)Lorg/bukkit/inventory/Inventory;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"createMerchant","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/Merchant;"},{"name":"getMonsterSpawnLimit","access":1025,"descriptor":"()I"},{"name":"getAnimalSpawnLimit","access":1025,"descriptor":"()I"},{"name":"getWaterAnimalSpawnLimit","access":1025,"descriptor":"()I"},{"name":"getAmbientSpawnLimit","access":1025,"descriptor":"()I"},{"name":"isPrimaryThread","access":1025,"descriptor":"()Z"},{"name":"getMotd","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getShutdownMessage","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getWarningState","access":1025,"descriptor":"()Lorg/bukkit/Warning$WarningState;"},{"name":"getItemFactory","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemFactory;"},{"name":"getScoreboardManager","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/ScoreboardManager;"},{"name":"getServerIcon","access":1025,"descriptor":"()Lorg/bukkit/util/CachedServerIcon;"},{"name":"loadServerIcon","access":1025,"descriptor":"(Ljava/io/File;)Lorg/bukkit/util/CachedServerIcon;","exceptions":["java/lang/IllegalArgumentException","java/lang/Exception"]},{"name":"loadServerIcon","access":1025,"descriptor":"(Ljava/awt/image/BufferedImage;)Lorg/bukkit/util/CachedServerIcon;","exceptions":["java/lang/IllegalArgumentException","java/lang/Exception"]},{"name":"setIdleTimeout","access":1025,"descriptor":"(I)V"},{"name":"getIdleTimeout","access":1025,"descriptor":"()I"},{"name":"createChunkData","access":1025,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/generator/ChunkGenerator$ChunkData;"},{"name":"createBossBar","access":1153,"descriptor":"(Ljava/lang/String;Lorg/bukkit/boss/BarColor;Lorg/bukkit/boss/BarStyle;[Lorg/bukkit/boss/BarFlag;)Lorg/bukkit/boss/BossBar;"},{"name":"getEntity","access":1025,"descriptor":"(Ljava/util/UUID;)Lorg/bukkit/entity/Entity;"},{"name":"getAdvancement","access":1025,"descriptor":"(Lorg/bukkit/NamespacedKey;)Lorg/bukkit/advancement/Advancement;"},{"name":"advancementIterator","access":1025,"descriptor":"()Ljava/util/Iterator;","signature":"()Ljava/util/Iterator;"},{"name":"getUnsafe","access":132097,"descriptor":"()Lorg/bukkit/UnsafeValues;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/Server$Spigot;"}]},{"name":"org/bukkit/Server$Spigot","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/Server$Spigot","outerName":"org/bukkit/Server","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getConfig","access":1,"descriptor":"()Lorg/bukkit/configuration/file/YamlConfiguration;"},{"name":"broadcast","access":1,"descriptor":"(Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"broadcast","access":129,"descriptor":"([Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"restart","access":1,"descriptor":"()V"}]},{"name":"org/bukkit/SkullType","version":50,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"SKELETON","access":16409,"descriptor":"Lorg/bukkit/SkullType;"},{"name":"WITHER","access":16409,"descriptor":"Lorg/bukkit/SkullType;"},{"name":"ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/SkullType;"},{"name":"PLAYER","access":16409,"descriptor":"Lorg/bukkit/SkullType;"},{"name":"CREEPER","access":16409,"descriptor":"Lorg/bukkit/SkullType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/SkullType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/SkullType;"}]},{"name":"org/bukkit/Sound","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"AMBIENT_CAVE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_DESTROY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ANVIL_USE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_BREWING_STAND_BREW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CHEST_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CHEST_LOCKED","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CHEST_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CHORUS_FLOWER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CHORUS_FLOWER_GROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CLOTH_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CLOTH_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CLOTH_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CLOTH_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_CLOTH_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_COMPARATOR_CLICK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_DISPENSER_DISPENSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_DISPENSER_FAIL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_DISPENSER_LAUNCH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ENCHANTMENT_TABLE_USE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ENDERCHEST_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_ENDERCHEST_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_END_GATEWAY_SPAWN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_END_PORTAL_FRAME_FILL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_END_PORTAL_SPAWN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_FENCE_GATE_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_FENCE_GATE_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_FIRE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_FIRE_EXTINGUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_FURNACE_FIRE_CRACKLE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GLASS_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GLASS_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GLASS_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GLASS_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GLASS_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRASS_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRASS_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRASS_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRASS_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRASS_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRAVEL_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRAVEL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRAVEL_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRAVEL_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_GRAVEL_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_IRON_DOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_IRON_DOOR_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_IRON_TRAPDOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_IRON_TRAPDOOR_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LADDER_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LADDER_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LADDER_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LADDER_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LADDER_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LAVA_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LAVA_EXTINGUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LAVA_POP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_LEVER_CLICK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_PRESSUREPLATE_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_PRESSUREPLATE_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_METAL_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_BASEDRUM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_BASS","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_BELL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_CHIME","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_FLUTE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_GUITAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_HARP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_HAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_PLING","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_SNARE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_NOTE_XYLOPHONE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_PISTON_CONTRACT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_PISTON_EXTEND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_PORTAL_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_PORTAL_TRAVEL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_PORTAL_TRIGGER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_REDSTONE_TORCH_BURNOUT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SAND_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SAND_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SAND_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SAND_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SAND_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SHULKER_BOX_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SHULKER_BOX_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SLIME_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SLIME_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SLIME_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SLIME_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SLIME_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SNOW_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SNOW_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SNOW_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SNOW_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_SNOW_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_BUTTON_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_BUTTON_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_PRESSUREPLATE_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_PRESSUREPLATE_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_STONE_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_TRIPWIRE_ATTACH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_TRIPWIRE_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_TRIPWIRE_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_TRIPWIRE_DETACH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WATERLILY_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WATER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOODEN_DOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOODEN_DOOR_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOODEN_TRAPDOOR_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOODEN_TRAPDOOR_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_BUTTON_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_BUTTON_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_PRESSUREPLATE_CLICK_OFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_PRESSUREPLATE_CLICK_ON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"BLOCK_WOOD_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENCHANT_THORNS_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARMORSTAND_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARMORSTAND_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARMORSTAND_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARMORSTAND_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARROW_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARROW_HIT_PLAYER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ARROW_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BAT_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BAT_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BAT_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BAT_LOOP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BAT_TAKEOFF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BLAZE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BLAZE_BURN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BLAZE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BLAZE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BLAZE_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BOAT_PADDLE_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BOAT_PADDLE_WATER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BOBBER_RETRIEVE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BOBBER_SPLASH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_BOBBER_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_HISS","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_PURR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CAT_PURREOW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CHICKEN_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CHICKEN_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CHICKEN_EGG","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CHICKEN_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CHICKEN_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_COW_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_COW_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_COW_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_COW_MILK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_COW_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CREEPER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CREEPER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_CREEPER_PRIMED","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_DONKEY_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_DONKEY_ANGRY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_DONKEY_CHEST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_DONKEY_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_DONKEY_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EGG_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_AMBIENT_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_CURSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_DEATH_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_FLOP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ELDER_GUARDIAN_HURT_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_FIREBALL_EXPLODE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_FLAP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_GROWL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERDRAGON_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDEREYE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDEREYE_LAUNCH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_SCREAM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_STARE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMEN_TELEPORT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMITE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMITE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMITE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERMITE_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ENDERPEARL_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_FANGS_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_CAST_SPELL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_PREPARE_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_PREPARE_SUMMON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EVOCATION_ILLAGER_PREPARE_WOLOLO","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EXPERIENCE_BOTTLE_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_EXPERIENCE_ORB_PICKUP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_BLAST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_BLAST_FAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_LARGE_BLAST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_LARGE_BLAST_FAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_LAUNCH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_TWINKLE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_FIREWORK_TWINKLE_FAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_BIG_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_BURN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_DRINK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_EAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_EXPLODE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_EXTINGUISH_FIRE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_SMALL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_SPLASH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GENERIC_SWIM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_SCREAM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GHAST_WARN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_AMBIENT_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_DEATH_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_FLOP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_GUARDIAN_HURT_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_ANGRY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_ARMOR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_BREATHE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_EAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_GALLOP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_JUMP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_LAND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_SADDLE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HORSE_STEP_WOOD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_BIG_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_SMALL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_SPLASH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HOSTILE_SWIM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HUSK_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HUSK_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HUSK_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_HUSK_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_CAST_SPELL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_MIRROR_MOVE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_PREPARE_BLINDNESS","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ILLUSION_ILLAGER_PREPARE_MIRROR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_IRONGOLEM_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_IRONGOLEM_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_IRONGOLEM_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_IRONGOLEM_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEMFRAME_ADD_ITEM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEMFRAME_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEMFRAME_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEMFRAME_REMOVE_ITEM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEMFRAME_ROTATE_ITEM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEM_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ITEM_PICKUP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LEASHKNOT_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LEASHKNOT_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LIGHTNING_IMPACT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LIGHTNING_THUNDER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LINGERINGPOTION_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_ANGRY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_CHEST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_EAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_SPIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_LLAMA_SWAG","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MAGMACUBE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MAGMACUBE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MAGMACUBE_JUMP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MAGMACUBE_SQUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MINECART_INSIDE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MINECART_RIDING","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MOOSHROOM_SHEAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MULE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MULE_CHEST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MULE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_MULE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PAINTING_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PAINTING_PLACE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_EAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_FLY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_BLAZE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_CREEPER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ELDER_GUARDIAN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ENDERDRAGON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ENDERMAN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ENDERMITE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_EVOCATION_ILLAGER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_GHAST","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_HUSK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ILLUSION_ILLAGER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_MAGMACUBE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_POLAR_BEAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_SHULKER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_SILVERFISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_SKELETON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_SLIME","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_SPIDER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_STRAY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_VEX","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_VINDICATION_ILLAGER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_WITCH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_WITHER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_WITHER_SKELETON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_WOLF","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ZOMBIE_PIGMAN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_IMITATE_ZOMBIE_VILLAGER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PARROT_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PIG_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PIG_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PIG_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PIG_SADDLE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PIG_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_CRIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_KNOCKBACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_NODAMAGE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_STRONG","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_SWEEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_ATTACK_WEAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_BIG_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_BREATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_BURP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_HURT_DROWN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_HURT_ON_FIRE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_LEVELUP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_SMALL_FALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_SPLASH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_PLAYER_SWIM","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_BABY_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_POLAR_BEAR_WARNING","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_RABBIT_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_RABBIT_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_RABBIT_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_RABBIT_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_RABBIT_JUMP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHEEP_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHEEP_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHEEP_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHEEP_SHEAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHEEP_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_BULLET_HIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_BULLET_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_CLOSE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_HURT_CLOSED","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_OPEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SHULKER_TELEPORT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SILVERFISH_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SILVERFISH_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SILVERFISH_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SILVERFISH_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_HORSE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_HORSE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_HORSE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SKELETON_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SLIME_ATTACK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SLIME_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SLIME_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SLIME_JUMP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SLIME_SQUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_MAGMACUBE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_MAGMACUBE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_MAGMACUBE_SQUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_SLIME_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_SLIME_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_SLIME_JUMP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SMALL_SLIME_SQUISH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SNOWBALL_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SNOWMAN_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SNOWMAN_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SNOWMAN_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SNOWMAN_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPIDER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPIDER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPIDER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPIDER_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPLASH_POTION_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SPLASH_POTION_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SQUID_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SQUID_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_SQUID_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_STRAY_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_STRAY_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_STRAY_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_STRAY_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_TNT_PRIMED","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VEX_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VEX_CHARGE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VEX_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VEX_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_NO","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_TRADING","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VILLAGER_YES","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VINDICATION_ILLAGER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VINDICATION_ILLAGER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_VINDICATION_ILLAGER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITCH_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITCH_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITCH_DRINK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITCH_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITCH_THROW","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_BREAK_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SHOOT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SKELETON_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SKELETON_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SKELETON_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SKELETON_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WITHER_SPAWN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_GROWL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_HOWL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_PANT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_SHAKE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_WOLF_WHINE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_ATTACK_DOOR_WOOD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_ATTACK_IRON_DOOR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_BREAK_DOOR_WOOD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_HORSE_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_HORSE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_HORSE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_INFECT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_PIG_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_PIG_ANGRY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_PIG_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_PIG_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_AMBIENT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_CONVERTED","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_CURE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_DEATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_HURT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ENTITY_ZOMBIE_VILLAGER_STEP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_CHAIN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_DIAMOND","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_ELYTRA","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_GENERIC","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_GOLD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_IRON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ARMOR_EQUIP_LEATHER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BOTTLE_EMPTY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BOTTLE_FILL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BOTTLE_FILL_DRAGONBREATH","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BUCKET_EMPTY","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BUCKET_EMPTY_LAVA","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BUCKET_FILL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_BUCKET_FILL_LAVA","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_CHORUS_FRUIT_TELEPORT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_ELYTRA_FLYING","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_FIRECHARGE_USE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_FLINTANDSTEEL_USE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_HOE_TILL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_SHIELD_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_SHIELD_BREAK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_SHOVEL_FLATTEN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"ITEM_TOTEM_USE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_CREATIVE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_CREDITS","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_DRAGON","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_END","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_GAME","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_MENU","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"MUSIC_NETHER","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_11","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_13","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_BLOCKS","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_CAT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_CHIRP","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_FAR","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_MALL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_MELLOHI","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_STAL","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_STRAD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_WAIT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"RECORD_WARD","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"UI_BUTTON_CLICK","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"UI_TOAST_CHALLENGE_COMPLETE","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"UI_TOAST_IN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"UI_TOAST_OUT","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"WEATHER_RAIN","access":16409,"descriptor":"Lorg/bukkit/Sound;"},{"name":"WEATHER_RAIN_ABOVE","access":16409,"descriptor":"Lorg/bukkit/Sound;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Sound;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Sound;"}]},{"name":"org/bukkit/SoundCategory","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"MASTER","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"MUSIC","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"RECORDS","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"WEATHER","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"BLOCKS","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"HOSTILE","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"NEUTRAL","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"PLAYERS","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"AMBIENT","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"},{"name":"VOICE","access":16409,"descriptor":"Lorg/bukkit/SoundCategory;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/SoundCategory;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/SoundCategory;"}]},{"name":"org/bukkit/Statistic","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Statistic$Type","outerName":"org/bukkit/Statistic","innerName":"Type","access":16409}],"fields":[{"name":"DAMAGE_DEALT","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DAMAGE_TAKEN","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DEATHS","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"MOB_KILLS","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"PLAYER_KILLS","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"FISH_CAUGHT","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"ANIMALS_BRED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"LEAVE_GAME","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"JUMP","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DROP","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"PICKUP","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"PLAY_ONE_TICK","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"WALK_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"SWIM_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"FALL_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"SNEAK_TIME","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CLIMB_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"FLY_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DIVE_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"MINECART_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"BOAT_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"PIG_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"HORSE_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"SPRINT_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CROUCH_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"AVIATE_ONE_CM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"MINE_BLOCK","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"USE_ITEM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"BREAK_ITEM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CRAFT_ITEM","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"KILL_ENTITY","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"ENTITY_KILLED_BY","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"TIME_SINCE_DEATH","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"TALKED_TO_VILLAGER","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"TRADED_WITH_VILLAGER","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CAKE_SLICES_EATEN","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CAULDRON_FILLED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CAULDRON_USED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"ARMOR_CLEANED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"BANNER_CLEANED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"BREWINGSTAND_INTERACTION","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"BEACON_INTERACTION","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DROPPER_INSPECTED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"HOPPER_INSPECTED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"DISPENSER_INSPECTED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"NOTEBLOCK_PLAYED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"NOTEBLOCK_TUNED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"FLOWER_POTTED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"TRAPPED_CHEST_TRIGGERED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"ENDERCHEST_OPENED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"ITEM_ENCHANTED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"RECORD_PLAYED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"FURNACE_INTERACTION","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CRAFTING_TABLE_INTERACTION","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"CHEST_OPENED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"SLEEP_IN_BED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"},{"name":"SHULKER_BOX_OPENED","access":16409,"descriptor":"Lorg/bukkit/Statistic;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/Statistic$Type;"},{"name":"isSubstatistic","access":1,"descriptor":"()Z"},{"name":"isBlock","access":1,"descriptor":"()Z"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Statistic;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Statistic;"}]},{"name":"org/bukkit/Statistic$Type","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Statistic$Type","outerName":"org/bukkit/Statistic","innerName":"Type","access":16409}],"fields":[{"name":"UNTYPED","access":16409,"descriptor":"Lorg/bukkit/Statistic$Type;"},{"name":"ITEM","access":16409,"descriptor":"Lorg/bukkit/Statistic$Type;"},{"name":"BLOCK","access":16409,"descriptor":"Lorg/bukkit/Statistic$Type;"},{"name":"ENTITY","access":16409,"descriptor":"Lorg/bukkit/Statistic$Type;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Statistic$Type;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Statistic$Type;"}]},{"name":"org/bukkit/TreeSpecies","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"GENERIC","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"},{"name":"REDWOOD","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"},{"name":"BIRCH","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"},{"name":"JUNGLE","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"},{"name":"ACACIA","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"},{"name":"DARK_OAK","access":16409,"descriptor":"Lorg/bukkit/TreeSpecies;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getData","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByData","access":131081,"descriptor":"(B)Lorg/bukkit/TreeSpecies;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/TreeSpecies;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/TreeSpecies;"}]},{"name":"org/bukkit/TreeType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"TREE","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"BIG_TREE","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"REDWOOD","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"TALL_REDWOOD","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"BIRCH","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"JUNGLE","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"SMALL_JUNGLE","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"COCOA_TREE","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"JUNGLE_BUSH","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"RED_MUSHROOM","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"BROWN_MUSHROOM","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"SWAMP","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"ACACIA","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"DARK_OAK","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"MEGA_REDWOOD","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"TALL_BIRCH","access":16409,"descriptor":"Lorg/bukkit/TreeType;"},{"name":"CHORUS_PLANT","access":16409,"descriptor":"Lorg/bukkit/TreeType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/TreeType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/TreeType;"}]},{"name":"org/bukkit/UnsafeValues","version":51,"access":132609,"superName":"java/lang/Object","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"methods":[{"name":"getMaterialFromInternalName","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Material;"},{"name":"tabCompleteInternalMaterialName","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;","signature":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;"},{"name":"modifyItemStack","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;Ljava/lang/String;)Lorg/bukkit/inventory/ItemStack;"},{"name":"getStatisticFromInternalName","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Statistic;"},{"name":"getAchievementFromInternalName","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Achievement;"},{"name":"tabCompleteInternalStatisticOrAchievementName","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;","signature":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;"},{"name":"loadAdvancement","access":1025,"descriptor":"(Lorg/bukkit/NamespacedKey;Ljava/lang/String;)Lorg/bukkit/advancement/Advancement;"},{"name":"removeAdvancement","access":1025,"descriptor":"(Lorg/bukkit/NamespacedKey;)Z"}]},{"name":"org/bukkit/Warning","version":51,"access":9729,"superName":"java/lang/Object","interfaces":["java/lang/annotation/Annotation"],"annotations":[{"descriptor":"Ljava/lang/annotation/Target;","visible":true,"values":{"value":[{"kind":"enum","descriptor":"Ljava/lang/annotation/ElementType;","name":"CONSTRUCTOR"},{"kind":"enum","descriptor":"Ljava/lang/annotation/ElementType;","name":"METHOD"},{"kind":"enum","descriptor":"Ljava/lang/annotation/ElementType;","name":"TYPE"}]}},{"descriptor":"Ljava/lang/annotation/Retention;","visible":true,"values":{"value":{"kind":"enum","descriptor":"Ljava/lang/annotation/RetentionPolicy;","name":"RUNTIME"}}}],"innerClasses":[{"name":"org/bukkit/Warning$WarningState","outerName":"org/bukkit/Warning","innerName":"WarningState","access":16409}],"methods":[{"name":"value","access":1025,"descriptor":"()Z","annotationDefault":false},{"name":"reason","access":1025,"descriptor":"()Ljava/lang/String;","annotationDefault":""}]},{"name":"org/bukkit/Warning$WarningState","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/Warning$WarningState","outerName":"org/bukkit/Warning","innerName":"WarningState","access":16409}],"fields":[{"name":"ON","access":16409,"descriptor":"Lorg/bukkit/Warning$WarningState;"},{"name":"OFF","access":16409,"descriptor":"Lorg/bukkit/Warning$WarningState;"},{"name":"DEFAULT","access":16409,"descriptor":"Lorg/bukkit/Warning$WarningState;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"printFor","access":1,"descriptor":"(Lorg/bukkit/Warning;)Z"},{"name":"value","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Warning$WarningState;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/Warning$WarningState;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Warning$WarningState;"}]},{"name":"org/bukkit/WeatherType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"DOWNFALL","access":16409,"descriptor":"Lorg/bukkit/WeatherType;"},{"name":"CLEAR","access":16409,"descriptor":"Lorg/bukkit/WeatherType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/WeatherType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WeatherType;"}]},{"name":"org/bukkit/World","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/plugin/messaging/PluginMessageRecipient","org/bukkit/metadata/Metadatable"],"innerClasses":[{"name":"org/bukkit/World$Environment","outerName":"org/bukkit/World","innerName":"Environment","access":16409},{"name":"org/bukkit/World$Spigot","outerName":"org/bukkit/World","innerName":"Spigot","access":9}],"methods":[{"name":"getBlockAt","access":1025,"descriptor":"(III)Lorg/bukkit/block/Block;"},{"name":"getBlockAt","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/block/Block;"},{"name":"getBlockTypeIdAt","access":132097,"descriptor":"(III)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getBlockTypeIdAt","access":132097,"descriptor":"(Lorg/bukkit/Location;)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHighestBlockYAt","access":1025,"descriptor":"(II)I"},{"name":"getHighestBlockYAt","access":1025,"descriptor":"(Lorg/bukkit/Location;)I"},{"name":"getHighestBlockAt","access":1025,"descriptor":"(II)Lorg/bukkit/block/Block;"},{"name":"getHighestBlockAt","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/block/Block;"},{"name":"getChunkAt","access":1025,"descriptor":"(II)Lorg/bukkit/Chunk;"},{"name":"getChunkAt","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Chunk;"},{"name":"getChunkAt","access":1025,"descriptor":"(Lorg/bukkit/block/Block;)Lorg/bukkit/Chunk;"},{"name":"isChunkLoaded","access":1025,"descriptor":"(Lorg/bukkit/Chunk;)Z"},{"name":"getLoadedChunks","access":1025,"descriptor":"()[Lorg/bukkit/Chunk;"},{"name":"loadChunk","access":1025,"descriptor":"(Lorg/bukkit/Chunk;)V"},{"name":"isChunkLoaded","access":1025,"descriptor":"(II)Z"},{"name":"isChunkInUse","access":1025,"descriptor":"(II)Z"},{"name":"loadChunk","access":1025,"descriptor":"(II)V"},{"name":"loadChunk","access":1025,"descriptor":"(IIZ)Z"},{"name":"unloadChunk","access":1025,"descriptor":"(Lorg/bukkit/Chunk;)Z"},{"name":"unloadChunk","access":1025,"descriptor":"(II)Z"},{"name":"unloadChunk","access":1025,"descriptor":"(IIZ)Z"},{"name":"unloadChunk","access":132097,"descriptor":"(IIZZ)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"unloadChunkRequest","access":1025,"descriptor":"(II)Z"},{"name":"unloadChunkRequest","access":1025,"descriptor":"(IIZ)Z"},{"name":"regenerateChunk","access":1025,"descriptor":"(II)Z"},{"name":"refreshChunk","access":132097,"descriptor":"(II)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"dropItem","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/entity/Item;"},{"name":"dropItemNaturally","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/entity/Item;"},{"name":"spawnArrow","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/util/Vector;FF)Lorg/bukkit/entity/Arrow;"},{"name":"spawnArrow","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/util/Vector;FFLjava/lang/Class;)Lorg/bukkit/entity/Arrow;","signature":"(Lorg/bukkit/Location;Lorg/bukkit/util/Vector;FFLjava/lang/Class;)TT;"},{"name":"generateTree","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/TreeType;)Z"},{"name":"generateTree","access":132097,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/TreeType;Lorg/bukkit/BlockChangeDelegate;)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"spawnEntity","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/entity/EntityType;)Lorg/bukkit/entity/Entity;"},{"name":"strikeLightning","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/entity/LightningStrike;"},{"name":"strikeLightningEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/entity/LightningStrike;"},{"name":"getEntities","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getLivingEntities","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getEntitiesByClass","access":132225,"descriptor":"([Ljava/lang/Class;)Ljava/util/Collection;","signature":"([Ljava/lang/Class;)Ljava/util/Collection;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntitiesByClass","access":1025,"descriptor":"(Ljava/lang/Class;)Ljava/util/Collection;","signature":"(Ljava/lang/Class;)Ljava/util/Collection;"},{"name":"getEntitiesByClasses","access":1153,"descriptor":"([Ljava/lang/Class;)Ljava/util/Collection;","signature":"([Ljava/lang/Class<*>;)Ljava/util/Collection;"},{"name":"getPlayers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getNearbyEntities","access":1025,"descriptor":"(Lorg/bukkit/Location;DDD)Ljava/util/Collection;","signature":"(Lorg/bukkit/Location;DDD)Ljava/util/Collection;"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getUID","access":1025,"descriptor":"()Ljava/util/UUID;"},{"name":"getSpawnLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setSpawnLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;)Z"},{"name":"setSpawnLocation","access":1025,"descriptor":"(III)Z"},{"name":"getTime","access":1025,"descriptor":"()J"},{"name":"setTime","access":1025,"descriptor":"(J)V"},{"name":"getFullTime","access":1025,"descriptor":"()J"},{"name":"setFullTime","access":1025,"descriptor":"(J)V"},{"name":"hasStorm","access":1025,"descriptor":"()Z"},{"name":"setStorm","access":1025,"descriptor":"(Z)V"},{"name":"getWeatherDuration","access":1025,"descriptor":"()I"},{"name":"setWeatherDuration","access":1025,"descriptor":"(I)V"},{"name":"isThundering","access":1025,"descriptor":"()Z"},{"name":"setThundering","access":1025,"descriptor":"(Z)V"},{"name":"getThunderDuration","access":1025,"descriptor":"()I"},{"name":"setThunderDuration","access":1025,"descriptor":"(I)V"},{"name":"createExplosion","access":1025,"descriptor":"(DDDF)Z"},{"name":"createExplosion","access":1025,"descriptor":"(DDDFZ)Z"},{"name":"createExplosion","access":1025,"descriptor":"(DDDFZZ)Z"},{"name":"createExplosion","access":1025,"descriptor":"(Lorg/bukkit/Location;F)Z"},{"name":"createExplosion","access":1025,"descriptor":"(Lorg/bukkit/Location;FZ)Z"},{"name":"getEnvironment","access":1025,"descriptor":"()Lorg/bukkit/World$Environment;"},{"name":"getSeed","access":1025,"descriptor":"()J"},{"name":"getPVP","access":1025,"descriptor":"()Z"},{"name":"setPVP","access":1025,"descriptor":"(Z)V"},{"name":"getGenerator","access":1025,"descriptor":"()Lorg/bukkit/generator/ChunkGenerator;"},{"name":"save","access":1025,"descriptor":"()V"},{"name":"getPopulators","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"spawn","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/Class;)Lorg/bukkit/entity/Entity;","signature":"(Lorg/bukkit/Location;Ljava/lang/Class;)TT;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"spawn","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/Class;Lorg/bukkit/util/Consumer;)Lorg/bukkit/entity/Entity;","signature":"(Lorg/bukkit/Location;Ljava/lang/Class;Lorg/bukkit/util/Consumer;)TT;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"spawnFallingBlock","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/material/MaterialData;)Lorg/bukkit/entity/FallingBlock;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"spawnFallingBlock","access":132097,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Material;B)Lorg/bukkit/entity/FallingBlock;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"spawnFallingBlock","access":132097,"descriptor":"(Lorg/bukkit/Location;IB)Lorg/bukkit/entity/FallingBlock;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;I)V"},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;II)V"},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;Ljava/lang/Object;)V","signature":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;TT;)V"},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;Ljava/lang/Object;I)V","signature":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;TT;I)V"},{"name":"getEmptyChunkSnapshot","access":1025,"descriptor":"(IIZZ)Lorg/bukkit/ChunkSnapshot;"},{"name":"setSpawnFlags","access":1025,"descriptor":"(ZZ)V"},{"name":"getAllowAnimals","access":1025,"descriptor":"()Z"},{"name":"getAllowMonsters","access":1025,"descriptor":"()Z"},{"name":"getBiome","access":1025,"descriptor":"(II)Lorg/bukkit/block/Biome;"},{"name":"setBiome","access":1025,"descriptor":"(IILorg/bukkit/block/Biome;)V"},{"name":"getTemperature","access":1025,"descriptor":"(II)D"},{"name":"getHumidity","access":1025,"descriptor":"(II)D"},{"name":"getMaxHeight","access":1025,"descriptor":"()I"},{"name":"getSeaLevel","access":1025,"descriptor":"()I"},{"name":"getKeepSpawnInMemory","access":1025,"descriptor":"()Z"},{"name":"setKeepSpawnInMemory","access":1025,"descriptor":"(Z)V"},{"name":"isAutoSave","access":1025,"descriptor":"()Z"},{"name":"setAutoSave","access":1025,"descriptor":"(Z)V"},{"name":"setDifficulty","access":1025,"descriptor":"(Lorg/bukkit/Difficulty;)V"},{"name":"getDifficulty","access":1025,"descriptor":"()Lorg/bukkit/Difficulty;"},{"name":"getWorldFolder","access":1025,"descriptor":"()Ljava/io/File;"},{"name":"getWorldType","access":1025,"descriptor":"()Lorg/bukkit/WorldType;"},{"name":"canGenerateStructures","access":1025,"descriptor":"()Z"},{"name":"getTicksPerAnimalSpawns","access":1025,"descriptor":"()J"},{"name":"setTicksPerAnimalSpawns","access":1025,"descriptor":"(I)V"},{"name":"getTicksPerMonsterSpawns","access":1025,"descriptor":"()J"},{"name":"setTicksPerMonsterSpawns","access":1025,"descriptor":"(I)V"},{"name":"getMonsterSpawnLimit","access":1025,"descriptor":"()I"},{"name":"setMonsterSpawnLimit","access":1025,"descriptor":"(I)V"},{"name":"getAnimalSpawnLimit","access":1025,"descriptor":"()I"},{"name":"setAnimalSpawnLimit","access":1025,"descriptor":"(I)V"},{"name":"getWaterAnimalSpawnLimit","access":1025,"descriptor":"()I"},{"name":"setWaterAnimalSpawnLimit","access":1025,"descriptor":"(I)V"},{"name":"getAmbientSpawnLimit","access":1025,"descriptor":"()I"},{"name":"setAmbientSpawnLimit","access":1025,"descriptor":"(I)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Sound;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/String;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Sound;Lorg/bukkit/SoundCategory;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/String;Lorg/bukkit/SoundCategory;FF)V"},{"name":"getGameRules","access":1025,"descriptor":"()[Ljava/lang/String;"},{"name":"getGameRuleValue","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"setGameRuleValue","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Z"},{"name":"isGameRule","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getWorldBorder","access":1025,"descriptor":"()Lorg/bukkit/WorldBorder;"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;I)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDI)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;ILjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;ITT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDILjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDITT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDIDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDIDDDDTT;)V"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/World$Spigot;"}]},{"name":"org/bukkit/World$Environment","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/World$Environment","outerName":"org/bukkit/World","innerName":"Environment","access":16409}],"fields":[{"name":"NORMAL","access":16409,"descriptor":"Lorg/bukkit/World$Environment;"},{"name":"NETHER","access":16409,"descriptor":"Lorg/bukkit/World$Environment;"},{"name":"THE_END","access":16409,"descriptor":"Lorg/bukkit/World$Environment;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEnvironment","access":131081,"descriptor":"(I)Lorg/bukkit/World$Environment;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/World$Environment;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/World$Environment;"}]},{"name":"org/bukkit/World$Spigot","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/World$Spigot","outerName":"org/bukkit/World","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"playEffect","access":131073,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"playEffect","access":131073,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;IIFFFFII)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"strikeLightning","access":1,"descriptor":"(Lorg/bukkit/Location;Z)Lorg/bukkit/entity/LightningStrike;"},{"name":"strikeLightningEffect","access":1,"descriptor":"(Lorg/bukkit/Location;Z)Lorg/bukkit/entity/LightningStrike;"}]},{"name":"org/bukkit/WorldBorder","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"reset","access":1025,"descriptor":"()V"},{"name":"getSize","access":1025,"descriptor":"()D"},{"name":"setSize","access":1025,"descriptor":"(D)V"},{"name":"setSize","access":1025,"descriptor":"(DJ)V"},{"name":"getCenter","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setCenter","access":1025,"descriptor":"(DD)V"},{"name":"setCenter","access":1025,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"getDamageBuffer","access":1025,"descriptor":"()D"},{"name":"setDamageBuffer","access":1025,"descriptor":"(D)V"},{"name":"getDamageAmount","access":1025,"descriptor":"()D"},{"name":"setDamageAmount","access":1025,"descriptor":"(D)V"},{"name":"getWarningTime","access":1025,"descriptor":"()I"},{"name":"setWarningTime","access":1025,"descriptor":"(I)V"},{"name":"getWarningDistance","access":1025,"descriptor":"()I"},{"name":"setWarningDistance","access":1025,"descriptor":"(I)V"},{"name":"isInside","access":1025,"descriptor":"(Lorg/bukkit/Location;)Z"}]},{"name":"org/bukkit/WorldCreator","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/World$Environment","outerName":"org/bukkit/World","innerName":"Environment","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"copy","access":1,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/WorldCreator;"},{"name":"copy","access":1,"descriptor":"(Lorg/bukkit/WorldCreator;)Lorg/bukkit/WorldCreator;"},{"name":"name","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"seed","access":1,"descriptor":"()J"},{"name":"seed","access":1,"descriptor":"(J)Lorg/bukkit/WorldCreator;"},{"name":"environment","access":1,"descriptor":"()Lorg/bukkit/World$Environment;"},{"name":"environment","access":1,"descriptor":"(Lorg/bukkit/World$Environment;)Lorg/bukkit/WorldCreator;"},{"name":"type","access":1,"descriptor":"()Lorg/bukkit/WorldType;"},{"name":"type","access":1,"descriptor":"(Lorg/bukkit/WorldType;)Lorg/bukkit/WorldCreator;"},{"name":"generator","access":1,"descriptor":"()Lorg/bukkit/generator/ChunkGenerator;"},{"name":"generator","access":1,"descriptor":"(Lorg/bukkit/generator/ChunkGenerator;)Lorg/bukkit/WorldCreator;"},{"name":"generator","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WorldCreator;"},{"name":"generator","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/command/CommandSender;)Lorg/bukkit/WorldCreator;"},{"name":"generatorSettings","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WorldCreator;"},{"name":"generatorSettings","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"generateStructures","access":1,"descriptor":"(Z)Lorg/bukkit/WorldCreator;"},{"name":"generateStructures","access":1,"descriptor":"()Z"},{"name":"createWorld","access":1,"descriptor":"()Lorg/bukkit/World;"},{"name":"name","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WorldCreator;"},{"name":"getGeneratorForName","access":9,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/command/CommandSender;)Lorg/bukkit/generator/ChunkGenerator;"}]},{"name":"org/bukkit/WorldType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"NORMAL","access":16409,"descriptor":"Lorg/bukkit/WorldType;"},{"name":"FLAT","access":16409,"descriptor":"Lorg/bukkit/WorldType;"},{"name":"VERSION_1_1","access":16409,"descriptor":"Lorg/bukkit/WorldType;"},{"name":"LARGE_BIOMES","access":16409,"descriptor":"Lorg/bukkit/WorldType;"},{"name":"AMPLIFIED","access":16409,"descriptor":"Lorg/bukkit/WorldType;"},{"name":"CUSTOMIZED","access":16409,"descriptor":"Lorg/bukkit/WorldType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getByName","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WorldType;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/WorldType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/WorldType;"}]},{"name":"org/bukkit/advancement/Advancement","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/Keyed"],"methods":[{"name":"getCriteria","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"}]},{"name":"org/bukkit/advancement/AdvancementProgress","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getAdvancement","access":1025,"descriptor":"()Lorg/bukkit/advancement/Advancement;"},{"name":"isDone","access":1025,"descriptor":"()Z"},{"name":"awardCriteria","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"revokeCriteria","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getDateAwarded","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/Date;"},{"name":"getRemainingCriteria","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"},{"name":"getAwardedCriteria","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"}]},{"name":"org/bukkit/attribute/Attributable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getAttribute","access":1025,"descriptor":"(Lorg/bukkit/attribute/Attribute;)Lorg/bukkit/attribute/AttributeInstance;"}]},{"name":"org/bukkit/attribute/Attribute","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"GENERIC_MAX_HEALTH","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_FOLLOW_RANGE","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_KNOCKBACK_RESISTANCE","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_MOVEMENT_SPEED","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_FLYING_SPEED","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_ATTACK_DAMAGE","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_ATTACK_SPEED","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_ARMOR","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_ARMOR_TOUGHNESS","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"GENERIC_LUCK","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"HORSE_JUMP_STRENGTH","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"},{"name":"ZOMBIE_SPAWN_REINFORCEMENTS","access":16409,"descriptor":"Lorg/bukkit/attribute/Attribute;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/attribute/Attribute;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/attribute/Attribute;"}]},{"name":"org/bukkit/attribute/AttributeInstance","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getAttribute","access":1025,"descriptor":"()Lorg/bukkit/attribute/Attribute;"},{"name":"getBaseValue","access":1025,"descriptor":"()D"},{"name":"setBaseValue","access":1025,"descriptor":"(D)V"},{"name":"getModifiers","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"},{"name":"addModifier","access":1025,"descriptor":"(Lorg/bukkit/attribute/AttributeModifier;)V"},{"name":"removeModifier","access":1025,"descriptor":"(Lorg/bukkit/attribute/AttributeModifier;)V"},{"name":"getValue","access":1025,"descriptor":"()D"},{"name":"getDefaultValue","access":1025,"descriptor":"()D"}]},{"name":"org/bukkit/attribute/AttributeModifier","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/serialization/ConfigurationSerializable"],"innerClasses":[{"name":"org/bukkit/attribute/AttributeModifier$Operation","outerName":"org/bukkit/attribute/AttributeModifier","innerName":"Operation","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/String;DLorg/bukkit/attribute/AttributeModifier$Operation;)V"},{"name":"","access":1,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;DLorg/bukkit/attribute/AttributeModifier$Operation;)V"},{"name":"getUniqueId","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getAmount","access":1,"descriptor":"()D"},{"name":"getOperation","access":1,"descriptor":"()Lorg/bukkit/attribute/AttributeModifier$Operation;"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/attribute/AttributeModifier;","signature":"(Ljava/util/Map;)Lorg/bukkit/attribute/AttributeModifier;"}]},{"name":"org/bukkit/attribute/AttributeModifier$Operation","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/attribute/AttributeModifier$Operation","outerName":"org/bukkit/attribute/AttributeModifier","innerName":"Operation","access":16409}],"fields":[{"name":"ADD_NUMBER","access":16409,"descriptor":"Lorg/bukkit/attribute/AttributeModifier$Operation;"},{"name":"ADD_SCALAR","access":16409,"descriptor":"Lorg/bukkit/attribute/AttributeModifier$Operation;"},{"name":"MULTIPLY_SCALAR_1","access":16409,"descriptor":"Lorg/bukkit/attribute/AttributeModifier$Operation;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/attribute/AttributeModifier$Operation;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/attribute/AttributeModifier$Operation;"}]},{"name":"org/bukkit/block/Banner","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/block/BlockState"],"methods":[{"name":"getBaseColor","access":1025,"descriptor":"()Lorg/bukkit/DyeColor;"},{"name":"setBaseColor","access":1025,"descriptor":"(Lorg/bukkit/DyeColor;)V"},{"name":"getPatterns","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"setPatterns","access":1025,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"addPattern","access":1025,"descriptor":"(Lorg/bukkit/block/banner/Pattern;)V"},{"name":"getPattern","access":1025,"descriptor":"(I)Lorg/bukkit/block/banner/Pattern;"},{"name":"removePattern","access":1025,"descriptor":"(I)Lorg/bukkit/block/banner/Pattern;"},{"name":"setPattern","access":1025,"descriptor":"(ILorg/bukkit/block/banner/Pattern;)V"},{"name":"numberOfPatterns","access":1025,"descriptor":"()I"}]},{"name":"org/bukkit/block/Biome","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"OCEAN","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"PLAINS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"DESERT","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"EXTREME_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"TAIGA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"SWAMPLAND","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"RIVER","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"HELL","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"SKY","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"FROZEN_OCEAN","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"FROZEN_RIVER","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"ICE_FLATS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"ICE_MOUNTAINS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUSHROOM_ISLAND","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUSHROOM_ISLAND_SHORE","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"BEACHES","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"DESERT_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"FOREST_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"TAIGA_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"SMALLER_EXTREME_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"JUNGLE","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"JUNGLE_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"JUNGLE_EDGE","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"DEEP_OCEAN","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"STONE_BEACH","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"COLD_BEACH","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"BIRCH_FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"BIRCH_FOREST_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"ROOFED_FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"TAIGA_COLD","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"TAIGA_COLD_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"REDWOOD_TAIGA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"REDWOOD_TAIGA_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"EXTREME_HILLS_WITH_TREES","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"SAVANNA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"SAVANNA_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MESA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MESA_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MESA_CLEAR_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"VOID","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_PLAINS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_DESERT","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_EXTREME_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_TAIGA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_SWAMPLAND","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_ICE_FLATS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_JUNGLE","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_JUNGLE_EDGE","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_BIRCH_FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_BIRCH_FOREST_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_ROOFED_FOREST","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_TAIGA_COLD","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_REDWOOD_TAIGA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_REDWOOD_TAIGA_HILLS","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_EXTREME_HILLS_WITH_TREES","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_SAVANNA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_SAVANNA_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_MESA","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_MESA_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"},{"name":"MUTATED_MESA_CLEAR_ROCK","access":16409,"descriptor":"Lorg/bukkit/block/Biome;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/block/Biome;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/block/Biome;"}]},{"name":"org/bukkit/block/Block","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/metadata/Metadatable"],"methods":[{"name":"getData","access":132097,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getRelative","access":1025,"descriptor":"(III)Lorg/bukkit/block/Block;"},{"name":"getRelative","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;)Lorg/bukkit/block/Block;"},{"name":"getRelative","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;I)Lorg/bukkit/block/Block;"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/Material;"},{"name":"getTypeId","access":132097,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getLightLevel","access":1025,"descriptor":"()B"},{"name":"getLightFromSky","access":1025,"descriptor":"()B"},{"name":"getLightFromBlocks","access":1025,"descriptor":"()B"},{"name":"getWorld","access":1025,"descriptor":"()Lorg/bukkit/World;"},{"name":"getX","access":1025,"descriptor":"()I"},{"name":"getY","access":1025,"descriptor":"()I"},{"name":"getZ","access":1025,"descriptor":"()I"},{"name":"getLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Location;"},{"name":"getChunk","access":1025,"descriptor":"()Lorg/bukkit/Chunk;"},{"name":"setData","access":132097,"descriptor":"(B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setData","access":132097,"descriptor":"(BZ)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setType","access":1025,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"setType","access":1025,"descriptor":"(Lorg/bukkit/Material;Z)V"},{"name":"setTypeId","access":132097,"descriptor":"(I)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeId","access":132097,"descriptor":"(IZ)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeIdAndData","access":132097,"descriptor":"(IBZ)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getFace","access":1025,"descriptor":"(Lorg/bukkit/block/Block;)Lorg/bukkit/block/BlockFace;"},{"name":"getState","access":1025,"descriptor":"()Lorg/bukkit/block/BlockState;"},{"name":"getBiome","access":1025,"descriptor":"()Lorg/bukkit/block/Biome;"},{"name":"setBiome","access":1025,"descriptor":"(Lorg/bukkit/block/Biome;)V"},{"name":"isBlockPowered","access":1025,"descriptor":"()Z"},{"name":"isBlockIndirectlyPowered","access":1025,"descriptor":"()Z"},{"name":"isBlockFacePowered","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;)Z"},{"name":"isBlockFaceIndirectlyPowered","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;)Z"},{"name":"getBlockPower","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;)I"},{"name":"getBlockPower","access":1025,"descriptor":"()I"},{"name":"isEmpty","access":1025,"descriptor":"()Z"},{"name":"isLiquid","access":1025,"descriptor":"()Z"},{"name":"getTemperature","access":1025,"descriptor":"()D"},{"name":"getHumidity","access":1025,"descriptor":"()D"},{"name":"getPistonMoveReaction","access":1025,"descriptor":"()Lorg/bukkit/block/PistonMoveReaction;"},{"name":"breakNaturally","access":1025,"descriptor":"()Z"},{"name":"breakNaturally","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Z"},{"name":"getDrops","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"},{"name":"getDrops","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/Collection;","signature":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/Collection;"}]},{"name":"org/bukkit/block/BlockFace","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"NORTH","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SOUTH","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"UP","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"DOWN","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"NORTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"NORTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SOUTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SOUTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"WEST_NORTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"NORTH_NORTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"NORTH_NORTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"EAST_NORTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"EAST_SOUTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SOUTH_SOUTH_EAST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SOUTH_SOUTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"WEST_SOUTH_WEST","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"},{"name":"SELF","access":16409,"descriptor":"Lorg/bukkit/block/BlockFace;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getModX","access":1,"descriptor":"()I"},{"name":"getModY","access":1,"descriptor":"()I"},{"name":"getModZ","access":1,"descriptor":"()I"},{"name":"getOppositeFace","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/block/BlockFace;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/block/BlockFace;"},{"name":"$SWITCH_TABLE$org$bukkit$block$BlockFace","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/block/BlockState","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/metadata/Metadatable"],"methods":[{"name":"getBlock","access":1025,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"getData","access":1025,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/Material;"},{"name":"getTypeId","access":132097,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getLightLevel","access":1025,"descriptor":"()B"},{"name":"getWorld","access":1025,"descriptor":"()Lorg/bukkit/World;"},{"name":"getX","access":1025,"descriptor":"()I"},{"name":"getY","access":1025,"descriptor":"()I"},{"name":"getZ","access":1025,"descriptor":"()I"},{"name":"getLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Location;"},{"name":"getChunk","access":1025,"descriptor":"()Lorg/bukkit/Chunk;"},{"name":"setData","access":1025,"descriptor":"(Lorg/bukkit/material/MaterialData;)V"},{"name":"setType","access":1025,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"setTypeId","access":132097,"descriptor":"(I)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"update","access":1025,"descriptor":"()Z"},{"name":"update","access":1025,"descriptor":"(Z)Z"},{"name":"update","access":1025,"descriptor":"(ZZ)Z"},{"name":"getRawData","access":132097,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setRawData","access":132097,"descriptor":"(B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isPlaced","access":1025,"descriptor":"()Z"}]},{"name":"org/bukkit/block/DoubleChest","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/InventoryHolder"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/DoubleChestInventory;)V"},{"name":"getInventory","access":1,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getLeftSide","access":1,"descriptor":"()Lorg/bukkit/inventory/InventoryHolder;"},{"name":"getRightSide","access":1,"descriptor":"()Lorg/bukkit/inventory/InventoryHolder;"},{"name":"getLocation","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getWorld","access":1,"descriptor":"()Lorg/bukkit/World;"},{"name":"getX","access":1,"descriptor":"()D"},{"name":"getY","access":1,"descriptor":"()D"},{"name":"getZ","access":1,"descriptor":"()D"}]},{"name":"org/bukkit/block/PistonMoveReaction","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"MOVE","access":16409,"descriptor":"Lorg/bukkit/block/PistonMoveReaction;"},{"name":"BREAK","access":16409,"descriptor":"Lorg/bukkit/block/PistonMoveReaction;"},{"name":"BLOCK","access":16409,"descriptor":"Lorg/bukkit/block/PistonMoveReaction;"},{"name":"IGNORE","access":16409,"descriptor":"Lorg/bukkit/block/PistonMoveReaction;"},{"name":"PUSH_ONLY","access":16409,"descriptor":"Lorg/bukkit/block/PistonMoveReaction;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getById","access":131081,"descriptor":"(I)Lorg/bukkit/block/PistonMoveReaction;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/block/PistonMoveReaction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/block/PistonMoveReaction;"}]},{"name":"org/bukkit/block/Sign","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/block/BlockState"],"methods":[{"name":"getLines","access":1025,"descriptor":"()[Ljava/lang/String;"},{"name":"getLine","access":1025,"descriptor":"(I)Ljava/lang/String;","exceptions":["java/lang/IndexOutOfBoundsException"]},{"name":"setLine","access":1025,"descriptor":"(ILjava/lang/String;)V","exceptions":["java/lang/IndexOutOfBoundsException"]}]},{"name":"org/bukkit/block/banner/Pattern","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/serialization/ConfigurationSerializable"],"annotations":[{"descriptor":"Lorg/bukkit/configuration/serialization/SerializableAs;","visible":true,"values":{"value":"Pattern"}}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/DyeColor;Lorg/bukkit/block/banner/PatternType;)V"},{"name":"","access":1,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getColor","access":1,"descriptor":"()Lorg/bukkit/DyeColor;"},{"name":"getPattern","access":1,"descriptor":"()Lorg/bukkit/block/banner/PatternType;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"}]},{"name":"org/bukkit/block/banner/PatternType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"BASE","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"SQUARE_BOTTOM_LEFT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"SQUARE_BOTTOM_RIGHT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"SQUARE_TOP_LEFT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"SQUARE_TOP_RIGHT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_BOTTOM","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_TOP","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_LEFT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_RIGHT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_CENTER","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_MIDDLE","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_DOWNRIGHT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_DOWNLEFT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRIPE_SMALL","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"CROSS","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"STRAIGHT_CROSS","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"TRIANGLE_BOTTOM","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"TRIANGLE_TOP","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"TRIANGLES_BOTTOM","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"TRIANGLES_TOP","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"DIAGONAL_LEFT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"DIAGONAL_RIGHT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"DIAGONAL_LEFT_MIRROR","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"DIAGONAL_RIGHT_MIRROR","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"CIRCLE_MIDDLE","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"RHOMBUS_MIDDLE","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"HALF_VERTICAL","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"HALF_HORIZONTAL","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"HALF_VERTICAL_MIRROR","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"HALF_HORIZONTAL_MIRROR","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"BORDER","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"CURLY_BORDER","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"CREEPER","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"GRADIENT","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"GRADIENT_UP","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"BRICKS","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"SKULL","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"FLOWER","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"},{"name":"MOJANG","access":16409,"descriptor":"Lorg/bukkit/block/banner/PatternType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getIdentifier","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getByIdentifier","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/block/banner/PatternType;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/block/banner/PatternType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/block/banner/PatternType;"}]},{"name":"org/bukkit/boss/BarColor","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"PINK","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"BLUE","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"RED","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"GREEN","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"YELLOW","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"PURPLE","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"},{"name":"WHITE","access":16409,"descriptor":"Lorg/bukkit/boss/BarColor;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/boss/BarColor;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/boss/BarColor;"}]},{"name":"org/bukkit/boss/BarFlag","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"DARKEN_SKY","access":16409,"descriptor":"Lorg/bukkit/boss/BarFlag;"},{"name":"PLAY_BOSS_MUSIC","access":16409,"descriptor":"Lorg/bukkit/boss/BarFlag;"},{"name":"CREATE_FOG","access":16409,"descriptor":"Lorg/bukkit/boss/BarFlag;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/boss/BarFlag;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/boss/BarFlag;"}]},{"name":"org/bukkit/boss/BarStyle","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"SOLID","access":16409,"descriptor":"Lorg/bukkit/boss/BarStyle;"},{"name":"SEGMENTED_6","access":16409,"descriptor":"Lorg/bukkit/boss/BarStyle;"},{"name":"SEGMENTED_10","access":16409,"descriptor":"Lorg/bukkit/boss/BarStyle;"},{"name":"SEGMENTED_12","access":16409,"descriptor":"Lorg/bukkit/boss/BarStyle;"},{"name":"SEGMENTED_20","access":16409,"descriptor":"Lorg/bukkit/boss/BarStyle;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/boss/BarStyle;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/boss/BarStyle;"}]},{"name":"org/bukkit/boss/BossBar","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getTitle","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setTitle","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getColor","access":1025,"descriptor":"()Lorg/bukkit/boss/BarColor;"},{"name":"setColor","access":1025,"descriptor":"(Lorg/bukkit/boss/BarColor;)V"},{"name":"getStyle","access":1025,"descriptor":"()Lorg/bukkit/boss/BarStyle;"},{"name":"setStyle","access":1025,"descriptor":"(Lorg/bukkit/boss/BarStyle;)V"},{"name":"removeFlag","access":1025,"descriptor":"(Lorg/bukkit/boss/BarFlag;)V"},{"name":"addFlag","access":1025,"descriptor":"(Lorg/bukkit/boss/BarFlag;)V"},{"name":"hasFlag","access":1025,"descriptor":"(Lorg/bukkit/boss/BarFlag;)Z"},{"name":"setProgress","access":1025,"descriptor":"(D)V"},{"name":"getProgress","access":1025,"descriptor":"()D"},{"name":"addPlayer","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"removePlayer","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"removeAll","access":1025,"descriptor":"()V"},{"name":"getPlayers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"setVisible","access":1025,"descriptor":"(Z)V"},{"name":"isVisible","access":1025,"descriptor":"()Z"},{"name":"show","access":132097,"descriptor":"()V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hide","access":132097,"descriptor":"()V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/command/Command","version":51,"access":1057,"superName":"java/lang/Object","fields":[{"name":"description","access":4,"descriptor":"Ljava/lang/String;"},{"name":"usageMessage","access":4,"descriptor":"Ljava/lang/String;"},{"name":"timings","access":1,"descriptor":"Lorg/spigotmc/CustomTimingsHandler;"}],"methods":[{"name":"","access":4,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":4,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V","signature":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V"},{"name":"execute","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Z"},{"name":"tabComplete","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"tabComplete","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;Lorg/bukkit/Location;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;Lorg/bukkit/Location;)Ljava/util/List;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setName","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getPermission","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setPermission","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"testPermission","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;)Z"},{"name":"testPermissionSilent","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;)Z"},{"name":"getLabel","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setLabel","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"register","access":1,"descriptor":"(Lorg/bukkit/command/CommandMap;)Z"},{"name":"unregister","access":1,"descriptor":"(Lorg/bukkit/command/CommandMap;)Z"},{"name":"isRegistered","access":1,"descriptor":"()Z"},{"name":"getAliases","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getPermissionMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getDescription","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getUsage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setAliases","access":1,"descriptor":"(Ljava/util/List;)Lorg/bukkit/command/Command;","signature":"(Ljava/util/List;)Lorg/bukkit/command/Command;"},{"name":"setDescription","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/Command;"},{"name":"setPermissionMessage","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/Command;"},{"name":"setUsage","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/Command;"},{"name":"broadcastCommandMessage","access":9,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)V"},{"name":"broadcastCommandMessage","access":9,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;Z)V"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/command/CommandException","version":51,"access":33,"superName":"java/lang/RuntimeException","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Throwable;)V"}]},{"name":"org/bukkit/command/CommandExecutor","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"onCommand","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Z"}]},{"name":"org/bukkit/command/CommandMap","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"registerAll","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/List;)V","signature":"(Ljava/lang/String;Ljava/util/List;)V"},{"name":"register","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/command/Command;)Z"},{"name":"register","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/command/Command;)Z"},{"name":"dispatch","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)Z","exceptions":["org/bukkit/command/CommandException"]},{"name":"clearCommands","access":1025,"descriptor":"()V"},{"name":"getCommand","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/Command;"},{"name":"tabComplete","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;)Ljava/util/List;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"tabComplete","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;Lorg/bukkit/Location;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;Lorg/bukkit/Location;)Ljava/util/List;","exceptions":["java/lang/IllegalArgumentException"]}]},{"name":"org/bukkit/command/CommandSender","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/permissions/Permissible"],"innerClasses":[{"name":"org/bukkit/command/CommandSender$Spigot","outerName":"org/bukkit/command/CommandSender","innerName":"Spigot","access":9}],"methods":[{"name":"sendMessage","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"sendMessage","access":1025,"descriptor":"([Ljava/lang/String;)V"},{"name":"getServer","access":1025,"descriptor":"()Lorg/bukkit/Server;"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/command/CommandSender$Spigot;"}]},{"name":"org/bukkit/command/CommandSender$Spigot","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/command/CommandSender$Spigot","outerName":"org/bukkit/command/CommandSender","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"sendMessage","access":1,"descriptor":"(Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"sendMessage","access":129,"descriptor":"([Lnet/md_5/bungee/api/chat/BaseComponent;)V"}]},{"name":"org/bukkit/command/ConsoleCommandSender","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/command/CommandSender","org/bukkit/conversations/Conversable"]},{"name":"org/bukkit/command/PluginCommand","version":51,"access":49,"superName":"org/bukkit/command/Command","interfaces":["org/bukkit/command/PluginIdentifiableCommand"],"methods":[{"name":"","access":4,"descriptor":"(Ljava/lang/String;Lorg/bukkit/plugin/Plugin;)V"},{"name":"execute","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Z"},{"name":"setExecutor","access":1,"descriptor":"(Lorg/bukkit/command/CommandExecutor;)V"},{"name":"getExecutor","access":1,"descriptor":"()Lorg/bukkit/command/CommandExecutor;"},{"name":"setTabCompleter","access":1,"descriptor":"(Lorg/bukkit/command/TabCompleter;)V"},{"name":"getTabCompleter","access":1,"descriptor":"()Lorg/bukkit/command/TabCompleter;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"tabComplete","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","exceptions":["org/bukkit/command/CommandException","java/lang/IllegalArgumentException"]},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/command/PluginIdentifiableCommand","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPlugin","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"}]},{"name":"org/bukkit/command/TabCompleter","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"onTabComplete","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;"}]},{"name":"org/bukkit/command/TabExecutor","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/command/TabCompleter","org/bukkit/command/CommandExecutor"]},{"name":"org/bukkit/configuration/Configuration","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/ConfigurationSection"],"methods":[{"name":"addDefault","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"},{"name":"addDefaults","access":1025,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"addDefaults","access":1025,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"setDefaults","access":1025,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"getDefaults","access":1025,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"options","access":1025,"descriptor":"()Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/ConfigurationOptions","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":4,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"configuration","access":1,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"pathSeparator","access":1,"descriptor":"()C"},{"name":"pathSeparator","access":1,"descriptor":"(C)Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"copyDefaults","access":1,"descriptor":"()Z"},{"name":"copyDefaults","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/ConfigurationSection","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getKeys","access":1025,"descriptor":"(Z)Ljava/util/Set;","signature":"(Z)Ljava/util/Set;"},{"name":"getValues","access":1025,"descriptor":"(Z)Ljava/util/Map;","signature":"(Z)Ljava/util/Map;"},{"name":"contains","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"contains","access":1025,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"isSet","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getCurrentPath","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getRoot","access":1025,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"getParent","access":1025,"descriptor":"()Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"get","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;"},{"name":"get","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"set","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"},{"name":"createSection","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"createSection","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/Map;)Lorg/bukkit/configuration/ConfigurationSection;","signature":"(Ljava/lang/String;Ljava/util/Map<**>;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"getString","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"getString","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"},{"name":"isString","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getInt","access":1025,"descriptor":"(Ljava/lang/String;)I"},{"name":"getInt","access":1025,"descriptor":"(Ljava/lang/String;I)I"},{"name":"isInt","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getBoolean","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getBoolean","access":1025,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"isBoolean","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getDouble","access":1025,"descriptor":"(Ljava/lang/String;)D"},{"name":"getDouble","access":1025,"descriptor":"(Ljava/lang/String;D)D"},{"name":"isDouble","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getLong","access":1025,"descriptor":"(Ljava/lang/String;)J"},{"name":"getLong","access":1025,"descriptor":"(Ljava/lang/String;J)J"},{"name":"isLong","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List<*>;"},{"name":"getList","access":1025,"descriptor":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;","signature":"(Ljava/lang/String;Ljava/util/List<*>;)Ljava/util/List<*>;"},{"name":"isList","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getStringList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getIntegerList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getBooleanList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getDoubleList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getFloatList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getLongList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getByteList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getCharacterList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getShortList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getMapList","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;>;"},{"name":"getSerializable","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Class;)Lorg/bukkit/configuration/serialization/ConfigurationSerializable;","signature":"(Ljava/lang/String;Ljava/lang/Class;)TT;"},{"name":"getSerializable","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Class;Lorg/bukkit/configuration/serialization/ConfigurationSerializable;)Lorg/bukkit/configuration/serialization/ConfigurationSerializable;","signature":"(Ljava/lang/String;Ljava/lang/Class;TT;)TT;"},{"name":"getVector","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/util/Vector;"},{"name":"getVector","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"isVector","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getOfflinePlayer","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/OfflinePlayer;"},{"name":"getOfflinePlayer","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/OfflinePlayer;)Lorg/bukkit/OfflinePlayer;"},{"name":"isOfflinePlayer","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getItemStack","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/ItemStack;"},{"name":"getItemStack","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/inventory/ItemStack;"},{"name":"isItemStack","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getColor","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Color;"},{"name":"getColor","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/Color;)Lorg/bukkit/Color;"},{"name":"isColor","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getConfigurationSection","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"isConfigurationSection","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getDefaultSection","access":1025,"descriptor":"()Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"addDefault","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"}]},{"name":"org/bukkit/configuration/InvalidConfigurationException","version":51,"access":33,"superName":"java/lang/Exception","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Throwable;)V"}]},{"name":"org/bukkit/configuration/MemoryConfiguration","version":51,"access":33,"superName":"org/bukkit/configuration/MemorySection","interfaces":["org/bukkit/configuration/Configuration"],"fields":[{"name":"defaults","access":4,"descriptor":"Lorg/bukkit/configuration/Configuration;"},{"name":"options","access":4,"descriptor":"Lorg/bukkit/configuration/MemoryConfigurationOptions;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"addDefault","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"},{"name":"addDefaults","access":1,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"addDefaults","access":1,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"setDefaults","access":1,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"getDefaults","access":1,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"getParent","access":1,"descriptor":"()Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"options","access":1,"descriptor":"()Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/MemoryConfigurationOptions","version":51,"access":33,"superName":"org/bukkit/configuration/ConfigurationOptions","methods":[{"name":"","access":4,"descriptor":"(Lorg/bukkit/configuration/MemoryConfiguration;)V"},{"name":"configuration","access":1,"descriptor":"()Lorg/bukkit/configuration/MemoryConfiguration;"},{"name":"copyDefaults","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"pathSeparator","access":1,"descriptor":"(C)Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/MemorySection","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/ConfigurationSection"],"fields":[{"name":"map","access":20,"descriptor":"Ljava/util/Map;","signature":"Ljava/util/Map;"}],"methods":[{"name":"","access":4,"descriptor":"()V"},{"name":"","access":4,"descriptor":"(Lorg/bukkit/configuration/ConfigurationSection;Ljava/lang/String;)V"},{"name":"getKeys","access":1,"descriptor":"(Z)Ljava/util/Set;","signature":"(Z)Ljava/util/Set;"},{"name":"getValues","access":1,"descriptor":"(Z)Ljava/util/Map;","signature":"(Z)Ljava/util/Map;"},{"name":"contains","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"contains","access":1,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"isSet","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getCurrentPath","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getRoot","access":1,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"getParent","access":1,"descriptor":"()Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"addDefault","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"},{"name":"getDefaultSection","access":1,"descriptor":"()Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"set","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)V"},{"name":"get","access":1,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;"},{"name":"get","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"createSection","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"createSection","access":1,"descriptor":"(Ljava/lang/String;Ljava/util/Map;)Lorg/bukkit/configuration/ConfigurationSection;","signature":"(Ljava/lang/String;Ljava/util/Map<**>;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"getString","access":1,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"getString","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"},{"name":"isString","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getInt","access":1,"descriptor":"(Ljava/lang/String;)I"},{"name":"getInt","access":1,"descriptor":"(Ljava/lang/String;I)I"},{"name":"isInt","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getBoolean","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getBoolean","access":1,"descriptor":"(Ljava/lang/String;Z)Z"},{"name":"isBoolean","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getDouble","access":1,"descriptor":"(Ljava/lang/String;)D"},{"name":"getDouble","access":1,"descriptor":"(Ljava/lang/String;D)D"},{"name":"isDouble","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getLong","access":1,"descriptor":"(Ljava/lang/String;)J"},{"name":"getLong","access":1,"descriptor":"(Ljava/lang/String;J)J"},{"name":"isLong","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List<*>;"},{"name":"getList","access":1,"descriptor":"(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;","signature":"(Ljava/lang/String;Ljava/util/List<*>;)Ljava/util/List<*>;"},{"name":"isList","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getStringList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getIntegerList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getBooleanList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getDoubleList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getFloatList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getLongList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getByteList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getCharacterList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getShortList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"getMapList","access":1,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;>;"},{"name":"getSerializable","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Class;)Lorg/bukkit/configuration/serialization/ConfigurationSerializable;","signature":"(Ljava/lang/String;Ljava/lang/Class;)TT;"},{"name":"getSerializable","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Class;Lorg/bukkit/configuration/serialization/ConfigurationSerializable;)Lorg/bukkit/configuration/serialization/ConfigurationSerializable;","signature":"(Ljava/lang/String;Ljava/lang/Class;TT;)TT;"},{"name":"getVector","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/util/Vector;"},{"name":"getVector","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"isVector","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getOfflinePlayer","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/OfflinePlayer;"},{"name":"getOfflinePlayer","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/OfflinePlayer;)Lorg/bukkit/OfflinePlayer;"},{"name":"isOfflinePlayer","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getItemStack","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/ItemStack;"},{"name":"getItemStack","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/inventory/ItemStack;"},{"name":"isItemStack","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getColor","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/Color;"},{"name":"getColor","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/Color;)Lorg/bukkit/Color;"},{"name":"isColor","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getConfigurationSection","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/ConfigurationSection;"},{"name":"isConfigurationSection","access":1,"descriptor":"(Ljava/lang/String;)Z"},{"name":"isPrimitiveWrapper","access":4,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"getDefault","access":4,"descriptor":"(Ljava/lang/String;)Ljava/lang/Object;"},{"name":"mapChildrenKeys","access":4,"descriptor":"(Ljava/util/Set;Lorg/bukkit/configuration/ConfigurationSection;Z)V","signature":"(Ljava/util/Set;Lorg/bukkit/configuration/ConfigurationSection;Z)V"},{"name":"mapChildrenValues","access":4,"descriptor":"(Ljava/util/Map;Lorg/bukkit/configuration/ConfigurationSection;Z)V","signature":"(Ljava/util/Map;Lorg/bukkit/configuration/ConfigurationSection;Z)V"},{"name":"createPath","access":9,"descriptor":"(Lorg/bukkit/configuration/ConfigurationSection;Ljava/lang/String;)Ljava/lang/String;"},{"name":"createPath","access":9,"descriptor":"(Lorg/bukkit/configuration/ConfigurationSection;Ljava/lang/String;Lorg/bukkit/configuration/ConfigurationSection;)Ljava/lang/String;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/configuration/file/FileConfiguration","version":51,"access":1057,"superName":"org/bukkit/configuration/MemoryConfiguration","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/configuration/Configuration;)V"},{"name":"save","access":1,"descriptor":"(Ljava/io/File;)V","exceptions":["java/io/IOException"]},{"name":"save","access":1,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/io/IOException"]},{"name":"saveToString","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"load","access":1,"descriptor":"(Ljava/io/File;)V","exceptions":["java/io/FileNotFoundException","java/io/IOException","org/bukkit/configuration/InvalidConfigurationException"]},{"name":"load","access":1,"descriptor":"(Ljava/io/Reader;)V","exceptions":["java/io/IOException","org/bukkit/configuration/InvalidConfigurationException"]},{"name":"load","access":1,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/io/FileNotFoundException","java/io/IOException","org/bukkit/configuration/InvalidConfigurationException"]},{"name":"loadFromString","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["org/bukkit/configuration/InvalidConfigurationException"]},{"name":"buildHeader","access":1028,"descriptor":"()Ljava/lang/String;"},{"name":"options","access":1,"descriptor":"()Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/file/FileConfigurationOptions","version":51,"access":33,"superName":"org/bukkit/configuration/MemoryConfigurationOptions","methods":[{"name":"","access":4,"descriptor":"(Lorg/bukkit/configuration/MemoryConfiguration;)V"},{"name":"configuration","access":1,"descriptor":"()Lorg/bukkit/configuration/file/FileConfiguration;"},{"name":"copyDefaults","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"pathSeparator","access":1,"descriptor":"(C)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"header","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"header","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"copyHeader","access":1,"descriptor":"()Z"},{"name":"copyHeader","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/MemoryConfiguration;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/ConfigurationOptions;"}]},{"name":"org/bukkit/configuration/file/YamlConfiguration","version":51,"access":33,"superName":"org/bukkit/configuration/file/FileConfiguration","fields":[{"name":"COMMENT_PREFIX","access":28,"descriptor":"Ljava/lang/String;","constant":"# "},{"name":"BLANK_CONFIG","access":28,"descriptor":"Ljava/lang/String;","constant":"{}\n"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"saveToString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"loadFromString","access":1,"descriptor":"(Ljava/lang/String;)V","exceptions":["org/bukkit/configuration/InvalidConfigurationException"]},{"name":"convertMapsToSections","access":4,"descriptor":"(Ljava/util/Map;Lorg/bukkit/configuration/ConfigurationSection;)V","signature":"(Ljava/util/Map<**>;Lorg/bukkit/configuration/ConfigurationSection;)V"},{"name":"parseHeader","access":4,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"buildHeader","access":4,"descriptor":"()Ljava/lang/String;"},{"name":"options","access":1,"descriptor":"()Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"loadConfiguration","access":9,"descriptor":"(Ljava/io/File;)Lorg/bukkit/configuration/file/YamlConfiguration;"},{"name":"loadConfiguration","access":9,"descriptor":"(Ljava/io/Reader;)Lorg/bukkit/configuration/file/YamlConfiguration;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"options","access":4161,"descriptor":"()Lorg/bukkit/configuration/MemoryConfigurationOptions;"}]},{"name":"org/bukkit/configuration/file/YamlConfigurationOptions","version":51,"access":33,"superName":"org/bukkit/configuration/file/FileConfigurationOptions","methods":[{"name":"","access":4,"descriptor":"(Lorg/bukkit/configuration/file/YamlConfiguration;)V"},{"name":"configuration","access":1,"descriptor":"()Lorg/bukkit/configuration/file/YamlConfiguration;"},{"name":"copyDefaults","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"pathSeparator","access":1,"descriptor":"(C)Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"header","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"copyHeader","access":1,"descriptor":"(Z)Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"indent","access":1,"descriptor":"()I"},{"name":"indent","access":1,"descriptor":"(I)Lorg/bukkit/configuration/file/YamlConfigurationOptions;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/file/FileConfiguration;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/Configuration;"},{"name":"configuration","access":4161,"descriptor":"()Lorg/bukkit/configuration/MemoryConfiguration;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"copyDefaults","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/MemoryConfigurationOptions;"},{"name":"header","access":4161,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"copyHeader","access":4161,"descriptor":"(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/file/FileConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/ConfigurationOptions;"},{"name":"pathSeparator","access":4161,"descriptor":"(C)Lorg/bukkit/configuration/MemoryConfigurationOptions;"}]},{"name":"org/bukkit/configuration/serialization/ConfigurationSerializable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"serialize","access":1025,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"}]},{"name":"org/bukkit/configuration/serialization/SerializableAs","version":51,"access":9729,"superName":"java/lang/Object","interfaces":["java/lang/annotation/Annotation"],"annotations":[{"descriptor":"Ljava/lang/annotation/Retention;","visible":true,"values":{"value":{"kind":"enum","descriptor":"Ljava/lang/annotation/RetentionPolicy;","name":"RUNTIME"}}},{"descriptor":"Ljava/lang/annotation/Target;","visible":true,"values":{"value":[{"kind":"enum","descriptor":"Ljava/lang/annotation/ElementType;","name":"TYPE"}]}}],"methods":[{"name":"value","access":1025,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/conversations/Conversable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"isConversing","access":1025,"descriptor":"()Z"},{"name":"acceptConversationInput","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"beginConversation","access":1025,"descriptor":"(Lorg/bukkit/conversations/Conversation;)Z"},{"name":"abandonConversation","access":1025,"descriptor":"(Lorg/bukkit/conversations/Conversation;)V"},{"name":"abandonConversation","access":1025,"descriptor":"(Lorg/bukkit/conversations/Conversation;Lorg/bukkit/conversations/ConversationAbandonedEvent;)V"},{"name":"sendRawMessage","access":1025,"descriptor":"(Ljava/lang/String;)V"}]},{"name":"org/bukkit/conversations/Conversation","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/conversations/Conversation$ConversationState","outerName":"org/bukkit/conversations/Conversation","innerName":"ConversationState","access":16409}],"fields":[{"name":"currentPrompt","access":4,"descriptor":"Lorg/bukkit/conversations/Prompt;"},{"name":"context","access":4,"descriptor":"Lorg/bukkit/conversations/ConversationContext;"},{"name":"modal","access":4,"descriptor":"Z"},{"name":"localEchoEnabled","access":4,"descriptor":"Z"},{"name":"prefix","access":4,"descriptor":"Lorg/bukkit/conversations/ConversationPrefix;"},{"name":"cancellers","access":4,"descriptor":"Ljava/util/List;","signature":"Ljava/util/List;"},{"name":"abandonedListeners","access":4,"descriptor":"Ljava/util/List;","signature":"Ljava/util/List;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/conversations/Conversable;Lorg/bukkit/conversations/Prompt;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/conversations/Conversable;Lorg/bukkit/conversations/Prompt;Ljava/util/Map;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/conversations/Conversable;Lorg/bukkit/conversations/Prompt;Ljava/util/Map;)V"},{"name":"getForWhom","access":1,"descriptor":"()Lorg/bukkit/conversations/Conversable;"},{"name":"isModal","access":1,"descriptor":"()Z"},{"name":"setModal","access":0,"descriptor":"(Z)V"},{"name":"isLocalEchoEnabled","access":1,"descriptor":"()Z"},{"name":"setLocalEchoEnabled","access":1,"descriptor":"(Z)V"},{"name":"getPrefix","access":1,"descriptor":"()Lorg/bukkit/conversations/ConversationPrefix;"},{"name":"setPrefix","access":0,"descriptor":"(Lorg/bukkit/conversations/ConversationPrefix;)V"},{"name":"addConversationCanceller","access":0,"descriptor":"(Lorg/bukkit/conversations/ConversationCanceller;)V"},{"name":"getCancellers","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getContext","access":1,"descriptor":"()Lorg/bukkit/conversations/ConversationContext;"},{"name":"begin","access":1,"descriptor":"()V"},{"name":"getState","access":1,"descriptor":"()Lorg/bukkit/conversations/Conversation$ConversationState;"},{"name":"acceptInput","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"addConversationAbandonedListener","access":33,"descriptor":"(Lorg/bukkit/conversations/ConversationAbandonedListener;)V"},{"name":"removeConversationAbandonedListener","access":33,"descriptor":"(Lorg/bukkit/conversations/ConversationAbandonedListener;)V"},{"name":"abandon","access":1,"descriptor":"()V"},{"name":"abandon","access":33,"descriptor":"(Lorg/bukkit/conversations/ConversationAbandonedEvent;)V"},{"name":"outputNextPrompt","access":1,"descriptor":"()V"}]},{"name":"org/bukkit/conversations/Conversation$ConversationState","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/conversations/Conversation$ConversationState","outerName":"org/bukkit/conversations/Conversation","innerName":"ConversationState","access":16409}],"fields":[{"name":"UNSTARTED","access":16409,"descriptor":"Lorg/bukkit/conversations/Conversation$ConversationState;"},{"name":"STARTED","access":16409,"descriptor":"Lorg/bukkit/conversations/Conversation$ConversationState;"},{"name":"ABANDONED","access":16409,"descriptor":"Lorg/bukkit/conversations/Conversation$ConversationState;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/conversations/Conversation$ConversationState;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/conversations/Conversation$ConversationState;"}]},{"name":"org/bukkit/conversations/ConversationAbandonedEvent","version":51,"access":33,"superName":"java/util/EventObject","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/conversations/Conversation;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/conversations/Conversation;Lorg/bukkit/conversations/ConversationCanceller;)V"},{"name":"getCanceller","access":1,"descriptor":"()Lorg/bukkit/conversations/ConversationCanceller;"},{"name":"getContext","access":1,"descriptor":"()Lorg/bukkit/conversations/ConversationContext;"},{"name":"gracefulExit","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/conversations/ConversationAbandonedListener","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["java/util/EventListener"],"methods":[{"name":"conversationAbandoned","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationAbandonedEvent;)V"}]},{"name":"org/bukkit/conversations/ConversationCanceller","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable"],"methods":[{"name":"setConversation","access":1025,"descriptor":"(Lorg/bukkit/conversations/Conversation;)V"},{"name":"cancelBasedOnInput","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationContext;Ljava/lang/String;)Z"},{"name":"clone","access":1025,"descriptor":"()Lorg/bukkit/conversations/ConversationCanceller;"}]},{"name":"org/bukkit/conversations/ConversationContext","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/conversations/Conversable;Ljava/util/Map;)V","signature":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/conversations/Conversable;Ljava/util/Map;)V"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getForWhom","access":1,"descriptor":"()Lorg/bukkit/conversations/Conversable;"},{"name":"getAllSessionData","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getSessionData","access":1,"descriptor":"(Ljava/lang/Object;)Ljava/lang/Object;"},{"name":"setSessionData","access":1,"descriptor":"(Ljava/lang/Object;Ljava/lang/Object;)V"}]},{"name":"org/bukkit/conversations/ConversationPrefix","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPrefix","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationContext;)Ljava/lang/String;"}]},{"name":"org/bukkit/conversations/Prompt","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable"],"fields":[{"name":"END_OF_CONVERSATION","access":25,"descriptor":"Lorg/bukkit/conversations/Prompt;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getPromptText","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationContext;)Ljava/lang/String;"},{"name":"blocksForInput","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationContext;)Z"},{"name":"acceptInput","access":1025,"descriptor":"(Lorg/bukkit/conversations/ConversationContext;Ljava/lang/String;)Lorg/bukkit/conversations/Prompt;"}]},{"name":"org/bukkit/enchantments/Enchantment","version":51,"access":1057,"superName":"java/lang/Object","fields":[{"name":"PROTECTION_ENVIRONMENTAL","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"PROTECTION_FIRE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"PROTECTION_FALL","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"PROTECTION_EXPLOSIONS","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"PROTECTION_PROJECTILE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"OXYGEN","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"WATER_WORKER","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"THORNS","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DEPTH_STRIDER","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"FROST_WALKER","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"BINDING_CURSE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DAMAGE_ALL","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DAMAGE_UNDEAD","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DAMAGE_ARTHROPODS","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"KNOCKBACK","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"FIRE_ASPECT","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"LOOT_BONUS_MOBS","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"SWEEPING_EDGE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DIG_SPEED","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"SILK_TOUCH","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"DURABILITY","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"LOOT_BONUS_BLOCKS","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"ARROW_DAMAGE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"ARROW_KNOCKBACK","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"ARROW_FIRE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"ARROW_INFINITE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"LUCK","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"LURE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"MENDING","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"},{"name":"VANISHING_CURSE","access":25,"descriptor":"Lorg/bukkit/enchantments/Enchantment;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(I)V"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getMaxLevel","access":1025,"descriptor":"()I"},{"name":"getStartLevel","access":1025,"descriptor":"()I"},{"name":"getItemTarget","access":1025,"descriptor":"()Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"isTreasure","access":1025,"descriptor":"()Z"},{"name":"isCursed","access":1025,"descriptor":"()Z"},{"name":"conflictsWith","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)Z"},{"name":"canEnchantItem","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"registerEnchantment","access":9,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)V"},{"name":"isAcceptingRegistrations","access":9,"descriptor":"()Z"},{"name":"stopAcceptingRegistrations","access":9,"descriptor":"()V"},{"name":"getById","access":131081,"descriptor":"(I)Lorg/bukkit/enchantments/Enchantment;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByName","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/enchantments/Enchantment;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/enchantments/Enchantment;"}]},{"name":"org/bukkit/enchantments/EnchantmentTarget","version":51,"access":17441,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"ALL","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"ARMOR","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"ARMOR_FEET","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"ARMOR_LEGS","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"ARMOR_TORSO","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"ARMOR_HEAD","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"WEAPON","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"TOOL","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"BOW","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"FISHING_ROD","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"BREAKABLE","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"WEARABLE","access":16409,"descriptor":"Lorg/bukkit/enchantments/EnchantmentTarget;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"includes","access":1025,"descriptor":"(Lorg/bukkit/Material;)Z"},{"name":"includes","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Z"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/enchantments/EnchantmentTarget;"},{"name":"","access":4096,"descriptor":"(Ljava/lang/String;ILorg/bukkit/enchantments/EnchantmentTarget;)V"}]},{"name":"org/bukkit/entity/Ageable","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Creature"],"methods":[{"name":"getAge","access":1025,"descriptor":"()I"},{"name":"setAge","access":1025,"descriptor":"(I)V"},{"name":"setAgeLock","access":1025,"descriptor":"(Z)V"},{"name":"getAgeLock","access":1025,"descriptor":"()Z"},{"name":"setBaby","access":1025,"descriptor":"()V"},{"name":"setAdult","access":1025,"descriptor":"()V"},{"name":"isAdult","access":1025,"descriptor":"()Z"},{"name":"canBreed","access":1025,"descriptor":"()Z"},{"name":"setBreed","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/entity/AnimalTamer","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getUniqueId","access":1025,"descriptor":"()Ljava/util/UUID;"}]},{"name":"org/bukkit/entity/Arrow","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Projectile"],"innerClasses":[{"name":"org/bukkit/entity/Arrow$PickupStatus","outerName":"org/bukkit/entity/Arrow","innerName":"PickupStatus","access":16409},{"name":"org/bukkit/entity/Arrow$Spigot","outerName":"org/bukkit/entity/Arrow","innerName":"Spigot","access":9}],"methods":[{"name":"getKnockbackStrength","access":1025,"descriptor":"()I"},{"name":"setKnockbackStrength","access":1025,"descriptor":"(I)V"},{"name":"isCritical","access":1025,"descriptor":"()Z"},{"name":"setCritical","access":1025,"descriptor":"(Z)V"},{"name":"isInBlock","access":1025,"descriptor":"()Z"},{"name":"getAttachedBlock","access":1025,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"getPickupStatus","access":1025,"descriptor":"()Lorg/bukkit/entity/Arrow$PickupStatus;"},{"name":"setPickupStatus","access":1025,"descriptor":"(Lorg/bukkit/entity/Arrow$PickupStatus;)V"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/entity/Arrow$Spigot;"}]},{"name":"org/bukkit/entity/Arrow$PickupStatus","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/entity/Arrow$PickupStatus","outerName":"org/bukkit/entity/Arrow","innerName":"PickupStatus","access":16409}],"fields":[{"name":"DISALLOWED","access":16409,"descriptor":"Lorg/bukkit/entity/Arrow$PickupStatus;"},{"name":"ALLOWED","access":16409,"descriptor":"Lorg/bukkit/entity/Arrow$PickupStatus;"},{"name":"CREATIVE_ONLY","access":16409,"descriptor":"Lorg/bukkit/entity/Arrow$PickupStatus;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/entity/Arrow$PickupStatus;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Arrow$PickupStatus;"}]},{"name":"org/bukkit/entity/Arrow$Spigot","version":51,"access":33,"superName":"org/bukkit/entity/Entity$Spigot","innerClasses":[{"name":"org/bukkit/entity/Arrow$Spigot","outerName":"org/bukkit/entity/Arrow","innerName":"Spigot","access":9},{"name":"org/bukkit/entity/Entity$Spigot","outerName":"org/bukkit/entity/Entity","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getDamage","access":1,"descriptor":"()D"},{"name":"setDamage","access":1,"descriptor":"(D)V"}]},{"name":"org/bukkit/entity/Boat","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Vehicle"],"methods":[{"name":"getWoodType","access":1025,"descriptor":"()Lorg/bukkit/TreeSpecies;"},{"name":"setWoodType","access":1025,"descriptor":"(Lorg/bukkit/TreeSpecies;)V"},{"name":"getMaxSpeed","access":132097,"descriptor":"()D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setMaxSpeed","access":132097,"descriptor":"(D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getOccupiedDeceleration","access":132097,"descriptor":"()D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setOccupiedDeceleration","access":132097,"descriptor":"(D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getUnoccupiedDeceleration","access":132097,"descriptor":"()D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setUnoccupiedDeceleration","access":132097,"descriptor":"(D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getWorkOnLand","access":132097,"descriptor":"()Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setWorkOnLand","access":132097,"descriptor":"(Z)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/entity/Creature","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/LivingEntity"],"methods":[{"name":"setTarget","access":1025,"descriptor":"(Lorg/bukkit/entity/LivingEntity;)V"},{"name":"getTarget","access":1025,"descriptor":"()Lorg/bukkit/entity/LivingEntity;"}]},{"name":"org/bukkit/entity/CreatureType","version":50,"access":147505,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"fields":[{"name":"CREEPER","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SKELETON","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SPIDER","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"GIANT","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SLIME","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"GHAST","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"PIG_ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"ENDERMAN","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"CAVE_SPIDER","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SILVERFISH","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"BLAZE","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"MAGMA_CUBE","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"ENDER_DRAGON","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"ENDERMITE","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"GUARDIAN","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"PIG","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SHEEP","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"COW","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"CHICKEN","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SQUID","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"WOLF","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"MUSHROOM_COW","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"SNOWMAN","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"RABBIT","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"},{"name":"VILLAGER","access":16409,"descriptor":"Lorg/bukkit/entity/CreatureType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getEntityClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<+Lorg/bukkit/entity/Entity;>;"},{"name":"getTypeId","access":131073,"descriptor":"()S","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromName","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/CreatureType;"},{"name":"fromId","access":131081,"descriptor":"(I)Lorg/bukkit/entity/CreatureType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"toEntityType","access":131073,"descriptor":"()Lorg/bukkit/entity/EntityType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromEntityType","access":9,"descriptor":"(Lorg/bukkit/entity/EntityType;)Lorg/bukkit/entity/CreatureType;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/entity/CreatureType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/CreatureType;"}]},{"name":"org/bukkit/entity/Damageable","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"],"methods":[{"name":"damage","access":1025,"descriptor":"(D)V"},{"name":"damage","access":1025,"descriptor":"(DLorg/bukkit/entity/Entity;)V"},{"name":"getHealth","access":1025,"descriptor":"()D"},{"name":"setHealth","access":1025,"descriptor":"(D)V"},{"name":"getMaxHealth","access":132097,"descriptor":"()D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setMaxHealth","access":132097,"descriptor":"(D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"resetMaxHealth","access":132097,"descriptor":"()V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/entity/Egg","version":50,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Projectile"]},{"name":"org/bukkit/entity/Entity","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/metadata/Metadatable","org/bukkit/command/CommandSender","org/bukkit/Nameable"],"innerClasses":[{"name":"org/bukkit/entity/Entity$Spigot","outerName":"org/bukkit/entity/Entity","innerName":"Spigot","access":9},{"name":"org/bukkit/event/player/PlayerTeleportEvent$TeleportCause","outerName":"org/bukkit/event/player/PlayerTeleportEvent","innerName":"TeleportCause","access":16409}],"methods":[{"name":"getLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;)Lorg/bukkit/Location;"},{"name":"setVelocity","access":1025,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"getVelocity","access":1025,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"getHeight","access":1025,"descriptor":"()D"},{"name":"getWidth","access":1025,"descriptor":"()D"},{"name":"isOnGround","access":1025,"descriptor":"()Z"},{"name":"getWorld","access":1025,"descriptor":"()Lorg/bukkit/World;"},{"name":"teleport","access":1025,"descriptor":"(Lorg/bukkit/Location;)Z"},{"name":"teleport","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)Z"},{"name":"teleport","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Z"},{"name":"teleport","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)Z"},{"name":"getNearbyEntities","access":1025,"descriptor":"(DDD)Ljava/util/List;","signature":"(DDD)Ljava/util/List;"},{"name":"getEntityId","access":1025,"descriptor":"()I"},{"name":"getFireTicks","access":1025,"descriptor":"()I"},{"name":"getMaxFireTicks","access":1025,"descriptor":"()I"},{"name":"setFireTicks","access":1025,"descriptor":"(I)V"},{"name":"remove","access":1025,"descriptor":"()V"},{"name":"isDead","access":1025,"descriptor":"()Z"},{"name":"isValid","access":1025,"descriptor":"()Z"},{"name":"getServer","access":1025,"descriptor":"()Lorg/bukkit/Server;"},{"name":"getPassenger","access":132097,"descriptor":"()Lorg/bukkit/entity/Entity;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setPassenger","access":132097,"descriptor":"(Lorg/bukkit/entity/Entity;)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getPassengers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"addPassenger","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Z"},{"name":"removePassenger","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Z"},{"name":"isEmpty","access":1025,"descriptor":"()Z"},{"name":"eject","access":1025,"descriptor":"()Z"},{"name":"getFallDistance","access":1025,"descriptor":"()F"},{"name":"setFallDistance","access":1025,"descriptor":"(F)V"},{"name":"setLastDamageCause","access":1025,"descriptor":"(Lorg/bukkit/event/entity/EntityDamageEvent;)V"},{"name":"getLastDamageCause","access":1025,"descriptor":"()Lorg/bukkit/event/entity/EntityDamageEvent;"},{"name":"getUniqueId","access":1025,"descriptor":"()Ljava/util/UUID;"},{"name":"getTicksLived","access":1025,"descriptor":"()I"},{"name":"setTicksLived","access":1025,"descriptor":"(I)V"},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/EntityEffect;)V"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/entity/EntityType;"},{"name":"isInsideVehicle","access":1025,"descriptor":"()Z"},{"name":"leaveVehicle","access":1025,"descriptor":"()Z"},{"name":"getVehicle","access":1025,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"setCustomNameVisible","access":1025,"descriptor":"(Z)V"},{"name":"isCustomNameVisible","access":1025,"descriptor":"()Z"},{"name":"setGlowing","access":1025,"descriptor":"(Z)V"},{"name":"isGlowing","access":1025,"descriptor":"()Z"},{"name":"setInvulnerable","access":1025,"descriptor":"(Z)V"},{"name":"isInvulnerable","access":1025,"descriptor":"()Z"},{"name":"isSilent","access":1025,"descriptor":"()Z"},{"name":"setSilent","access":1025,"descriptor":"(Z)V"},{"name":"hasGravity","access":1025,"descriptor":"()Z"},{"name":"setGravity","access":1025,"descriptor":"(Z)V"},{"name":"getPortalCooldown","access":1025,"descriptor":"()I"},{"name":"setPortalCooldown","access":1025,"descriptor":"(I)V"},{"name":"getScoreboardTags","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"addScoreboardTag","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"removeScoreboardTag","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"getPistonMoveReaction","access":1025,"descriptor":"()Lorg/bukkit/block/PistonMoveReaction;"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/entity/Entity$Spigot;"}]},{"name":"org/bukkit/entity/Entity$Spigot","version":51,"access":33,"superName":"org/bukkit/command/CommandSender$Spigot","innerClasses":[{"name":"org/bukkit/command/CommandSender$Spigot","outerName":"org/bukkit/command/CommandSender","innerName":"Spigot","access":9},{"name":"org/bukkit/entity/Entity$Spigot","outerName":"org/bukkit/entity/Entity","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"isInvulnerable","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/entity/EntityType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"DROPPED_ITEM","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"EXPERIENCE_ORB","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"AREA_EFFECT_CLOUD","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ELDER_GUARDIAN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WITHER_SKELETON","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"STRAY","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"EGG","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"LEASH_HITCH","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PAINTING","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ARROW","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SNOWBALL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"FIREBALL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SMALL_FIREBALL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDER_PEARL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDER_SIGNAL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SPLASH_POTION","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"THROWN_EXP_BOTTLE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ITEM_FRAME","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WITHER_SKULL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PRIMED_TNT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"FALLING_BLOCK","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"FIREWORK","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"HUSK","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SPECTRAL_ARROW","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SHULKER_BULLET","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"DRAGON_FIREBALL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ZOMBIE_VILLAGER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SKELETON_HORSE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ZOMBIE_HORSE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ARMOR_STAND","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"DONKEY","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MULE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"EVOKER_FANGS","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"EVOKER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"VEX","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"VINDICATOR","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ILLUSIONER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_COMMAND","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"BOAT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_CHEST","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_FURNACE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_TNT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_HOPPER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MINECART_MOB_SPAWNER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"CREEPER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SKELETON","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SPIDER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"GIANT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SLIME","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"GHAST","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PIG_ZOMBIE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDERMAN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"CAVE_SPIDER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SILVERFISH","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"BLAZE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MAGMA_CUBE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDER_DRAGON","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WITHER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"BAT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WITCH","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDERMITE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"GUARDIAN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SHULKER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PIG","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SHEEP","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"COW","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"CHICKEN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SQUID","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WOLF","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"MUSHROOM_COW","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"SNOWMAN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"OCELOT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"IRON_GOLEM","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"HORSE","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"RABBIT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"POLAR_BEAR","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"LLAMA","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"LLAMA_SPIT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PARROT","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"VILLAGER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"ENDER_CRYSTAL","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"LINGERING_POTION","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"FISHING_HOOK","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"LIGHTNING","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"WEATHER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"PLAYER","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"COMPLEX_PART","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"TIPPED_ARROW","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"},{"name":"UNKNOWN","access":16409,"descriptor":"Lorg/bukkit/entity/EntityType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getName","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntityClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class<+Lorg/bukkit/entity/Entity;>;"},{"name":"getTypeId","access":131073,"descriptor":"()S","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromName","access":131081,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/EntityType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"fromId","access":131081,"descriptor":"(I)Lorg/bukkit/entity/EntityType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isSpawnable","access":1,"descriptor":"()Z"},{"name":"isAlive","access":1,"descriptor":"()Z"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/entity/EntityType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/EntityType;"}]},{"name":"org/bukkit/entity/FallingBlock","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"],"methods":[{"name":"getMaterial","access":1025,"descriptor":"()Lorg/bukkit/Material;"},{"name":"getBlockId","access":132097,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getBlockData","access":132097,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getDropItem","access":1025,"descriptor":"()Z"},{"name":"setDropItem","access":1025,"descriptor":"(Z)V"},{"name":"canHurtEntities","access":1025,"descriptor":"()Z"},{"name":"setHurtEntities","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/entity/Fish","version":51,"access":132609,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/FishHook"]},{"name":"org/bukkit/entity/FishHook","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Projectile"],"methods":[{"name":"getBiteChance","access":132097,"descriptor":"()D","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setBiteChance","access":132097,"descriptor":"(D)V","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/entity/HumanEntity","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/LivingEntity","org/bukkit/entity/AnimalTamer","org/bukkit/permissions/Permissible","org/bukkit/inventory/InventoryHolder"],"innerClasses":[{"name":"org/bukkit/inventory/InventoryView$Property","outerName":"org/bukkit/inventory/InventoryView","innerName":"Property","access":16409}],"methods":[{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/PlayerInventory;"},{"name":"getEnderChest","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getMainHand","access":1025,"descriptor":"()Lorg/bukkit/inventory/MainHand;"},{"name":"setWindowProperty","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryView$Property;I)Z"},{"name":"getOpenInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/InventoryView;"},{"name":"openInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/Inventory;)Lorg/bukkit/inventory/InventoryView;"},{"name":"openWorkbench","access":1025,"descriptor":"(Lorg/bukkit/Location;Z)Lorg/bukkit/inventory/InventoryView;"},{"name":"openEnchanting","access":1025,"descriptor":"(Lorg/bukkit/Location;Z)Lorg/bukkit/inventory/InventoryView;"},{"name":"openInventory","access":1025,"descriptor":"(Lorg/bukkit/inventory/InventoryView;)V"},{"name":"openMerchant","access":1025,"descriptor":"(Lorg/bukkit/entity/Villager;Z)Lorg/bukkit/inventory/InventoryView;"},{"name":"openMerchant","access":1025,"descriptor":"(Lorg/bukkit/inventory/Merchant;Z)Lorg/bukkit/inventory/InventoryView;"},{"name":"closeInventory","access":1025,"descriptor":"()V"},{"name":"getItemInHand","access":132097,"descriptor":"()Lorg/bukkit/inventory/ItemStack;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setItemInHand","access":132097,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getItemOnCursor","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemOnCursor","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"hasCooldown","access":1025,"descriptor":"(Lorg/bukkit/Material;)Z"},{"name":"getCooldown","access":1025,"descriptor":"(Lorg/bukkit/Material;)I"},{"name":"setCooldown","access":1025,"descriptor":"(Lorg/bukkit/Material;I)V"},{"name":"isSleeping","access":1025,"descriptor":"()Z"},{"name":"getSleepTicks","access":1025,"descriptor":"()I"},{"name":"getGameMode","access":1025,"descriptor":"()Lorg/bukkit/GameMode;"},{"name":"setGameMode","access":1025,"descriptor":"(Lorg/bukkit/GameMode;)V"},{"name":"isBlocking","access":1025,"descriptor":"()Z"},{"name":"isHandRaised","access":1025,"descriptor":"()Z"},{"name":"getExpToLevel","access":1025,"descriptor":"()I"},{"name":"getShoulderEntityLeft","access":132097,"descriptor":"()Lorg/bukkit/entity/Entity;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setShoulderEntityLeft","access":132097,"descriptor":"(Lorg/bukkit/entity/Entity;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getShoulderEntityRight","access":132097,"descriptor":"()Lorg/bukkit/entity/Entity;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setShoulderEntityRight","access":132097,"descriptor":"(Lorg/bukkit/entity/Entity;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/entity/Item","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"],"methods":[{"name":"getItemStack","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemStack","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getPickupDelay","access":1025,"descriptor":"()I"},{"name":"setPickupDelay","access":1025,"descriptor":"(I)V"}]},{"name":"org/bukkit/entity/LightningStrike","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Weather"],"innerClasses":[{"name":"org/bukkit/entity/LightningStrike$Spigot","outerName":"org/bukkit/entity/LightningStrike","innerName":"Spigot","access":9}],"methods":[{"name":"isEffect","access":1025,"descriptor":"()Z"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/entity/LightningStrike$Spigot;"}]},{"name":"org/bukkit/entity/LightningStrike$Spigot","version":51,"access":33,"superName":"org/bukkit/entity/Entity$Spigot","innerClasses":[{"name":"org/bukkit/entity/Entity$Spigot","outerName":"org/bukkit/entity/Entity","innerName":"Spigot","access":9},{"name":"org/bukkit/entity/LightningStrike$Spigot","outerName":"org/bukkit/entity/LightningStrike","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"isSilent","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/entity/LivingEntity","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/attribute/Attributable","org/bukkit/entity/Entity","org/bukkit/entity/Damageable","org/bukkit/projectiles/ProjectileSource"],"methods":[{"name":"getEyeHeight","access":1025,"descriptor":"()D"},{"name":"getEyeHeight","access":1025,"descriptor":"(Z)D"},{"name":"getEyeLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getLineOfSight","access":1025,"descriptor":"(Ljava/util/Set;I)Ljava/util/List;","signature":"(Ljava/util/Set;I)Ljava/util/List;"},{"name":"getTargetBlock","access":1025,"descriptor":"(Ljava/util/Set;I)Lorg/bukkit/block/Block;","signature":"(Ljava/util/Set;I)Lorg/bukkit/block/Block;"},{"name":"getLastTwoTargetBlocks","access":1025,"descriptor":"(Ljava/util/Set;I)Ljava/util/List;","signature":"(Ljava/util/Set;I)Ljava/util/List;"},{"name":"getRemainingAir","access":1025,"descriptor":"()I"},{"name":"setRemainingAir","access":1025,"descriptor":"(I)V"},{"name":"getMaximumAir","access":1025,"descriptor":"()I"},{"name":"setMaximumAir","access":1025,"descriptor":"(I)V"},{"name":"getMaximumNoDamageTicks","access":1025,"descriptor":"()I"},{"name":"setMaximumNoDamageTicks","access":1025,"descriptor":"(I)V"},{"name":"getLastDamage","access":1025,"descriptor":"()D"},{"name":"setLastDamage","access":1025,"descriptor":"(D)V"},{"name":"getNoDamageTicks","access":1025,"descriptor":"()I"},{"name":"setNoDamageTicks","access":1025,"descriptor":"(I)V"},{"name":"getKiller","access":1025,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"addPotionEffect","access":1025,"descriptor":"(Lorg/bukkit/potion/PotionEffect;)Z"},{"name":"addPotionEffect","access":1025,"descriptor":"(Lorg/bukkit/potion/PotionEffect;Z)Z"},{"name":"addPotionEffects","access":1025,"descriptor":"(Ljava/util/Collection;)Z","signature":"(Ljava/util/Collection;)Z"},{"name":"hasPotionEffect","access":1025,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;)Z"},{"name":"getPotionEffect","access":1025,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;)Lorg/bukkit/potion/PotionEffect;"},{"name":"removePotionEffect","access":1025,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;)V"},{"name":"getActivePotionEffects","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"},{"name":"hasLineOfSight","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Z"},{"name":"getRemoveWhenFarAway","access":1025,"descriptor":"()Z"},{"name":"setRemoveWhenFarAway","access":1025,"descriptor":"(Z)V"},{"name":"getEquipment","access":1025,"descriptor":"()Lorg/bukkit/inventory/EntityEquipment;"},{"name":"setCanPickupItems","access":1025,"descriptor":"(Z)V"},{"name":"getCanPickupItems","access":1025,"descriptor":"()Z"},{"name":"isLeashed","access":1025,"descriptor":"()Z"},{"name":"getLeashHolder","access":1025,"descriptor":"()Lorg/bukkit/entity/Entity;","exceptions":["java/lang/IllegalStateException"]},{"name":"setLeashHolder","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)Z"},{"name":"isGliding","access":1025,"descriptor":"()Z"},{"name":"setGliding","access":1025,"descriptor":"(Z)V"},{"name":"setAI","access":1025,"descriptor":"(Z)V"},{"name":"hasAI","access":1025,"descriptor":"()Z"},{"name":"setCollidable","access":1025,"descriptor":"(Z)V"},{"name":"isCollidable","access":1025,"descriptor":"()Z"}]},{"name":"org/bukkit/entity/Minecart","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Vehicle"],"methods":[{"name":"setDamage","access":1025,"descriptor":"(D)V"},{"name":"getDamage","access":1025,"descriptor":"()D"},{"name":"getMaxSpeed","access":1025,"descriptor":"()D"},{"name":"setMaxSpeed","access":1025,"descriptor":"(D)V"},{"name":"isSlowWhenEmpty","access":1025,"descriptor":"()Z"},{"name":"setSlowWhenEmpty","access":1025,"descriptor":"(Z)V"},{"name":"getFlyingVelocityMod","access":1025,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"setFlyingVelocityMod","access":1025,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"getDerailedVelocityMod","access":1025,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"setDerailedVelocityMod","access":1025,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"setDisplayBlock","access":1025,"descriptor":"(Lorg/bukkit/material/MaterialData;)V"},{"name":"getDisplayBlock","access":1025,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"setDisplayBlockOffset","access":1025,"descriptor":"(I)V"},{"name":"getDisplayBlockOffset","access":1025,"descriptor":"()I"}]},{"name":"org/bukkit/entity/NPC","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Creature"]},{"name":"org/bukkit/entity/Player","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/HumanEntity","org/bukkit/conversations/Conversable","org/bukkit/command/CommandSender","org/bukkit/OfflinePlayer","org/bukkit/plugin/messaging/PluginMessageRecipient"],"innerClasses":[{"name":"org/bukkit/entity/Player$Spigot","outerName":"org/bukkit/entity/Player","innerName":"Spigot","access":9}],"methods":[{"name":"getDisplayName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setDisplayName","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getPlayerListName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setPlayerListName","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"setCompassTarget","access":1025,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"getCompassTarget","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"getAddress","access":1025,"descriptor":"()Ljava/net/InetSocketAddress;"},{"name":"sendRawMessage","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"kickPlayer","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"chat","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"performCommand","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"isSneaking","access":1025,"descriptor":"()Z"},{"name":"setSneaking","access":1025,"descriptor":"(Z)V"},{"name":"isSprinting","access":1025,"descriptor":"()Z"},{"name":"setSprinting","access":1025,"descriptor":"(Z)V"},{"name":"saveData","access":1025,"descriptor":"()V"},{"name":"loadData","access":1025,"descriptor":"()V"},{"name":"setSleepingIgnored","access":1025,"descriptor":"(Z)V"},{"name":"isSleepingIgnored","access":1025,"descriptor":"()Z"},{"name":"playNote","access":132097,"descriptor":"(Lorg/bukkit/Location;BB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"playNote","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Instrument;Lorg/bukkit/Note;)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Sound;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/String;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Sound;Lorg/bukkit/SoundCategory;FF)V"},{"name":"playSound","access":1025,"descriptor":"(Lorg/bukkit/Location;Ljava/lang/String;Lorg/bukkit/SoundCategory;FF)V"},{"name":"stopSound","access":1025,"descriptor":"(Lorg/bukkit/Sound;)V"},{"name":"stopSound","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"stopSound","access":1025,"descriptor":"(Lorg/bukkit/Sound;Lorg/bukkit/SoundCategory;)V"},{"name":"stopSound","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/SoundCategory;)V"},{"name":"playEffect","access":132097,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"playEffect","access":1025,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;Ljava/lang/Object;)V","signature":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;TT;)V"},{"name":"sendBlockChange","access":132097,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Material;B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"sendChunkChange","access":132097,"descriptor":"(Lorg/bukkit/Location;III[B)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"sendBlockChange","access":132097,"descriptor":"(Lorg/bukkit/Location;IB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"sendSignChange","access":1025,"descriptor":"(Lorg/bukkit/Location;[Ljava/lang/String;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"sendMap","access":1025,"descriptor":"(Lorg/bukkit/map/MapView;)V"},{"name":"updateInventory","access":1025,"descriptor":"()V"},{"name":"awardAchievement","access":132097,"descriptor":"(Lorg/bukkit/Achievement;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"removeAchievement","access":132097,"descriptor":"(Lorg/bukkit/Achievement;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hasAchievement","access":132097,"descriptor":"(Lorg/bukkit/Achievement;)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"setStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;)I","exceptions":["java/lang/IllegalArgumentException"]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;)I","exceptions":["java/lang/IllegalArgumentException"]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"setStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/Material;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;)I","exceptions":["java/lang/IllegalArgumentException"]},{"name":"incrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;I)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"decrementStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;I)V"},{"name":"setStatistic","access":1025,"descriptor":"(Lorg/bukkit/Statistic;Lorg/bukkit/entity/EntityType;I)V"},{"name":"setPlayerTime","access":1025,"descriptor":"(JZ)V"},{"name":"getPlayerTime","access":1025,"descriptor":"()J"},{"name":"getPlayerTimeOffset","access":1025,"descriptor":"()J"},{"name":"isPlayerTimeRelative","access":1025,"descriptor":"()Z"},{"name":"resetPlayerTime","access":1025,"descriptor":"()V"},{"name":"setPlayerWeather","access":1025,"descriptor":"(Lorg/bukkit/WeatherType;)V"},{"name":"getPlayerWeather","access":1025,"descriptor":"()Lorg/bukkit/WeatherType;"},{"name":"resetPlayerWeather","access":1025,"descriptor":"()V"},{"name":"giveExp","access":1025,"descriptor":"(I)V"},{"name":"giveExpLevels","access":1025,"descriptor":"(I)V"},{"name":"getExp","access":1025,"descriptor":"()F"},{"name":"setExp","access":1025,"descriptor":"(F)V"},{"name":"getLevel","access":1025,"descriptor":"()I"},{"name":"setLevel","access":1025,"descriptor":"(I)V"},{"name":"getTotalExperience","access":1025,"descriptor":"()I"},{"name":"setTotalExperience","access":1025,"descriptor":"(I)V"},{"name":"getExhaustion","access":1025,"descriptor":"()F"},{"name":"setExhaustion","access":1025,"descriptor":"(F)V"},{"name":"getSaturation","access":1025,"descriptor":"()F"},{"name":"setSaturation","access":1025,"descriptor":"(F)V"},{"name":"getFoodLevel","access":1025,"descriptor":"()I"},{"name":"setFoodLevel","access":1025,"descriptor":"(I)V"},{"name":"getBedSpawnLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setBedSpawnLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"setBedSpawnLocation","access":1025,"descriptor":"(Lorg/bukkit/Location;Z)V"},{"name":"getAllowFlight","access":1025,"descriptor":"()Z"},{"name":"setAllowFlight","access":1025,"descriptor":"(Z)V"},{"name":"hidePlayer","access":132097,"descriptor":"(Lorg/bukkit/entity/Player;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hidePlayer","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/entity/Player;)V"},{"name":"showPlayer","access":132097,"descriptor":"(Lorg/bukkit/entity/Player;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"showPlayer","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/entity/Player;)V"},{"name":"canSee","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"isFlying","access":1025,"descriptor":"()Z"},{"name":"setFlying","access":1025,"descriptor":"(Z)V"},{"name":"setFlySpeed","access":1025,"descriptor":"(F)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"setWalkSpeed","access":1025,"descriptor":"(F)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getFlySpeed","access":1025,"descriptor":"()F"},{"name":"getWalkSpeed","access":1025,"descriptor":"()F"},{"name":"setTexturePack","access":132097,"descriptor":"(Ljava/lang/String;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setResourcePack","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"setResourcePack","access":1025,"descriptor":"(Ljava/lang/String;[B)V"},{"name":"getScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"},{"name":"setScoreboard","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/Scoreboard;)V","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"isHealthScaled","access":1025,"descriptor":"()Z"},{"name":"setHealthScaled","access":1025,"descriptor":"(Z)V"},{"name":"setHealthScale","access":1025,"descriptor":"(D)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getHealthScale","access":1025,"descriptor":"()D"},{"name":"getSpectatorTarget","access":1025,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"setSpectatorTarget","access":1025,"descriptor":"(Lorg/bukkit/entity/Entity;)V"},{"name":"sendTitle","access":132097,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"sendTitle","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;III)V"},{"name":"resetTitle","access":1025,"descriptor":"()V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;I)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDI)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;ILjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;ITT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDILjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDITT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDIDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDD)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;Lorg/bukkit/Location;IDDDDTT;)V"},{"name":"spawnParticle","access":1025,"descriptor":"(Lorg/bukkit/Particle;DDDIDDDDLjava/lang/Object;)V","signature":"(Lorg/bukkit/Particle;DDDIDDDDTT;)V"},{"name":"getAdvancementProgress","access":1025,"descriptor":"(Lorg/bukkit/advancement/Advancement;)Lorg/bukkit/advancement/AdvancementProgress;"},{"name":"getLocale","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/entity/Player$Spigot;"}]},{"name":"org/bukkit/entity/Player$Spigot","version":51,"access":33,"superName":"org/bukkit/entity/Entity$Spigot","innerClasses":[{"name":"org/bukkit/entity/Entity$Spigot","outerName":"org/bukkit/entity/Entity","innerName":"Spigot","access":9},{"name":"org/bukkit/entity/Player$Spigot","outerName":"org/bukkit/entity/Player","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getRawAddress","access":1,"descriptor":"()Ljava/net/InetSocketAddress;"},{"name":"playEffect","access":131073,"descriptor":"(Lorg/bukkit/Location;Lorg/bukkit/Effect;IIFFFFII)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getCollidesWithEntities","access":131073,"descriptor":"()Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setCollidesWithEntities","access":131073,"descriptor":"(Z)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"respawn","access":1,"descriptor":"()V"},{"name":"getLocale","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHiddenPlayers","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"sendMessage","access":1,"descriptor":"(Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"sendMessage","access":129,"descriptor":"([Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"sendMessage","access":1,"descriptor":"(Lnet/md_5/bungee/api/ChatMessageType;Lnet/md_5/bungee/api/chat/BaseComponent;)V"},{"name":"sendMessage","access":129,"descriptor":"(Lnet/md_5/bungee/api/ChatMessageType;[Lnet/md_5/bungee/api/chat/BaseComponent;)V"}]},{"name":"org/bukkit/entity/Projectile","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"],"methods":[{"name":"getShooter","access":1025,"descriptor":"()Lorg/bukkit/projectiles/ProjectileSource;"},{"name":"setShooter","access":1025,"descriptor":"(Lorg/bukkit/projectiles/ProjectileSource;)V"},{"name":"doesBounce","access":1025,"descriptor":"()Z"},{"name":"setBounce","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/entity/Snowball","version":50,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Projectile"]},{"name":"org/bukkit/entity/Vehicle","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"],"methods":[{"name":"getVelocity","access":1025,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"setVelocity","access":1025,"descriptor":"(Lorg/bukkit/util/Vector;)V"}]},{"name":"org/bukkit/entity/Villager","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Ageable","org/bukkit/entity/NPC","org/bukkit/inventory/InventoryHolder","org/bukkit/inventory/Merchant"],"innerClasses":[{"name":"org/bukkit/entity/Villager$Career","outerName":"org/bukkit/entity/Villager","innerName":"Career","access":16409},{"name":"org/bukkit/entity/Villager$Profession","outerName":"org/bukkit/entity/Villager","innerName":"Profession","access":16409}],"methods":[{"name":"getProfession","access":1025,"descriptor":"()Lorg/bukkit/entity/Villager$Profession;"},{"name":"setProfession","access":1025,"descriptor":"(Lorg/bukkit/entity/Villager$Profession;)V"},{"name":"getCareer","access":1025,"descriptor":"()Lorg/bukkit/entity/Villager$Career;"},{"name":"setCareer","access":1025,"descriptor":"(Lorg/bukkit/entity/Villager$Career;)V"},{"name":"setCareer","access":1025,"descriptor":"(Lorg/bukkit/entity/Villager$Career;Z)V"},{"name":"getInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getRiches","access":1025,"descriptor":"()I"},{"name":"setRiches","access":1025,"descriptor":"(I)V"}]},{"name":"org/bukkit/entity/Villager$Career","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/entity/Villager$Career","outerName":"org/bukkit/entity/Villager","innerName":"Career","access":16409},{"name":"org/bukkit/entity/Villager$Profession","outerName":"org/bukkit/entity/Villager","innerName":"Profession","access":16409}],"fields":[{"name":"FARMER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"FISHERMAN","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"SHEPHERD","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"FLETCHER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"LIBRARIAN","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"CARTOGRAPHER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"CLERIC","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"ARMORER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"WEAPON_SMITH","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"TOOL_SMITH","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"BUTCHER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"LEATHERWORKER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"},{"name":"NITWIT","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Career;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getProfession","access":1,"descriptor":"()Lorg/bukkit/entity/Villager$Profession;"},{"name":"getCareers","access":9,"descriptor":"(Lorg/bukkit/entity/Villager$Profession;)Ljava/util/List;","signature":"(Lorg/bukkit/entity/Villager$Profession;)Ljava/util/List;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/entity/Villager$Career;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Villager$Career;"}]},{"name":"org/bukkit/entity/Villager$Profession","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/entity/Villager$Career","outerName":"org/bukkit/entity/Villager","innerName":"Career","access":16409},{"name":"org/bukkit/entity/Villager$Profession","outerName":"org/bukkit/entity/Villager","innerName":"Profession","access":16409}],"fields":[{"name":"NORMAL","access":147481,"descriptor":"Lorg/bukkit/entity/Villager$Profession;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"FARMER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"LIBRARIAN","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"PRIEST","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"BLACKSMITH","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"BUTCHER","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"NITWIT","access":16409,"descriptor":"Lorg/bukkit/entity/Villager$Profession;"},{"name":"HUSK","access":147481,"descriptor":"Lorg/bukkit/entity/Villager$Profession;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"isZombie","access":131073,"descriptor":"()Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getCareers","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/entity/Villager$Profession;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/entity/Villager$Profession;"}]},{"name":"org/bukkit/entity/Weather","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/entity/Entity"]},{"name":"org/bukkit/event/Cancellable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"isCancelled","access":1025,"descriptor":"()Z"},{"name":"setCancelled","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/event/Event","version":51,"access":1057,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/event/Event$Result","outerName":"org/bukkit/event/Event","innerName":"Result","access":16409}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Z)V"},{"name":"getEventName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getHandlers","access":1025,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"isAsynchronous","access":17,"descriptor":"()Z"}]},{"name":"org/bukkit/event/Event$Result","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/Event$Result","outerName":"org/bukkit/event/Event","innerName":"Result","access":16409}],"fields":[{"name":"DENY","access":16409,"descriptor":"Lorg/bukkit/event/Event$Result;"},{"name":"DEFAULT","access":16409,"descriptor":"Lorg/bukkit/event/Event$Result;"},{"name":"ALLOW","access":16409,"descriptor":"Lorg/bukkit/event/Event$Result;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/Event$Result;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/Event$Result;"}]},{"name":"org/bukkit/event/EventException","version":51,"access":33,"superName":"java/lang/Exception","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getCause","access":1,"descriptor":"()Ljava/lang/Throwable;"}]},{"name":"org/bukkit/event/EventHandler","version":52,"access":9729,"superName":"java/lang/Object","interfaces":["java/lang/annotation/Annotation"],"annotations":[{"descriptor":"Ljava/lang/annotation/Target;","visible":true,"values":{"value":[{"kind":"enum","descriptor":"Ljava/lang/annotation/ElementType;","name":"METHOD"}]}},{"descriptor":"Ljava/lang/annotation/Retention;","visible":true,"values":{"value":{"kind":"enum","descriptor":"Ljava/lang/annotation/RetentionPolicy;","name":"RUNTIME"}}}],"methods":[{"name":"priority","access":1025,"descriptor":"()Lorg/bukkit/event/EventPriority;","annotationDefault":{"kind":"enum","descriptor":"Lorg/bukkit/event/EventPriority;","name":"NORMAL"}},{"name":"ignoreCancelled","access":1025,"descriptor":"()Z","annotationDefault":false}]},{"name":"org/bukkit/event/EventPriority","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LOWEST","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"},{"name":"LOW","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"},{"name":"NORMAL","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"},{"name":"HIGH","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"},{"name":"HIGHEST","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"},{"name":"MONITOR","access":16409,"descriptor":"Lorg/bukkit/event/EventPriority;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getSlot","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/EventPriority;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/EventPriority;"}]},{"name":"org/bukkit/event/HandlerList","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"bakeAll","access":9,"descriptor":"()V"},{"name":"unregisterAll","access":9,"descriptor":"()V"},{"name":"unregisterAll","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"unregisterAll","access":9,"descriptor":"(Lorg/bukkit/event/Listener;)V"},{"name":"","access":1,"descriptor":"()V"},{"name":"register","access":33,"descriptor":"(Lorg/bukkit/plugin/RegisteredListener;)V"},{"name":"registerAll","access":1,"descriptor":"(Ljava/util/Collection;)V","signature":"(Ljava/util/Collection;)V"},{"name":"unregister","access":33,"descriptor":"(Lorg/bukkit/plugin/RegisteredListener;)V"},{"name":"unregister","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"unregister","access":33,"descriptor":"(Lorg/bukkit/event/Listener;)V"},{"name":"bake","access":33,"descriptor":"()V"},{"name":"getRegisteredListeners","access":1,"descriptor":"()[Lorg/bukkit/plugin/RegisteredListener;"},{"name":"getRegisteredListeners","access":9,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/ArrayList;","signature":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/ArrayList;"},{"name":"getHandlerLists","access":9,"descriptor":"()Ljava/util/ArrayList;","signature":"()Ljava/util/ArrayList;"}]},{"name":"org/bukkit/event/Listener","version":51,"access":1537,"superName":"java/lang/Object"},{"name":"org/bukkit/event/block/Action","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LEFT_CLICK_BLOCK","access":16409,"descriptor":"Lorg/bukkit/event/block/Action;"},{"name":"RIGHT_CLICK_BLOCK","access":16409,"descriptor":"Lorg/bukkit/event/block/Action;"},{"name":"LEFT_CLICK_AIR","access":16409,"descriptor":"Lorg/bukkit/event/block/Action;"},{"name":"RIGHT_CLICK_AIR","access":16409,"descriptor":"Lorg/bukkit/event/block/Action;"},{"name":"PHYSICAL","access":16409,"descriptor":"Lorg/bukkit/event/block/Action;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/block/Action;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/block/Action;"}]},{"name":"org/bukkit/event/block/BlockBreakEvent","version":51,"access":33,"superName":"org/bukkit/event/block/BlockExpEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/block/Block;Lorg/bukkit/entity/Player;)V"},{"name":"getPlayer","access":1,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"setDropItems","access":1,"descriptor":"(Z)V"},{"name":"isDropItems","access":1,"descriptor":"()Z"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"}]},{"name":"org/bukkit/event/block/BlockEvent","version":51,"access":1057,"superName":"org/bukkit/event/Event","fields":[{"name":"block","access":4,"descriptor":"Lorg/bukkit/block/Block;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/block/Block;)V"},{"name":"getBlock","access":17,"descriptor":"()Lorg/bukkit/block/Block;"}]},{"name":"org/bukkit/event/block/BlockExpEvent","version":51,"access":33,"superName":"org/bukkit/event/block/BlockEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/block/Block;I)V"},{"name":"getExpToDrop","access":1,"descriptor":"()I"},{"name":"setExpToDrop","access":1,"descriptor":"(I)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/block/BlockPlaceEvent","version":51,"access":33,"superName":"org/bukkit/event/block/BlockEvent","interfaces":["org/bukkit/event/Cancellable"],"fields":[{"name":"cancel","access":4,"descriptor":"Z"},{"name":"canBuild","access":4,"descriptor":"Z"},{"name":"placedAgainst","access":4,"descriptor":"Lorg/bukkit/block/Block;"},{"name":"replacedBlockState","access":4,"descriptor":"Lorg/bukkit/block/BlockState;"},{"name":"itemInHand","access":4,"descriptor":"Lorg/bukkit/inventory/ItemStack;"},{"name":"player","access":4,"descriptor":"Lorg/bukkit/entity/Player;"},{"name":"hand","access":4,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/block/Block;Lorg/bukkit/block/BlockState;Lorg/bukkit/block/Block;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/entity/Player;Z)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/block/Block;Lorg/bukkit/block/BlockState;Lorg/bukkit/block/Block;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/entity/Player;ZLorg/bukkit/inventory/EquipmentSlot;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getPlayer","access":1,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"getBlockPlaced","access":1,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"getBlockReplacedState","access":1,"descriptor":"()Lorg/bukkit/block/BlockState;"},{"name":"getBlockAgainst","access":1,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"getItemInHand","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getHand","access":1,"descriptor":"()Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"canBuild","access":1,"descriptor":"()Z"},{"name":"setBuild","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/entity/EntityDamageByEntityEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityDamageEvent","innerClasses":[{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageCause","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageCause","access":16409},{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageModifier","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageModifier","access":16409}],"methods":[{"name":"","access":131073,"descriptor":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;Ljava/util/Map;Ljava/util/Map;)V","signature":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;Ljava/util/Map;Ljava/util/Map;>;)V"},{"name":"getDamager","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"}]},{"name":"org/bukkit/event/entity/EntityDamageEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityEvent","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageCause","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageCause","access":16409},{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageModifier","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageModifier","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;D)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;Ljava/util/Map;Ljava/util/Map;)V","signature":"(Lorg/bukkit/entity/Entity;Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;Ljava/util/Map;Ljava/util/Map;>;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getOriginalDamage","access":1,"descriptor":"(Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;)D","exceptions":["java/lang/IllegalArgumentException"]},{"name":"setDamage","access":1,"descriptor":"(Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;D)V","exceptions":["java/lang/IllegalArgumentException","java/lang/UnsupportedOperationException"]},{"name":"getDamage","access":1,"descriptor":"(Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;)D","exceptions":["java/lang/IllegalArgumentException"]},{"name":"isApplicable","access":1,"descriptor":"(Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getDamage","access":1,"descriptor":"()D"},{"name":"getFinalDamage","access":17,"descriptor":"()D"},{"name":"setDamage","access":1,"descriptor":"(D)V"},{"name":"getCause","access":1,"descriptor":"()Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageCause","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageCause","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageCause","access":16409}],"fields":[{"name":"CONTACT","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"ENTITY_ATTACK","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"ENTITY_SWEEP_ATTACK","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"PROJECTILE","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"SUFFOCATION","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"FALL","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"FIRE","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"FIRE_TICK","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"MELTING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"LAVA","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"DROWNING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"BLOCK_EXPLOSION","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"ENTITY_EXPLOSION","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"VOID","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"LIGHTNING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"SUICIDE","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"STARVATION","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"POISON","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"MAGIC","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"WITHER","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"FALLING_BLOCK","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"THORNS","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"DRAGON_BREATH","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"CUSTOM","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"FLY_INTO_WALL","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"HOT_FLOOR","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"CRAMMING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;"}]},{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageModifier","version":51,"access":147505,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"innerClasses":[{"name":"org/bukkit/event/entity/EntityDamageEvent$DamageModifier","outerName":"org/bukkit/event/entity/EntityDamageEvent","innerName":"DamageModifier","access":16409}],"fields":[{"name":"BASE","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"HARD_HAT","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"BLOCKING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"ARMOR","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"RESISTANCE","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"MAGIC","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"ABSORPTION","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/entity/EntityDamageEvent$DamageModifier;"}]},{"name":"org/bukkit/event/entity/EntityDeathEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;Ljava/util/List;)V","signature":"(Lorg/bukkit/entity/LivingEntity;Ljava/util/List;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;Ljava/util/List;I)V","signature":"(Lorg/bukkit/entity/LivingEntity;Ljava/util/List;I)V"},{"name":"getEntity","access":1,"descriptor":"()Lorg/bukkit/entity/LivingEntity;"},{"name":"getDroppedExp","access":1,"descriptor":"()I"},{"name":"setDroppedExp","access":1,"descriptor":"(I)V"},{"name":"getDrops","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getEntity","access":4161,"descriptor":"()Lorg/bukkit/entity/Entity;"}]},{"name":"org/bukkit/event/entity/EntityEvent","version":51,"access":1057,"superName":"org/bukkit/event/Event","fields":[{"name":"entity","access":4,"descriptor":"Lorg/bukkit/entity/Entity;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;)V"},{"name":"getEntity","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"getEntityType","access":1,"descriptor":"()Lorg/bukkit/entity/EntityType;"}]},{"name":"org/bukkit/event/entity/EntityRegainHealthEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityEvent","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"org/bukkit/event/entity/EntityRegainHealthEvent$RegainReason","outerName":"org/bukkit/event/entity/EntityRegainHealthEvent","innerName":"RegainReason","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;DLorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;)V"},{"name":"getAmount","access":1,"descriptor":"()D"},{"name":"setAmount","access":1,"descriptor":"(D)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getRegainReason","access":1,"descriptor":"()Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/entity/EntityRegainHealthEvent$RegainReason","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/entity/EntityRegainHealthEvent$RegainReason","outerName":"org/bukkit/event/entity/EntityRegainHealthEvent","innerName":"RegainReason","access":16409}],"fields":[{"name":"REGEN","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"SATIATED","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"EATING","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"ENDER_CRYSTAL","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"MAGIC","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"MAGIC_REGEN","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"WITHER_SPAWN","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"WITHER","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"CUSTOM","access":16409,"descriptor":"Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;"}]},{"name":"org/bukkit/event/entity/EntityShootBowEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/entity/Projectile;F)V"},{"name":"getEntity","access":1,"descriptor":"()Lorg/bukkit/entity/LivingEntity;"},{"name":"getBow","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getProjectile","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"setProjectile","access":1,"descriptor":"(Lorg/bukkit/entity/Entity;)V"},{"name":"getForce","access":1,"descriptor":"()F"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getEntity","access":4161,"descriptor":"()Lorg/bukkit/entity/Entity;"}]},{"name":"org/bukkit/event/entity/PlayerDeathEvent","version":51,"access":33,"superName":"org/bukkit/event/entity/EntityDeathEvent","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/util/List;ILjava/lang/String;)V","signature":"(Lorg/bukkit/entity/Player;Ljava/util/List;ILjava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/util/List;IILjava/lang/String;)V","signature":"(Lorg/bukkit/entity/Player;Ljava/util/List;IILjava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/util/List;IIIILjava/lang/String;)V","signature":"(Lorg/bukkit/entity/Player;Ljava/util/List;IIIILjava/lang/String;)V"},{"name":"getEntity","access":1,"descriptor":"()Lorg/bukkit/entity/Player;"},{"name":"setDeathMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getDeathMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getNewExp","access":1,"descriptor":"()I"},{"name":"setNewExp","access":1,"descriptor":"(I)V"},{"name":"getNewLevel","access":1,"descriptor":"()I"},{"name":"setNewLevel","access":1,"descriptor":"(I)V"},{"name":"getNewTotalExp","access":1,"descriptor":"()I"},{"name":"setNewTotalExp","access":1,"descriptor":"(I)V"},{"name":"getKeepLevel","access":1,"descriptor":"()Z"},{"name":"setKeepLevel","access":1,"descriptor":"(Z)V"},{"name":"setKeepInventory","access":1,"descriptor":"(Z)V"},{"name":"getKeepInventory","access":1,"descriptor":"()Z"},{"name":"getEntity","access":4161,"descriptor":"()Lorg/bukkit/entity/LivingEntity;"},{"name":"getEntity","access":4161,"descriptor":"()Lorg/bukkit/entity/Entity;"}]},{"name":"org/bukkit/event/inventory/ClickType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LEFT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"SHIFT_LEFT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"RIGHT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"SHIFT_RIGHT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"WINDOW_BORDER_LEFT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"WINDOW_BORDER_RIGHT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"MIDDLE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"NUMBER_KEY","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"DOUBLE_CLICK","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"DROP","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"CONTROL_DROP","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"CREATIVE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"},{"name":"UNKNOWN","access":16409,"descriptor":"Lorg/bukkit/event/inventory/ClickType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"isKeyboardClick","access":1,"descriptor":"()Z"},{"name":"isCreativeAction","access":1,"descriptor":"()Z"},{"name":"isRightClick","access":1,"descriptor":"()Z"},{"name":"isLeftClick","access":1,"descriptor":"()Z"},{"name":"isShiftClick","access":1,"descriptor":"()Z"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/inventory/ClickType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/inventory/ClickType;"}]},{"name":"org/bukkit/event/inventory/InventoryAction","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"NOTHING","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PICKUP_ALL","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PICKUP_SOME","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PICKUP_HALF","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PICKUP_ONE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PLACE_ALL","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PLACE_SOME","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"PLACE_ONE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"SWAP_WITH_CURSOR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"DROP_ALL_CURSOR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"DROP_ONE_CURSOR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"DROP_ALL_SLOT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"DROP_ONE_SLOT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"MOVE_TO_OTHER_INVENTORY","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"HOTBAR_MOVE_AND_READD","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"HOTBAR_SWAP","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"CLONE_STACK","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"COLLECT_TO_CURSOR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"UNKNOWN","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryAction;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/inventory/InventoryAction;"}]},{"name":"org/bukkit/event/inventory/InventoryClickEvent","version":51,"access":33,"superName":"org/bukkit/event/inventory/InventoryInteractEvent","innerClasses":[{"name":"org/bukkit/event/inventory/InventoryType$SlotType","outerName":"org/bukkit/event/inventory/InventoryType","innerName":"SlotType","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;Lorg/bukkit/event/inventory/InventoryType$SlotType;ILorg/bukkit/event/inventory/ClickType;Lorg/bukkit/event/inventory/InventoryAction;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;Lorg/bukkit/event/inventory/InventoryType$SlotType;ILorg/bukkit/event/inventory/ClickType;Lorg/bukkit/event/inventory/InventoryAction;I)V"},{"name":"getClickedInventory","access":1,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getSlotType","access":1,"descriptor":"()Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"getCursor","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getCurrentItem","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"isRightClick","access":1,"descriptor":"()Z"},{"name":"isLeftClick","access":1,"descriptor":"()Z"},{"name":"isShiftClick","access":1,"descriptor":"()Z"},{"name":"setCursor","access":131073,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setCurrentItem","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getSlot","access":1,"descriptor":"()I"},{"name":"getRawSlot","access":1,"descriptor":"()I"},{"name":"getHotbarButton","access":1,"descriptor":"()I"},{"name":"getAction","access":1,"descriptor":"()Lorg/bukkit/event/inventory/InventoryAction;"},{"name":"getClick","access":1,"descriptor":"()Lorg/bukkit/event/inventory/ClickType;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/inventory/InventoryCloseEvent","version":51,"access":33,"superName":"org/bukkit/event/inventory/InventoryEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;)V"},{"name":"getPlayer","access":17,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/inventory/InventoryEvent","version":51,"access":33,"superName":"org/bukkit/event/Event","fields":[{"name":"transaction","access":4,"descriptor":"Lorg/bukkit/inventory/InventoryView;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;)V"},{"name":"getInventory","access":1,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getViewers","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getView","access":1,"descriptor":"()Lorg/bukkit/inventory/InventoryView;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/inventory/InventoryInteractEvent","version":51,"access":1057,"superName":"org/bukkit/event/inventory/InventoryEvent","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"org/bukkit/event/Event$Result","outerName":"org/bukkit/event/Event","innerName":"Result","access":16409}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;)V"},{"name":"getWhoClicked","access":1,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"},{"name":"setResult","access":1,"descriptor":"(Lorg/bukkit/event/Event$Result;)V"},{"name":"getResult","access":1,"descriptor":"()Lorg/bukkit/event/Event$Result;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"}]},{"name":"org/bukkit/event/inventory/InventoryOpenEvent","version":51,"access":33,"superName":"org/bukkit/event/inventory/InventoryEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/InventoryView;)V"},{"name":"getPlayer","access":17,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/inventory/InventoryType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/inventory/InventoryType$SlotType","outerName":"org/bukkit/event/inventory/InventoryType","innerName":"SlotType","access":16409}],"fields":[{"name":"CHEST","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"DISPENSER","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"DROPPER","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"FURNACE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"WORKBENCH","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"CRAFTING","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"ENCHANTING","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"BREWING","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"PLAYER","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"CREATIVE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"MERCHANT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"ENDER_CHEST","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"ANVIL","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"BEACON","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"HOPPER","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"},{"name":"SHULKER_BOX","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getDefaultSize","access":1,"descriptor":"()I"},{"name":"getDefaultTitle","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/inventory/InventoryType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/inventory/InventoryType;"}]},{"name":"org/bukkit/event/inventory/InventoryType$SlotType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/inventory/InventoryType$SlotType","outerName":"org/bukkit/event/inventory/InventoryType","innerName":"SlotType","access":16409}],"fields":[{"name":"RESULT","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"CRAFTING","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"ARMOR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"CONTAINER","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"QUICKBAR","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"OUTSIDE","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"FUEL","access":16409,"descriptor":"Lorg/bukkit/event/inventory/InventoryType$SlotType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/inventory/InventoryType$SlotType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/inventory/InventoryType$SlotType;"}]},{"name":"org/bukkit/event/player/AsyncPlayerChatEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(ZLorg/bukkit/entity/Player;Ljava/lang/String;Ljava/util/Set;)V","signature":"(ZLorg/bukkit/entity/Player;Ljava/lang/String;Ljava/util/Set;)V"},{"name":"getMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getFormat","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setFormat","access":1,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/util/IllegalFormatException","java/lang/NullPointerException"]},{"name":"getRecipients","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerAnimationEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"getAnimationType","access":1,"descriptor":"()Lorg/bukkit/event/player/PlayerAnimationType;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerAnimationType","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"ARM_SWING","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerAnimationType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/player/PlayerAnimationType;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/player/PlayerAnimationType;"}]},{"name":"org/bukkit/event/player/PlayerChangedWorldEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/World;)V"},{"name":"getFrom","access":1,"descriptor":"()Lorg/bukkit/World;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerEvent","version":51,"access":1057,"superName":"org/bukkit/event/Event","fields":[{"name":"player","access":4,"descriptor":"Lorg/bukkit/entity/Player;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;)V"},{"name":"","access":0,"descriptor":"(Lorg/bukkit/entity/Player;Z)V"},{"name":"getPlayer","access":17,"descriptor":"()Lorg/bukkit/entity/Player;"}]},{"name":"org/bukkit/event/player/PlayerFishEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"org/bukkit/event/player/PlayerFishEvent$State","outerName":"org/bukkit/event/player/PlayerFishEvent","innerName":"State","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/entity/Entity;Lorg/bukkit/entity/Fish;Lorg/bukkit/event/player/PlayerFishEvent$State;)V"},{"name":"getCaught","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"getHook","access":1,"descriptor":"()Lorg/bukkit/entity/Fish;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getExpToDrop","access":1,"descriptor":"()I"},{"name":"setExpToDrop","access":1,"descriptor":"(I)V"},{"name":"getState","access":1,"descriptor":"()Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerFishEvent$State","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/player/PlayerFishEvent$State","outerName":"org/bukkit/event/player/PlayerFishEvent","innerName":"State","access":16409}],"fields":[{"name":"FISHING","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"CAUGHT_FISH","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"CAUGHT_ENTITY","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"IN_GROUND","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"FAILED_ATTEMPT","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"BITE","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerFishEvent$State;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/player/PlayerFishEvent$State;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/player/PlayerFishEvent$State;"}]},{"name":"org/bukkit/event/player/PlayerInteractEntityEvent","version":50,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"fields":[{"name":"clickedEntity","access":4,"descriptor":"Lorg/bukkit/entity/Entity;"},{"name":"cancelled","access":0,"descriptor":"Z"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/entity/Entity;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getRightClicked","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerInteractEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"innerClasses":[{"name":"org/bukkit/event/Event$Result","outerName":"org/bukkit/event/Event","innerName":"Result","access":16409}],"fields":[{"name":"item","access":4,"descriptor":"Lorg/bukkit/inventory/ItemStack;"},{"name":"action","access":4,"descriptor":"Lorg/bukkit/event/block/Action;"},{"name":"blockClicked","access":4,"descriptor":"Lorg/bukkit/block/Block;"},{"name":"blockFace","access":4,"descriptor":"Lorg/bukkit/block/BlockFace;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/event/block/Action;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/block/Block;Lorg/bukkit/block/BlockFace;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/event/block/Action;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/block/Block;Lorg/bukkit/block/BlockFace;Lorg/bukkit/inventory/EquipmentSlot;)V"},{"name":"getAction","access":1,"descriptor":"()Lorg/bukkit/event/block/Action;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getItem","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getMaterial","access":1,"descriptor":"()Lorg/bukkit/Material;"},{"name":"hasBlock","access":1,"descriptor":"()Z"},{"name":"hasItem","access":1,"descriptor":"()Z"},{"name":"isBlockInHand","access":1,"descriptor":"()Z"},{"name":"getClickedBlock","access":1,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"getBlockFace","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"useInteractedBlock","access":1,"descriptor":"()Lorg/bukkit/event/Event$Result;"},{"name":"setUseInteractedBlock","access":1,"descriptor":"(Lorg/bukkit/event/Event$Result;)V"},{"name":"useItemInHand","access":1,"descriptor":"()Lorg/bukkit/event/Event$Result;"},{"name":"setUseItemInHand","access":1,"descriptor":"(Lorg/bukkit/event/Event$Result;)V"},{"name":"getHand","access":1,"descriptor":"()Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerItemConsumeEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItem","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItem","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerJoinEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;)V"},{"name":"getJoinMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setJoinMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerKickEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;Ljava/lang/String;)V"},{"name":"getReason","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getLeaveMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"setReason","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"setLeaveMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerLoginEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","innerClasses":[{"name":"org/bukkit/event/player/PlayerLoginEvent$Result","outerName":"org/bukkit/event/player/PlayerLoginEvent","innerName":"Result","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;Ljava/net/InetAddress;Ljava/net/InetAddress;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;Ljava/net/InetAddress;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;Ljava/net/InetAddress;Lorg/bukkit/event/player/PlayerLoginEvent$Result;Ljava/lang/String;Ljava/net/InetAddress;)V"},{"name":"getRealAddress","access":1,"descriptor":"()Ljava/net/InetAddress;"},{"name":"getResult","access":1,"descriptor":"()Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"setResult","access":1,"descriptor":"(Lorg/bukkit/event/player/PlayerLoginEvent$Result;)V"},{"name":"getKickMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setKickMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getHostname","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"allow","access":1,"descriptor":"()V"},{"name":"disallow","access":1,"descriptor":"(Lorg/bukkit/event/player/PlayerLoginEvent$Result;Ljava/lang/String;)V"},{"name":"getAddress","access":1,"descriptor":"()Ljava/net/InetAddress;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerLoginEvent$Result","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/player/PlayerLoginEvent$Result","outerName":"org/bukkit/event/player/PlayerLoginEvent","innerName":"Result","access":16409}],"fields":[{"name":"ALLOWED","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"KICK_FULL","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"KICK_BANNED","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"KICK_WHITELIST","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"KICK_OTHER","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerLoginEvent$Result;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/player/PlayerLoginEvent$Result;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/player/PlayerLoginEvent$Result;"}]},{"name":"org/bukkit/event/player/PlayerMoveEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/Location;Lorg/bukkit/Location;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getFrom","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setFrom","access":1,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"getTo","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setTo","access":1,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerQuitEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;)V"},{"name":"getQuitMessage","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setQuitMessage","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerRespawnEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/Location;Z)V"},{"name":"getRespawnLocation","access":1,"descriptor":"()Lorg/bukkit/Location;"},{"name":"setRespawnLocation","access":1,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"isBedSpawn","access":1,"descriptor":"()Z"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerTeleportEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerMoveEvent","innerClasses":[{"name":"org/bukkit/event/player/PlayerTeleportEvent$TeleportCause","outerName":"org/bukkit/event/player/PlayerTeleportEvent","innerName":"TeleportCause","access":16409}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/Location;Lorg/bukkit/Location;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/Location;Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)V"},{"name":"getCause","access":1,"descriptor":"()Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerTeleportEvent$TeleportCause","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/event/player/PlayerTeleportEvent$TeleportCause","outerName":"org/bukkit/event/player/PlayerTeleportEvent","innerName":"TeleportCause","access":16409}],"fields":[{"name":"ENDER_PEARL","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"COMMAND","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"PLUGIN","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"NETHER_PORTAL","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"END_PORTAL","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"SPECTATE","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"END_GATEWAY","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"CHORUS_FRUIT","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"UNKNOWN","access":16409,"descriptor":"Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;"}]},{"name":"org/bukkit/event/player/PlayerToggleFlightEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Z)V"},{"name":"isFlying","access":1,"descriptor":"()Z"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerToggleSneakEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Z)V"},{"name":"isSneaking","access":1,"descriptor":"()Z"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/player/PlayerVelocityEvent","version":51,"access":33,"superName":"org/bukkit/event/player/PlayerEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Player;Lorg/bukkit/util/Vector;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getVelocity","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"setVelocity","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/vehicle/VehicleEnterEvent","version":51,"access":33,"superName":"org/bukkit/event/vehicle/VehicleEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Vehicle;Lorg/bukkit/entity/Entity;)V"},{"name":"getEntered","access":1,"descriptor":"()Lorg/bukkit/entity/Entity;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/vehicle/VehicleEvent","version":51,"access":1057,"superName":"org/bukkit/event/Event","fields":[{"name":"vehicle","access":4,"descriptor":"Lorg/bukkit/entity/Vehicle;"}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Vehicle;)V"},{"name":"getVehicle","access":17,"descriptor":"()Lorg/bukkit/entity/Vehicle;"}]},{"name":"org/bukkit/event/vehicle/VehicleExitEvent","version":51,"access":33,"superName":"org/bukkit/event/vehicle/VehicleEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/Vehicle;Lorg/bukkit/entity/LivingEntity;)V"},{"name":"getExited","access":1,"descriptor":"()Lorg/bukkit/entity/LivingEntity;"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/event/world/WorldEvent","version":51,"access":1057,"superName":"org/bukkit/event/Event","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/World;)V"},{"name":"getWorld","access":1,"descriptor":"()Lorg/bukkit/World;"}]},{"name":"org/bukkit/event/world/WorldUnloadEvent","version":51,"access":33,"superName":"org/bukkit/event/world/WorldEvent","interfaces":["org/bukkit/event/Cancellable"],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/World;)V"},{"name":"isCancelled","access":1,"descriptor":"()Z"},{"name":"setCancelled","access":1,"descriptor":"(Z)V"},{"name":"getHandlers","access":1,"descriptor":"()Lorg/bukkit/event/HandlerList;"},{"name":"getHandlerList","access":9,"descriptor":"()Lorg/bukkit/event/HandlerList;"}]},{"name":"org/bukkit/generator/BlockPopulator","version":51,"access":1057,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"populate","access":1025,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;Lorg/bukkit/Chunk;)V"}]},{"name":"org/bukkit/generator/ChunkGenerator","version":51,"access":1057,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/World$Environment","outerName":"org/bukkit/World","innerName":"Environment","access":16409},{"name":"org/bukkit/generator/ChunkGenerator$BiomeGrid","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"BiomeGrid","access":1545},{"name":"org/bukkit/generator/ChunkGenerator$ChunkData","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"ChunkData","access":1545}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"generate","access":131073,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;II)[B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"generateExtBlockSections","access":131073,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;IILorg/bukkit/generator/ChunkGenerator$BiomeGrid;)[[S","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"generateBlockSections","access":131073,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;IILorg/bukkit/generator/ChunkGenerator$BiomeGrid;)[[B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"generateChunkData","access":1,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;IILorg/bukkit/generator/ChunkGenerator$BiomeGrid;)Lorg/bukkit/generator/ChunkGenerator$ChunkData;"},{"name":"createChunkData","access":20,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/generator/ChunkGenerator$ChunkData;"},{"name":"canSpawn","access":1,"descriptor":"(Lorg/bukkit/World;II)Z"},{"name":"getDefaultPopulators","access":1,"descriptor":"(Lorg/bukkit/World;)Ljava/util/List;","signature":"(Lorg/bukkit/World;)Ljava/util/List;"},{"name":"getFixedSpawnLocation","access":1,"descriptor":"(Lorg/bukkit/World;Ljava/util/Random;)Lorg/bukkit/Location;"},{"name":"$SWITCH_TABLE$org$bukkit$World$Environment","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/generator/ChunkGenerator$BiomeGrid","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/generator/ChunkGenerator$BiomeGrid","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"BiomeGrid","access":1545}],"methods":[{"name":"getBiome","access":1025,"descriptor":"(II)Lorg/bukkit/block/Biome;"},{"name":"setBiome","access":1025,"descriptor":"(IILorg/bukkit/block/Biome;)V"}]},{"name":"org/bukkit/generator/ChunkGenerator$ChunkData","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/generator/ChunkGenerator$ChunkData","outerName":"org/bukkit/generator/ChunkGenerator","innerName":"ChunkData","access":1545}],"methods":[{"name":"getMaxHeight","access":1025,"descriptor":"()I"},{"name":"setBlock","access":1025,"descriptor":"(IIILorg/bukkit/Material;)V"},{"name":"setBlock","access":1025,"descriptor":"(IIILorg/bukkit/material/MaterialData;)V"},{"name":"setRegion","access":1025,"descriptor":"(IIIIIILorg/bukkit/Material;)V"},{"name":"setRegion","access":1025,"descriptor":"(IIIIIILorg/bukkit/material/MaterialData;)V"},{"name":"getType","access":1025,"descriptor":"(III)Lorg/bukkit/Material;"},{"name":"getTypeAndData","access":1025,"descriptor":"(III)Lorg/bukkit/material/MaterialData;"},{"name":"setRegion","access":132097,"descriptor":"(IIIIIII)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setRegion","access":132097,"descriptor":"(IIIIIIII)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setBlock","access":132097,"descriptor":"(IIII)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setBlock","access":132097,"descriptor":"(IIIIB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getTypeId","access":132097,"descriptor":"(III)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getData","access":132097,"descriptor":"(III)B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/help/HelpMap","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getHelpTopic","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/help/HelpTopic;"},{"name":"getHelpTopics","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;"},{"name":"addTopic","access":1025,"descriptor":"(Lorg/bukkit/help/HelpTopic;)V"},{"name":"clear","access":1025,"descriptor":"()V"},{"name":"registerHelpTopicFactory","access":1025,"descriptor":"(Ljava/lang/Class;Lorg/bukkit/help/HelpTopicFactory;)V","signature":"(Ljava/lang/Class<*>;Lorg/bukkit/help/HelpTopicFactory<*>;)V"},{"name":"getIgnoredPlugins","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"}]},{"name":"org/bukkit/help/HelpTopic","version":51,"access":1057,"superName":"java/lang/Object","fields":[{"name":"name","access":4,"descriptor":"Ljava/lang/String;"},{"name":"shortText","access":4,"descriptor":"Ljava/lang/String;"},{"name":"fullText","access":4,"descriptor":"Ljava/lang/String;"},{"name":"amendedPermission","access":4,"descriptor":"Ljava/lang/String;"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"canSee","access":1025,"descriptor":"(Lorg/bukkit/command/CommandSender;)Z"},{"name":"amendCanSee","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getShortText","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getFullText","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;)Ljava/lang/String;"},{"name":"amendTopic","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V"},{"name":"applyAmendment","access":4,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"}]},{"name":"org/bukkit/help/HelpTopicFactory","version":51,"access":1537,"signature":"Ljava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"createTopic","access":1025,"descriptor":"(Lorg/bukkit/command/Command;)Lorg/bukkit/help/HelpTopic;","signature":"(TTCommand;)Lorg/bukkit/help/HelpTopic;"}]},{"name":"org/bukkit/inventory/DoubleChestInventory","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/Inventory"],"methods":[{"name":"getLeftSide","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getRightSide","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getHolder","access":1025,"descriptor":"()Lorg/bukkit/block/DoubleChest;"}]},{"name":"org/bukkit/inventory/EntityEquipment","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getItemInMainHand","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemInMainHand","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItemInOffHand","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemInOffHand","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItemInHand","access":132097,"descriptor":"()Lorg/bukkit/inventory/ItemStack;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setItemInHand","access":132097,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHelmet","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setHelmet","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getChestplate","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setChestplate","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getLeggings","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setLeggings","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getBoots","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setBoots","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getArmorContents","access":1025,"descriptor":"()[Lorg/bukkit/inventory/ItemStack;"},{"name":"setArmorContents","access":1025,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)V"},{"name":"clear","access":1025,"descriptor":"()V"},{"name":"getItemInHandDropChance","access":132097,"descriptor":"()F","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setItemInHandDropChance","access":132097,"descriptor":"(F)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getItemInMainHandDropChance","access":1025,"descriptor":"()F"},{"name":"setItemInMainHandDropChance","access":1025,"descriptor":"(F)V"},{"name":"getItemInOffHandDropChance","access":1025,"descriptor":"()F"},{"name":"setItemInOffHandDropChance","access":1025,"descriptor":"(F)V"},{"name":"getHelmetDropChance","access":1025,"descriptor":"()F"},{"name":"setHelmetDropChance","access":1025,"descriptor":"(F)V"},{"name":"getChestplateDropChance","access":1025,"descriptor":"()F"},{"name":"setChestplateDropChance","access":1025,"descriptor":"(F)V"},{"name":"getLeggingsDropChance","access":1025,"descriptor":"()F"},{"name":"setLeggingsDropChance","access":1025,"descriptor":"(F)V"},{"name":"getBootsDropChance","access":1025,"descriptor":"()F"},{"name":"setBootsDropChance","access":1025,"descriptor":"(F)V"},{"name":"getHolder","access":1025,"descriptor":"()Lorg/bukkit/entity/Entity;"}]},{"name":"org/bukkit/inventory/EquipmentSlot","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"HAND","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"OFF_HAND","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"FEET","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"LEGS","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"CHEST","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"HEAD","access":16409,"descriptor":"Lorg/bukkit/inventory/EquipmentSlot;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/inventory/EquipmentSlot;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/EquipmentSlot;"}]},{"name":"org/bukkit/inventory/Inventory","version":51,"access":1537,"signature":"Ljava/lang/Object;Ljava/lang/Iterable;","superName":"java/lang/Object","interfaces":["java/lang/Iterable"],"methods":[{"name":"getSize","access":1025,"descriptor":"()I"},{"name":"getMaxStackSize","access":1025,"descriptor":"()I"},{"name":"setMaxStackSize","access":1025,"descriptor":"(I)V"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getItem","access":1025,"descriptor":"(I)Lorg/bukkit/inventory/ItemStack;"},{"name":"setItem","access":1025,"descriptor":"(ILorg/bukkit/inventory/ItemStack;)V"},{"name":"addItem","access":1153,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;","signature":"([Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"removeItem","access":1153,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;","signature":"([Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getContents","access":1025,"descriptor":"()[Lorg/bukkit/inventory/ItemStack;"},{"name":"setContents","access":1025,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getStorageContents","access":1025,"descriptor":"()[Lorg/bukkit/inventory/ItemStack;"},{"name":"setStorageContents","access":1025,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"contains","access":132097,"descriptor":"(I)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"contains","access":1025,"descriptor":"(Lorg/bukkit/Material;)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"contains","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Z"},{"name":"contains","access":132097,"descriptor":"(II)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"contains","access":1025,"descriptor":"(Lorg/bukkit/Material;I)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"contains","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;I)Z"},{"name":"containsAtLeast","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;I)Z"},{"name":"all","access":132097,"descriptor":"(I)Ljava/util/HashMap;","signature":"(I)Ljava/util/HashMap;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"all","access":1025,"descriptor":"(Lorg/bukkit/Material;)Ljava/util/HashMap;","signature":"(Lorg/bukkit/Material;)Ljava/util/HashMap;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"all","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;","signature":"(Lorg/bukkit/inventory/ItemStack;)Ljava/util/HashMap;"},{"name":"first","access":132097,"descriptor":"(I)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"first","access":1025,"descriptor":"(Lorg/bukkit/Material;)I","exceptions":["java/lang/IllegalArgumentException"]},{"name":"first","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)I"},{"name":"firstEmpty","access":1025,"descriptor":"()I"},{"name":"remove","access":132097,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"remove","access":1025,"descriptor":"(Lorg/bukkit/Material;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"remove","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"clear","access":1025,"descriptor":"(I)V"},{"name":"clear","access":1025,"descriptor":"()V"},{"name":"getViewers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getTitle","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/event/inventory/InventoryType;"},{"name":"getHolder","access":1025,"descriptor":"()Lorg/bukkit/inventory/InventoryHolder;"},{"name":"iterator","access":1025,"descriptor":"()Ljava/util/ListIterator;","signature":"()Ljava/util/ListIterator;"},{"name":"iterator","access":1025,"descriptor":"(I)Ljava/util/ListIterator;","signature":"(I)Ljava/util/ListIterator;"},{"name":"getLocation","access":1025,"descriptor":"()Lorg/bukkit/Location;"}]},{"name":"org/bukkit/inventory/InventoryHolder","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"}]},{"name":"org/bukkit/inventory/InventoryView","version":51,"access":1057,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/inventory/InventoryView$Property","outerName":"org/bukkit/inventory/InventoryView","innerName":"Property","access":16409}],"fields":[{"name":"OUTSIDE","access":25,"descriptor":"I","constant":{"type":"Integer","value":"-999"}}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"getTopInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getBottomInventory","access":1025,"descriptor":"()Lorg/bukkit/inventory/Inventory;"},{"name":"getPlayer","access":1025,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"},{"name":"getType","access":1025,"descriptor":"()Lorg/bukkit/event/inventory/InventoryType;"},{"name":"setItem","access":1,"descriptor":"(ILorg/bukkit/inventory/ItemStack;)V"},{"name":"getItem","access":1,"descriptor":"(I)Lorg/bukkit/inventory/ItemStack;"},{"name":"setCursor","access":17,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getCursor","access":17,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"convertSlot","access":17,"descriptor":"(I)I"},{"name":"close","access":17,"descriptor":"()V"},{"name":"countSlots","access":17,"descriptor":"()I"},{"name":"setProperty","access":17,"descriptor":"(Lorg/bukkit/inventory/InventoryView$Property;I)Z"},{"name":"getTitle","access":17,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/inventory/InventoryView$Property","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/inventory/InventoryView$Property","outerName":"org/bukkit/inventory/InventoryView","innerName":"Property","access":16409}],"fields":[{"name":"BREW_TIME","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"BURN_TIME","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"TICKS_FOR_CURRENT_FUEL","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"COOK_TIME","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"TICKS_FOR_CURRENT_SMELTING","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_BUTTON1","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_BUTTON2","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_BUTTON3","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_XP_SEED","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_ID1","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_ID2","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_ID3","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_LEVEL1","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_LEVEL2","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"ENCHANT_LEVEL3","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"LEVELS","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"PRIMARY_EFFECT","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"SECONDARY_EFFECT","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"REPAIR_COST","access":16409,"descriptor":"Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"id","access":0,"descriptor":"I"},{"name":"style","access":0,"descriptor":"Lorg/bukkit/event/inventory/InventoryType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/event/inventory/InventoryType;"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/inventory/InventoryView$Property;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/InventoryView$Property;"}]},{"name":"org/bukkit/inventory/ItemFactory","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getItemMeta","access":1025,"descriptor":"(Lorg/bukkit/Material;)Lorg/bukkit/inventory/meta/ItemMeta;"},{"name":"isApplicable","access":1025,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;Lorg/bukkit/inventory/ItemStack;)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"isApplicable","access":1025,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;Lorg/bukkit/Material;)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"equals","access":1025,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;Lorg/bukkit/inventory/meta/ItemMeta;)Z","exceptions":["java/lang/IllegalArgumentException"]},{"name":"asMetaFor","access":1025,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;Lorg/bukkit/inventory/ItemStack;)Lorg/bukkit/inventory/meta/ItemMeta;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"asMetaFor","access":1025,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;Lorg/bukkit/Material;)Lorg/bukkit/inventory/meta/ItemMeta;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getDefaultLeatherColor","access":1025,"descriptor":"()Lorg/bukkit/Color;"}]},{"name":"org/bukkit/inventory/ItemFlag","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"HIDE_ENCHANTS","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"},{"name":"HIDE_ATTRIBUTES","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"},{"name":"HIDE_UNBREAKABLE","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"},{"name":"HIDE_DESTROYS","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"},{"name":"HIDE_PLACED_ON","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"},{"name":"HIDE_POTION_EFFECTS","access":16409,"descriptor":"Lorg/bukkit/inventory/ItemFlag;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/inventory/ItemFlag;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/ItemFlag;"}]},{"name":"org/bukkit/inventory/ItemStack","version":51,"access":33,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable","org/bukkit/configuration/serialization/ConfigurationSerializable"],"methods":[{"name":"","access":4,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"","access":131073,"descriptor":"(II)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;I)V"},{"name":"","access":131073,"descriptor":"(IIS)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;IS)V"},{"name":"","access":131073,"descriptor":"(IISLjava/lang/Byte;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Material;ISLjava/lang/Byte;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/Material;"},{"name":"setType","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"getTypeId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setTypeId","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getAmount","access":1,"descriptor":"()I"},{"name":"setAmount","access":1,"descriptor":"(I)V"},{"name":"getData","access":1,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"setData","access":1,"descriptor":"(Lorg/bukkit/material/MaterialData;)V"},{"name":"setDurability","access":1,"descriptor":"(S)V"},{"name":"getDurability","access":1,"descriptor":"()S"},{"name":"getMaxStackSize","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"isSimilar","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)Z"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"containsEnchantment","access":1,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)Z"},{"name":"getEnchantmentLevel","access":1,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)I"},{"name":"getEnchantments","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"addEnchantments","access":1,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"addEnchantment","access":1,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;I)V"},{"name":"addUnsafeEnchantments","access":1,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"addUnsafeEnchantment","access":1,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;I)V"},{"name":"removeEnchantment","access":1,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)I"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/inventory/ItemStack;","signature":"(Ljava/util/Map;)Lorg/bukkit/inventory/ItemStack;"},{"name":"getItemMeta","access":1,"descriptor":"()Lorg/bukkit/inventory/meta/ItemMeta;"},{"name":"hasItemMeta","access":1,"descriptor":"()Z"},{"name":"setItemMeta","access":1,"descriptor":"(Lorg/bukkit/inventory/meta/ItemMeta;)Z"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]}]},{"name":"org/bukkit/inventory/MainHand","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"LEFT","access":16409,"descriptor":"Lorg/bukkit/inventory/MainHand;"},{"name":"RIGHT","access":16409,"descriptor":"Lorg/bukkit/inventory/MainHand;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/inventory/MainHand;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/inventory/MainHand;"}]},{"name":"org/bukkit/inventory/Merchant","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getRecipes","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"setRecipes","access":1025,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"getRecipe","access":1025,"descriptor":"(I)Lorg/bukkit/inventory/MerchantRecipe;","exceptions":["java/lang/IndexOutOfBoundsException"]},{"name":"setRecipe","access":1025,"descriptor":"(ILorg/bukkit/inventory/MerchantRecipe;)V","exceptions":["java/lang/IndexOutOfBoundsException"]},{"name":"getRecipeCount","access":1025,"descriptor":"()I"},{"name":"isTrading","access":1025,"descriptor":"()Z"},{"name":"getTrader","access":1025,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"}]},{"name":"org/bukkit/inventory/MerchantRecipe","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/Recipe"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;I)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;IIZ)V"},{"name":"getResult","access":1,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"addIngredient","access":1,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"removeIngredient","access":1,"descriptor":"(I)V"},{"name":"setIngredients","access":1,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"getIngredients","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getUses","access":1,"descriptor":"()I"},{"name":"setUses","access":1,"descriptor":"(I)V"},{"name":"getMaxUses","access":1,"descriptor":"()I"},{"name":"setMaxUses","access":1,"descriptor":"(I)V"},{"name":"hasExperienceReward","access":1,"descriptor":"()Z"},{"name":"setExperienceReward","access":1,"descriptor":"(Z)V"}]},{"name":"org/bukkit/inventory/PlayerInventory","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/Inventory"],"methods":[{"name":"getArmorContents","access":1025,"descriptor":"()[Lorg/bukkit/inventory/ItemStack;"},{"name":"getExtraContents","access":1025,"descriptor":"()[Lorg/bukkit/inventory/ItemStack;"},{"name":"getHelmet","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getChestplate","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getLeggings","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"getBoots","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItem","access":1025,"descriptor":"(ILorg/bukkit/inventory/ItemStack;)V"},{"name":"setArmorContents","access":1025,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)V"},{"name":"setExtraContents","access":1025,"descriptor":"([Lorg/bukkit/inventory/ItemStack;)V"},{"name":"setHelmet","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"setChestplate","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"setLeggings","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"setBoots","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItemInMainHand","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemInMainHand","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItemInOffHand","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"},{"name":"setItemInOffHand","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V"},{"name":"getItemInHand","access":132097,"descriptor":"()Lorg/bukkit/inventory/ItemStack;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setItemInHand","access":132097,"descriptor":"(Lorg/bukkit/inventory/ItemStack;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHeldItemSlot","access":1025,"descriptor":"()I"},{"name":"setHeldItemSlot","access":1025,"descriptor":"(I)V"},{"name":"clear","access":132097,"descriptor":"(II)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getHolder","access":1025,"descriptor":"()Lorg/bukkit/entity/HumanEntity;"}]},{"name":"org/bukkit/inventory/Recipe","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getResult","access":1025,"descriptor":"()Lorg/bukkit/inventory/ItemStack;"}]},{"name":"org/bukkit/inventory/meta/ItemMeta","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable","org/bukkit/configuration/serialization/ConfigurationSerializable"],"innerClasses":[{"name":"org/bukkit/inventory/meta/ItemMeta$Spigot","outerName":"org/bukkit/inventory/meta/ItemMeta","innerName":"Spigot","access":9}],"methods":[{"name":"hasDisplayName","access":1025,"descriptor":"()Z"},{"name":"getDisplayName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setDisplayName","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"hasLocalizedName","access":1025,"descriptor":"()Z"},{"name":"getLocalizedName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"setLocalizedName","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"hasLore","access":1025,"descriptor":"()Z"},{"name":"getLore","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"setLore","access":1025,"descriptor":"(Ljava/util/List;)V","signature":"(Ljava/util/List;)V"},{"name":"hasEnchants","access":1025,"descriptor":"()Z"},{"name":"hasEnchant","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)Z"},{"name":"getEnchantLevel","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)I"},{"name":"getEnchants","access":1025,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"addEnchant","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;IZ)Z"},{"name":"removeEnchant","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)Z"},{"name":"hasConflictingEnchant","access":1025,"descriptor":"(Lorg/bukkit/enchantments/Enchantment;)Z"},{"name":"addItemFlags","access":1153,"descriptor":"([Lorg/bukkit/inventory/ItemFlag;)V"},{"name":"removeItemFlags","access":1153,"descriptor":"([Lorg/bukkit/inventory/ItemFlag;)V"},{"name":"getItemFlags","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"hasItemFlag","access":1025,"descriptor":"(Lorg/bukkit/inventory/ItemFlag;)Z"},{"name":"isUnbreakable","access":1025,"descriptor":"()Z"},{"name":"setUnbreakable","access":1025,"descriptor":"(Z)V"},{"name":"clone","access":1025,"descriptor":"()Lorg/bukkit/inventory/meta/ItemMeta;"},{"name":"spigot","access":1025,"descriptor":"()Lorg/bukkit/inventory/meta/ItemMeta$Spigot;"}]},{"name":"org/bukkit/inventory/meta/ItemMeta$Spigot","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/inventory/meta/ItemMeta$Spigot","outerName":"org/bukkit/inventory/meta/ItemMeta","innerName":"Spigot","access":9}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"setUnbreakable","access":131073,"descriptor":"(Z)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isUnbreakable","access":131073,"descriptor":"()Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/inventory/meta/LeatherArmorMeta","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/meta/ItemMeta"],"methods":[{"name":"getColor","access":1025,"descriptor":"()Lorg/bukkit/Color;"},{"name":"setColor","access":1025,"descriptor":"(Lorg/bukkit/Color;)V"},{"name":"clone","access":1025,"descriptor":"()Lorg/bukkit/inventory/meta/LeatherArmorMeta;"}]},{"name":"org/bukkit/inventory/meta/SkullMeta","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/inventory/meta/ItemMeta"],"methods":[{"name":"getOwner","access":132097,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hasOwner","access":1025,"descriptor":"()Z"},{"name":"setOwner","access":132097,"descriptor":"(Ljava/lang/String;)Z","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getOwningPlayer","access":1025,"descriptor":"()Lorg/bukkit/OfflinePlayer;"},{"name":"setOwningPlayer","access":1025,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Z"},{"name":"clone","access":1025,"descriptor":"()Lorg/bukkit/inventory/meta/SkullMeta;"}]},{"name":"org/bukkit/map/MapCanvas","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getMapView","access":1025,"descriptor":"()Lorg/bukkit/map/MapView;"},{"name":"getCursors","access":1025,"descriptor":"()Lorg/bukkit/map/MapCursorCollection;"},{"name":"setCursors","access":1025,"descriptor":"(Lorg/bukkit/map/MapCursorCollection;)V"},{"name":"setPixel","access":1025,"descriptor":"(IIB)V"},{"name":"getPixel","access":1025,"descriptor":"(II)B"},{"name":"getBasePixel","access":1025,"descriptor":"(II)B"},{"name":"drawImage","access":1025,"descriptor":"(IILjava/awt/Image;)V"},{"name":"drawText","access":1025,"descriptor":"(IILorg/bukkit/map/MapFont;Ljava/lang/String;)V"}]},{"name":"org/bukkit/map/MapCursor","version":51,"access":49,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/map/MapCursor$Type","outerName":"org/bukkit/map/MapCursor","innerName":"Type","access":16409}],"methods":[{"name":"","access":131073,"descriptor":"(BBBBZ)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(BBBLorg/bukkit/map/MapCursor$Type;Z)V"},{"name":"getX","access":1,"descriptor":"()B"},{"name":"getY","access":1,"descriptor":"()B"},{"name":"getDirection","access":1,"descriptor":"()B"},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/map/MapCursor$Type;"},{"name":"getRawType","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isVisible","access":1,"descriptor":"()Z"},{"name":"setX","access":1,"descriptor":"(B)V"},{"name":"setY","access":1,"descriptor":"(B)V"},{"name":"setDirection","access":1,"descriptor":"(B)V"},{"name":"setType","access":1,"descriptor":"(Lorg/bukkit/map/MapCursor$Type;)V"},{"name":"setRawType","access":131073,"descriptor":"(B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setVisible","access":1,"descriptor":"(Z)V"}]},{"name":"org/bukkit/map/MapCursor$Type","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/map/MapCursor$Type","outerName":"org/bukkit/map/MapCursor","innerName":"Type","access":16409}],"fields":[{"name":"WHITE_POINTER","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"GREEN_POINTER","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"RED_POINTER","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"BLUE_POINTER","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"WHITE_CROSS","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"RED_MARKER","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"WHITE_CIRCLE","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"SMALL_WHITE_CIRCLE","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"MANSION","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"},{"name":"TEMPLE","access":16409,"descriptor":"Lorg/bukkit/map/MapCursor$Type;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getValue","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"byValue","access":131081,"descriptor":"(B)Lorg/bukkit/map/MapCursor$Type;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/map/MapCursor$Type;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/map/MapCursor$Type;"},{"name":"access$2","access":4104,"descriptor":"(Lorg/bukkit/map/MapCursor$Type;)B"}]},{"name":"org/bukkit/map/MapCursorCollection","version":51,"access":49,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"size","access":1,"descriptor":"()I"},{"name":"getCursor","access":1,"descriptor":"(I)Lorg/bukkit/map/MapCursor;"},{"name":"removeCursor","access":1,"descriptor":"(Lorg/bukkit/map/MapCursor;)Z"},{"name":"addCursor","access":1,"descriptor":"(Lorg/bukkit/map/MapCursor;)Lorg/bukkit/map/MapCursor;"},{"name":"addCursor","access":1,"descriptor":"(IIB)Lorg/bukkit/map/MapCursor;"},{"name":"addCursor","access":131073,"descriptor":"(IIBB)Lorg/bukkit/map/MapCursor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"addCursor","access":131073,"descriptor":"(IIBBZ)Lorg/bukkit/map/MapCursor;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/map/MapFont","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/map/MapFont$CharacterSprite","outerName":"org/bukkit/map/MapFont","innerName":"CharacterSprite","access":9}],"fields":[{"name":"malleable","access":4,"descriptor":"Z"}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"setChar","access":1,"descriptor":"(CLorg/bukkit/map/MapFont$CharacterSprite;)V"},{"name":"getChar","access":1,"descriptor":"(C)Lorg/bukkit/map/MapFont$CharacterSprite;"},{"name":"getWidth","access":1,"descriptor":"(Ljava/lang/String;)I"},{"name":"getHeight","access":1,"descriptor":"()I"},{"name":"isValid","access":1,"descriptor":"(Ljava/lang/String;)Z"}]},{"name":"org/bukkit/map/MapFont$CharacterSprite","version":51,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/map/MapFont$CharacterSprite","outerName":"org/bukkit/map/MapFont","innerName":"CharacterSprite","access":9}],"methods":[{"name":"","access":1,"descriptor":"(II[Z)V"},{"name":"get","access":1,"descriptor":"(II)Z"},{"name":"getWidth","access":1,"descriptor":"()I"},{"name":"getHeight","access":1,"descriptor":"()I"}]},{"name":"org/bukkit/map/MapRenderer","version":51,"access":1057,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Z)V"},{"name":"isContextual","access":17,"descriptor":"()Z"},{"name":"initialize","access":1,"descriptor":"(Lorg/bukkit/map/MapView;)V"},{"name":"render","access":1025,"descriptor":"(Lorg/bukkit/map/MapView;Lorg/bukkit/map/MapCanvas;Lorg/bukkit/entity/Player;)V"}]},{"name":"org/bukkit/map/MapView","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/map/MapView$Scale","outerName":"org/bukkit/map/MapView","innerName":"Scale","access":16409}],"methods":[{"name":"getId","access":132097,"descriptor":"()S","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isVirtual","access":1025,"descriptor":"()Z"},{"name":"getScale","access":1025,"descriptor":"()Lorg/bukkit/map/MapView$Scale;"},{"name":"setScale","access":1025,"descriptor":"(Lorg/bukkit/map/MapView$Scale;)V"},{"name":"getCenterX","access":1025,"descriptor":"()I"},{"name":"getCenterZ","access":1025,"descriptor":"()I"},{"name":"setCenterX","access":1025,"descriptor":"(I)V"},{"name":"setCenterZ","access":1025,"descriptor":"(I)V"},{"name":"getWorld","access":1025,"descriptor":"()Lorg/bukkit/World;"},{"name":"setWorld","access":1025,"descriptor":"(Lorg/bukkit/World;)V"},{"name":"getRenderers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"addRenderer","access":1025,"descriptor":"(Lorg/bukkit/map/MapRenderer;)V"},{"name":"removeRenderer","access":1025,"descriptor":"(Lorg/bukkit/map/MapRenderer;)Z"},{"name":"isUnlimitedTracking","access":1025,"descriptor":"()Z"},{"name":"setUnlimitedTracking","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/map/MapView$Scale","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/map/MapView$Scale","outerName":"org/bukkit/map/MapView","innerName":"Scale","access":16409}],"fields":[{"name":"CLOSEST","access":16409,"descriptor":"Lorg/bukkit/map/MapView$Scale;"},{"name":"CLOSE","access":16409,"descriptor":"Lorg/bukkit/map/MapView$Scale;"},{"name":"NORMAL","access":16409,"descriptor":"Lorg/bukkit/map/MapView$Scale;"},{"name":"FAR","access":16409,"descriptor":"Lorg/bukkit/map/MapView$Scale;"},{"name":"FARTHEST","access":16409,"descriptor":"Lorg/bukkit/map/MapView$Scale;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"valueOf","access":131081,"descriptor":"(B)Lorg/bukkit/map/MapView$Scale;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getValue","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/map/MapView$Scale;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/map/MapView$Scale;"}]},{"name":"org/bukkit/material/Attachable","version":50,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/material/Directional"],"methods":[{"name":"getAttachedFace","access":1025,"descriptor":"()Lorg/bukkit/block/BlockFace;"}]},{"name":"org/bukkit/material/Directional","version":50,"access":1537,"superName":"java/lang/Object","methods":[{"name":"setFacingDirection","access":1025,"descriptor":"(Lorg/bukkit/block/BlockFace;)V"},{"name":"getFacing","access":1025,"descriptor":"()Lorg/bukkit/block/BlockFace;"}]},{"name":"org/bukkit/material/Door","version":50,"access":33,"superName":"org/bukkit/material/MaterialData","interfaces":["org/bukkit/material/Directional","org/bukkit/material/Openable"],"methods":[{"name":"","access":131073,"descriptor":"()V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;Lorg/bukkit/block/BlockFace;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;Lorg/bukkit/block/BlockFace;Z)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;Z)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/TreeSpecies;Lorg/bukkit/block/BlockFace;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/TreeSpecies;Lorg/bukkit/block/BlockFace;Z)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/TreeSpecies;Z)V"},{"name":"","access":131073,"descriptor":"(IB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Material;B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getWoodDoorOfSpecies","access":9,"descriptor":"(Lorg/bukkit/TreeSpecies;)Lorg/bukkit/Material;"},{"name":"isOpen","access":1,"descriptor":"()Z"},{"name":"setOpen","access":1,"descriptor":"(Z)V"},{"name":"isTopHalf","access":1,"descriptor":"()Z"},{"name":"setTopHalf","access":1,"descriptor":"(Z)V"},{"name":"getHingeCorner","access":131073,"descriptor":"()Lorg/bukkit/block/BlockFace;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setFacingDirection","access":1,"descriptor":"(Lorg/bukkit/block/BlockFace;)V"},{"name":"getFacing","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"getHinge","access":1,"descriptor":"()Z"},{"name":"setHinge","access":1,"descriptor":"(Z)V"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/material/Door;"},{"name":"clone","access":4161,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"$SWITCH_TABLE$org$bukkit$TreeSpecies","access":4104,"descriptor":"()[I"},{"name":"$SWITCH_TABLE$org$bukkit$block$BlockFace","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/material/Gate","version":50,"access":33,"superName":"org/bukkit/material/MaterialData","interfaces":["org/bukkit/material/Directional","org/bukkit/material/Openable"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(IB)V"},{"name":"","access":1,"descriptor":"(B)V"},{"name":"setFacingDirection","access":1,"descriptor":"(Lorg/bukkit/block/BlockFace;)V"},{"name":"getFacing","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"isOpen","access":1,"descriptor":"()Z"},{"name":"setOpen","access":1,"descriptor":"(Z)V"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/material/Gate;"},{"name":"clone","access":4161,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"$SWITCH_TABLE$org$bukkit$block$BlockFace","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/material/MaterialData","version":51,"access":33,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable"],"methods":[{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"","access":131073,"descriptor":"(IB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Material;B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getData","access":131073,"descriptor":"()B","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setData","access":131073,"descriptor":"(B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getItemType","access":1,"descriptor":"()Lorg/bukkit/Material;"},{"name":"getItemTypeId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"toItemStack","access":131073,"descriptor":"()Lorg/bukkit/inventory/ItemStack;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"toItemStack","access":1,"descriptor":"(I)Lorg/bukkit/inventory/ItemStack;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/material/MaterialData;"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]}]},{"name":"org/bukkit/material/Openable","version":50,"access":1537,"superName":"java/lang/Object","methods":[{"name":"isOpen","access":1025,"descriptor":"()Z"},{"name":"setOpen","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/material/SimpleAttachableMaterialData","version":50,"access":1057,"superName":"org/bukkit/material/MaterialData","interfaces":["org/bukkit/material/Attachable"],"methods":[{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(ILorg/bukkit/block/BlockFace;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;Lorg/bukkit/block/BlockFace;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"","access":131073,"descriptor":"(IB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Material;B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getFacing","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/material/SimpleAttachableMaterialData;"},{"name":"clone","access":4161,"descriptor":"()Lorg/bukkit/material/MaterialData;"}]},{"name":"org/bukkit/material/TrapDoor","version":50,"access":33,"superName":"org/bukkit/material/SimpleAttachableMaterialData","interfaces":["org/bukkit/material/Openable"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(I)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Material;)V"},{"name":"","access":131073,"descriptor":"(IB)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Material;B)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"isOpen","access":1,"descriptor":"()Z"},{"name":"setOpen","access":1,"descriptor":"(Z)V"},{"name":"isInverted","access":1,"descriptor":"()Z"},{"name":"setInverted","access":1,"descriptor":"(Z)V"},{"name":"getAttachedFace","access":1,"descriptor":"()Lorg/bukkit/block/BlockFace;"},{"name":"setFacingDirection","access":1,"descriptor":"(Lorg/bukkit/block/BlockFace;)V"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/material/TrapDoor;"},{"name":"clone","access":4161,"descriptor":"()Lorg/bukkit/material/SimpleAttachableMaterialData;"},{"name":"$SWITCH_TABLE$org$bukkit$block$BlockFace","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/metadata/MetadataValue","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"value","access":1025,"descriptor":"()Ljava/lang/Object;"},{"name":"asInt","access":1025,"descriptor":"()I"},{"name":"asFloat","access":1025,"descriptor":"()F"},{"name":"asDouble","access":1025,"descriptor":"()D"},{"name":"asLong","access":1025,"descriptor":"()J"},{"name":"asShort","access":1025,"descriptor":"()S"},{"name":"asByte","access":1025,"descriptor":"()B"},{"name":"asBoolean","access":1025,"descriptor":"()Z"},{"name":"asString","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getOwningPlugin","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"invalidate","access":1025,"descriptor":"()V"}]},{"name":"org/bukkit/metadata/Metadatable","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"setMetadata","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/metadata/MetadataValue;)V"},{"name":"getMetadata","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/List;","signature":"(Ljava/lang/String;)Ljava/util/List;"},{"name":"hasMetadata","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"removeMetadata","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/plugin/Plugin;)V"}]},{"name":"org/bukkit/permissions/Permissible","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/permissions/ServerOperator"],"methods":[{"name":"isPermissionSet","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"isPermissionSet","access":1025,"descriptor":"(Lorg/bukkit/permissions/Permission;)Z"},{"name":"hasPermission","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"hasPermission","access":1025,"descriptor":"(Lorg/bukkit/permissions/Permission;)Z"},{"name":"addAttachment","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Z)Lorg/bukkit/permissions/PermissionAttachment;"},{"name":"addAttachment","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Lorg/bukkit/permissions/PermissionAttachment;"},{"name":"addAttachment","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;ZI)Lorg/bukkit/permissions/PermissionAttachment;"},{"name":"addAttachment","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;I)Lorg/bukkit/permissions/PermissionAttachment;"},{"name":"removeAttachment","access":1025,"descriptor":"(Lorg/bukkit/permissions/PermissionAttachment;)V"},{"name":"recalculatePermissions","access":1025,"descriptor":"()V"},{"name":"getEffectivePermissions","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"}]},{"name":"org/bukkit/permissions/Permission","version":51,"access":33,"superName":"java/lang/Object","fields":[{"name":"DEFAULT_PERMISSION","access":25,"descriptor":"Lorg/bukkit/permissions/PermissionDefault;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/util/Map;)V","signature":"(Ljava/lang/String;Ljava/util/Map;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V","signature":"(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/Map;)V","signature":"(Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/Map;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/Map;)V","signature":"(Ljava/lang/String;Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/Map;)V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getChildren","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"getDefault","access":1,"descriptor":"()Lorg/bukkit/permissions/PermissionDefault;"},{"name":"setDefault","access":1,"descriptor":"(Lorg/bukkit/permissions/PermissionDefault;)V"},{"name":"getDescription","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"setDescription","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"getPermissibles","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"recalculatePermissibles","access":1,"descriptor":"()V"},{"name":"addParent","access":1,"descriptor":"(Ljava/lang/String;Z)Lorg/bukkit/permissions/Permission;"},{"name":"addParent","access":1,"descriptor":"(Lorg/bukkit/permissions/Permission;Z)V"},{"name":"loadPermissions","access":9,"descriptor":"(Ljava/util/Map;Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;)Ljava/util/List;","signature":"(Ljava/util/Map<**>;Ljava/lang/String;Lorg/bukkit/permissions/PermissionDefault;)Ljava/util/List;"},{"name":"loadPermission","access":9,"descriptor":"(Ljava/lang/String;Ljava/util/Map;)Lorg/bukkit/permissions/Permission;","signature":"(Ljava/lang/String;Ljava/util/Map;)Lorg/bukkit/permissions/Permission;"},{"name":"loadPermission","access":9,"descriptor":"(Ljava/lang/String;Ljava/util/Map;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/List;)Lorg/bukkit/permissions/Permission;","signature":"(Ljava/lang/String;Ljava/util/Map<**>;Lorg/bukkit/permissions/PermissionDefault;Ljava/util/List;)Lorg/bukkit/permissions/Permission;"}]},{"name":"org/bukkit/permissions/PermissionAttachment","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/permissions/Permissible;)V"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"setRemovalCallback","access":1,"descriptor":"(Lorg/bukkit/permissions/PermissionRemovedExecutor;)V"},{"name":"getRemovalCallback","access":1,"descriptor":"()Lorg/bukkit/permissions/PermissionRemovedExecutor;"},{"name":"getPermissible","access":1,"descriptor":"()Lorg/bukkit/permissions/Permissible;"},{"name":"getPermissions","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"setPermission","access":1,"descriptor":"(Ljava/lang/String;Z)V"},{"name":"setPermission","access":1,"descriptor":"(Lorg/bukkit/permissions/Permission;Z)V"},{"name":"unsetPermission","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"unsetPermission","access":1,"descriptor":"(Lorg/bukkit/permissions/Permission;)V"},{"name":"remove","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/permissions/PermissionAttachmentInfo","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/permissions/Permissible;Ljava/lang/String;Lorg/bukkit/permissions/PermissionAttachment;Z)V"},{"name":"getPermissible","access":1,"descriptor":"()Lorg/bukkit/permissions/Permissible;"},{"name":"getPermission","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getAttachment","access":1,"descriptor":"()Lorg/bukkit/permissions/PermissionAttachment;"},{"name":"getValue","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/permissions/PermissionDefault","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"TRUE","access":16409,"descriptor":"Lorg/bukkit/permissions/PermissionDefault;"},{"name":"FALSE","access":16409,"descriptor":"Lorg/bukkit/permissions/PermissionDefault;"},{"name":"OP","access":16409,"descriptor":"Lorg/bukkit/permissions/PermissionDefault;"},{"name":"NOT_OP","access":16409,"descriptor":"Lorg/bukkit/permissions/PermissionDefault;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"getValue","access":1,"descriptor":"(Z)Z"},{"name":"getByName","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/permissions/PermissionDefault;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/permissions/PermissionDefault;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/permissions/PermissionDefault;"},{"name":"$SWITCH_TABLE$org$bukkit$permissions$PermissionDefault","access":4104,"descriptor":"()[I"}]},{"name":"org/bukkit/permissions/PermissionRemovedExecutor","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"attachmentRemoved","access":1025,"descriptor":"(Lorg/bukkit/permissions/PermissionAttachment;)V"}]},{"name":"org/bukkit/permissions/ServerOperator","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"isOp","access":1025,"descriptor":"()Z"},{"name":"setOp","access":1025,"descriptor":"(Z)V"}]},{"name":"org/bukkit/plugin/EventExecutor","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"execute","access":1025,"descriptor":"(Lorg/bukkit/event/Listener;Lorg/bukkit/event/Event;)V","exceptions":["org/bukkit/event/EventException"]}]},{"name":"org/bukkit/plugin/InvalidDescriptionException","version":51,"access":33,"superName":"java/lang/Exception","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"()V"}]},{"name":"org/bukkit/plugin/InvalidPluginException","version":51,"access":33,"superName":"java/lang/Exception","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"}]},{"name":"org/bukkit/plugin/Plugin","version":51,"access":1537,"superName":"java/lang/Object","interfaces":["org/bukkit/command/TabExecutor"],"methods":[{"name":"getDataFolder","access":1025,"descriptor":"()Ljava/io/File;"},{"name":"getDescription","access":1025,"descriptor":"()Lorg/bukkit/plugin/PluginDescriptionFile;"},{"name":"getConfig","access":1025,"descriptor":"()Lorg/bukkit/configuration/file/FileConfiguration;"},{"name":"getResource","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/io/InputStream;"},{"name":"saveConfig","access":1025,"descriptor":"()V"},{"name":"saveDefaultConfig","access":1025,"descriptor":"()V"},{"name":"saveResource","access":1025,"descriptor":"(Ljava/lang/String;Z)V"},{"name":"reloadConfig","access":1025,"descriptor":"()V"},{"name":"getPluginLoader","access":1025,"descriptor":"()Lorg/bukkit/plugin/PluginLoader;"},{"name":"getServer","access":1025,"descriptor":"()Lorg/bukkit/Server;"},{"name":"isEnabled","access":1025,"descriptor":"()Z"},{"name":"onDisable","access":1025,"descriptor":"()V"},{"name":"onLoad","access":1025,"descriptor":"()V"},{"name":"onEnable","access":1025,"descriptor":"()V"},{"name":"isNaggable","access":1025,"descriptor":"()Z"},{"name":"setNaggable","access":1025,"descriptor":"(Z)V"},{"name":"getDefaultWorldGenerator","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Lorg/bukkit/generator/ChunkGenerator;"},{"name":"getLogger","access":1025,"descriptor":"()Ljava/util/logging/Logger;"},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/plugin/PluginAwareness","version":51,"access":1537,"superName":"java/lang/Object"},{"name":"org/bukkit/plugin/PluginBase","version":51,"access":1057,"superName":"java/lang/Object","interfaces":["org/bukkit/plugin/Plugin"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"hashCode","access":17,"descriptor":"()I"},{"name":"equals","access":17,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"getName","access":17,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/plugin/PluginDescriptionFile","version":51,"access":49,"superName":"java/lang/Object","fields":[{"name":"rawName","access":0,"descriptor":"Ljava/lang/String;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/io/InputStream;)V","exceptions":["org/bukkit/plugin/InvalidDescriptionException"]},{"name":"","access":1,"descriptor":"(Ljava/io/Reader;)V","exceptions":["org/bukkit/plugin/InvalidDescriptionException"]},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getVersion","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getMain","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getDescription","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getLoad","access":1,"descriptor":"()Lorg/bukkit/plugin/PluginLoadOrder;"},{"name":"getAuthors","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getWebsite","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getDepend","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getSoftDepend","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getLoadBefore","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getPrefix","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getCommands","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;>;"},{"name":"getPermissions","access":1,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getPermissionDefault","access":1,"descriptor":"()Lorg/bukkit/permissions/PermissionDefault;"},{"name":"getAwareness","access":1,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getFullName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getClassLoaderOf","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"save","access":1,"descriptor":"(Ljava/io/Writer;)V"},{"name":"getRawName","access":131073,"descriptor":"()Ljava/lang/String;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/plugin/PluginLoadOrder","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"STARTUP","access":16409,"descriptor":"Lorg/bukkit/plugin/PluginLoadOrder;"},{"name":"POSTWORLD","access":16409,"descriptor":"Lorg/bukkit/plugin/PluginLoadOrder;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/plugin/PluginLoadOrder;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/plugin/PluginLoadOrder;"}]},{"name":"org/bukkit/plugin/PluginLoader","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"loadPlugin","access":1025,"descriptor":"(Ljava/io/File;)Lorg/bukkit/plugin/Plugin;","exceptions":["org/bukkit/plugin/InvalidPluginException","org/bukkit/plugin/UnknownDependencyException"]},{"name":"getPluginDescription","access":1025,"descriptor":"(Ljava/io/File;)Lorg/bukkit/plugin/PluginDescriptionFile;","exceptions":["org/bukkit/plugin/InvalidDescriptionException"]},{"name":"getPluginFileFilters","access":1025,"descriptor":"()[Ljava/util/regex/Pattern;"},{"name":"createRegisteredListeners","access":1025,"descriptor":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)Ljava/util/Map;","signature":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)Ljava/util/Map;Ljava/util/Set;>;"},{"name":"enablePlugin","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"disablePlugin","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"}]},{"name":"org/bukkit/plugin/PluginManager","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"registerInterface","access":1025,"descriptor":"(Ljava/lang/Class;)V","signature":"(Ljava/lang/Class<+Lorg/bukkit/plugin/PluginLoader;>;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getPlugin","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/plugin/Plugin;"},{"name":"getPlugins","access":1025,"descriptor":"()[Lorg/bukkit/plugin/Plugin;"},{"name":"isPluginEnabled","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"isPluginEnabled","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Z"},{"name":"loadPlugin","access":1025,"descriptor":"(Ljava/io/File;)Lorg/bukkit/plugin/Plugin;","exceptions":["org/bukkit/plugin/InvalidPluginException","org/bukkit/plugin/InvalidDescriptionException","org/bukkit/plugin/UnknownDependencyException"]},{"name":"loadPlugins","access":1025,"descriptor":"(Ljava/io/File;)[Lorg/bukkit/plugin/Plugin;"},{"name":"disablePlugins","access":1025,"descriptor":"()V"},{"name":"clearPlugins","access":1025,"descriptor":"()V"},{"name":"callEvent","access":1025,"descriptor":"(Lorg/bukkit/event/Event;)V","exceptions":["java/lang/IllegalStateException"]},{"name":"registerEvents","access":1025,"descriptor":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)V"},{"name":"registerEvent","access":1025,"descriptor":"(Ljava/lang/Class;Lorg/bukkit/event/Listener;Lorg/bukkit/event/EventPriority;Lorg/bukkit/plugin/EventExecutor;Lorg/bukkit/plugin/Plugin;)V","signature":"(Ljava/lang/Class<+Lorg/bukkit/event/Event;>;Lorg/bukkit/event/Listener;Lorg/bukkit/event/EventPriority;Lorg/bukkit/plugin/EventExecutor;Lorg/bukkit/plugin/Plugin;)V"},{"name":"registerEvent","access":1025,"descriptor":"(Ljava/lang/Class;Lorg/bukkit/event/Listener;Lorg/bukkit/event/EventPriority;Lorg/bukkit/plugin/EventExecutor;Lorg/bukkit/plugin/Plugin;Z)V","signature":"(Ljava/lang/Class<+Lorg/bukkit/event/Event;>;Lorg/bukkit/event/Listener;Lorg/bukkit/event/EventPriority;Lorg/bukkit/plugin/EventExecutor;Lorg/bukkit/plugin/Plugin;Z)V"},{"name":"enablePlugin","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"disablePlugin","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"getPermission","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/permissions/Permission;"},{"name":"addPermission","access":1025,"descriptor":"(Lorg/bukkit/permissions/Permission;)V"},{"name":"removePermission","access":1025,"descriptor":"(Lorg/bukkit/permissions/Permission;)V"},{"name":"removePermission","access":1025,"descriptor":"(Ljava/lang/String;)V"},{"name":"getDefaultPermissions","access":1025,"descriptor":"(Z)Ljava/util/Set;","signature":"(Z)Ljava/util/Set;"},{"name":"recalculatePermissionDefaults","access":1025,"descriptor":"(Lorg/bukkit/permissions/Permission;)V"},{"name":"subscribeToPermission","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/permissions/Permissible;)V"},{"name":"unsubscribeFromPermission","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/permissions/Permissible;)V"},{"name":"getPermissionSubscriptions","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/Set;","signature":"(Ljava/lang/String;)Ljava/util/Set;"},{"name":"subscribeToDefaultPerms","access":1025,"descriptor":"(ZLorg/bukkit/permissions/Permissible;)V"},{"name":"unsubscribeFromDefaultPerms","access":1025,"descriptor":"(ZLorg/bukkit/permissions/Permissible;)V"},{"name":"getDefaultPermSubscriptions","access":1025,"descriptor":"(Z)Ljava/util/Set;","signature":"(Z)Ljava/util/Set;"},{"name":"getPermissions","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"useTimings","access":1025,"descriptor":"()Z"}]},{"name":"org/bukkit/plugin/RegisteredListener","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/EventExecutor;Lorg/bukkit/event/EventPriority;Lorg/bukkit/plugin/Plugin;Z)V"},{"name":"getListener","access":1,"descriptor":"()Lorg/bukkit/event/Listener;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getPriority","access":1,"descriptor":"()Lorg/bukkit/event/EventPriority;"},{"name":"callEvent","access":1,"descriptor":"(Lorg/bukkit/event/Event;)V","exceptions":["org/bukkit/event/EventException"]},{"name":"isIgnoringCancelled","access":1,"descriptor":"()Z"}]},{"name":"org/bukkit/plugin/RegisteredServiceProvider","version":51,"access":33,"signature":"Ljava/lang/Object;Ljava/lang/Comparable;>;","superName":"java/lang/Object","interfaces":["java/lang/Comparable"],"methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;Lorg/bukkit/plugin/ServicePriority;Lorg/bukkit/plugin/Plugin;)V","signature":"(Ljava/lang/Class;TT;Lorg/bukkit/plugin/ServicePriority;Lorg/bukkit/plugin/Plugin;)V"},{"name":"getService","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getProvider","access":1,"descriptor":"()Ljava/lang/Object;","signature":"()TT;"},{"name":"getPriority","access":1,"descriptor":"()Lorg/bukkit/plugin/ServicePriority;"},{"name":"compareTo","access":1,"descriptor":"(Lorg/bukkit/plugin/RegisteredServiceProvider;)I","signature":"(Lorg/bukkit/plugin/RegisteredServiceProvider<*>;)I"},{"name":"compareTo","access":4161,"descriptor":"(Ljava/lang/Object;)I"}]},{"name":"org/bukkit/plugin/ServicePriority","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"Lowest","access":16409,"descriptor":"Lorg/bukkit/plugin/ServicePriority;"},{"name":"Low","access":16409,"descriptor":"Lorg/bukkit/plugin/ServicePriority;"},{"name":"Normal","access":16409,"descriptor":"Lorg/bukkit/plugin/ServicePriority;"},{"name":"High","access":16409,"descriptor":"Lorg/bukkit/plugin/ServicePriority;"},{"name":"Highest","access":16409,"descriptor":"Lorg/bukkit/plugin/ServicePriority;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/plugin/ServicePriority;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/plugin/ServicePriority;"}]},{"name":"org/bukkit/plugin/ServicesManager","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"register","access":1025,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;Lorg/bukkit/plugin/Plugin;Lorg/bukkit/plugin/ServicePriority;)V","signature":"(Ljava/lang/Class;TT;Lorg/bukkit/plugin/Plugin;Lorg/bukkit/plugin/ServicePriority;)V"},{"name":"unregisterAll","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"unregister","access":1025,"descriptor":"(Ljava/lang/Class;Ljava/lang/Object;)V","signature":"(Ljava/lang/Class<*>;Ljava/lang/Object;)V"},{"name":"unregister","access":1025,"descriptor":"(Ljava/lang/Object;)V"},{"name":"load","access":1025,"descriptor":"(Ljava/lang/Class;)Ljava/lang/Object;","signature":"(Ljava/lang/Class;)TT;"},{"name":"getRegistration","access":1025,"descriptor":"(Ljava/lang/Class;)Lorg/bukkit/plugin/RegisteredServiceProvider;","signature":"(Ljava/lang/Class;)Lorg/bukkit/plugin/RegisteredServiceProvider;"},{"name":"getRegistrations","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/List;","signature":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/List;>;"},{"name":"getRegistrations","access":1025,"descriptor":"(Ljava/lang/Class;)Ljava/util/Collection;","signature":"(Ljava/lang/Class;)Ljava/util/Collection;>;"},{"name":"getKnownServices","access":1025,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection;>;"},{"name":"isProvidedFor","access":1025,"descriptor":"(Ljava/lang/Class;)Z","signature":"(Ljava/lang/Class;)Z"}]},{"name":"org/bukkit/plugin/UnknownDependencyException","version":51,"access":33,"superName":"java/lang/RuntimeException","methods":[{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/Throwable;Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"()V"}]},{"name":"org/bukkit/plugin/java/JavaPlugin","version":51,"access":1057,"superName":"org/bukkit/plugin/PluginBase","methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":4,"descriptor":"(Lorg/bukkit/plugin/java/JavaPluginLoader;Lorg/bukkit/plugin/PluginDescriptionFile;Ljava/io/File;Ljava/io/File;)V"},{"name":"getDataFolder","access":17,"descriptor":"()Ljava/io/File;"},{"name":"getPluginLoader","access":17,"descriptor":"()Lorg/bukkit/plugin/PluginLoader;"},{"name":"getServer","access":17,"descriptor":"()Lorg/bukkit/Server;"},{"name":"isEnabled","access":17,"descriptor":"()Z"},{"name":"getFile","access":4,"descriptor":"()Ljava/io/File;"},{"name":"getDescription","access":17,"descriptor":"()Lorg/bukkit/plugin/PluginDescriptionFile;"},{"name":"getConfig","access":1,"descriptor":"()Lorg/bukkit/configuration/file/FileConfiguration;"},{"name":"getTextResource","access":20,"descriptor":"(Ljava/lang/String;)Ljava/io/Reader;"},{"name":"reloadConfig","access":1,"descriptor":"()V"},{"name":"saveConfig","access":1,"descriptor":"()V"},{"name":"saveDefaultConfig","access":1,"descriptor":"()V"},{"name":"saveResource","access":1,"descriptor":"(Ljava/lang/String;Z)V"},{"name":"getResource","access":1,"descriptor":"(Ljava/lang/String;)Ljava/io/InputStream;"},{"name":"getClassLoader","access":20,"descriptor":"()Ljava/lang/ClassLoader;"},{"name":"setEnabled","access":20,"descriptor":"(Z)V"},{"name":"init","access":16,"descriptor":"(Lorg/bukkit/plugin/PluginLoader;Lorg/bukkit/Server;Lorg/bukkit/plugin/PluginDescriptionFile;Ljava/io/File;Ljava/io/File;Ljava/lang/ClassLoader;)V"},{"name":"onCommand","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Z"},{"name":"onTabComplete","access":1,"descriptor":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;","signature":"(Lorg/bukkit/command/CommandSender;Lorg/bukkit/command/Command;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;"},{"name":"getCommand","access":1,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/command/PluginCommand;"},{"name":"onLoad","access":1,"descriptor":"()V"},{"name":"onDisable","access":1,"descriptor":"()V"},{"name":"onEnable","access":1,"descriptor":"()V"},{"name":"getDefaultWorldGenerator","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Lorg/bukkit/generator/ChunkGenerator;"},{"name":"isNaggable","access":17,"descriptor":"()Z"},{"name":"setNaggable","access":17,"descriptor":"(Z)V"},{"name":"getLogger","access":17,"descriptor":"()Ljava/util/logging/Logger;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getPlugin","access":9,"descriptor":"(Ljava/lang/Class;)Lorg/bukkit/plugin/java/JavaPlugin;","signature":"(Ljava/lang/Class;)TT;"},{"name":"getProvidingPlugin","access":9,"descriptor":"(Ljava/lang/Class;)Lorg/bukkit/plugin/java/JavaPlugin;","signature":"(Ljava/lang/Class<*>;)Lorg/bukkit/plugin/java/JavaPlugin;"}]},{"name":"org/bukkit/plugin/java/JavaPluginLoader","version":51,"access":49,"superName":"java/lang/Object","interfaces":["org/bukkit/plugin/PluginLoader"],"innerClasses":[{"name":"org/bukkit/Warning$WarningState","outerName":"org/bukkit/Warning","innerName":"WarningState","access":16409}],"fields":[{"name":"server","access":16,"descriptor":"Lorg/bukkit/Server;"},{"name":"pluginParentTimer","access":25,"descriptor":"Lorg/spigotmc/CustomTimingsHandler;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":131073,"descriptor":"(Lorg/bukkit/Server;)V","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"loadPlugin","access":1,"descriptor":"(Ljava/io/File;)Lorg/bukkit/plugin/Plugin;","exceptions":["org/bukkit/plugin/InvalidPluginException"]},{"name":"getPluginDescription","access":1,"descriptor":"(Ljava/io/File;)Lorg/bukkit/plugin/PluginDescriptionFile;","exceptions":["org/bukkit/plugin/InvalidDescriptionException"]},{"name":"getPluginFileFilters","access":1,"descriptor":"()[Ljava/util/regex/Pattern;"},{"name":"getClassByName","access":0,"descriptor":"(Ljava/lang/String;)Ljava/lang/Class;","signature":"(Ljava/lang/String;)Ljava/lang/Class<*>;"},{"name":"setClass","access":0,"descriptor":"(Ljava/lang/String;Ljava/lang/Class;)V","signature":"(Ljava/lang/String;Ljava/lang/Class<*>;)V"},{"name":"createRegisteredListeners","access":1,"descriptor":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)Ljava/util/Map;","signature":"(Lorg/bukkit/event/Listener;Lorg/bukkit/plugin/Plugin;)Ljava/util/Map;Ljava/util/Set;>;"},{"name":"enablePlugin","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"disablePlugin","access":1,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"}]},{"name":"org/bukkit/plugin/messaging/Messenger","version":51,"access":1537,"superName":"java/lang/Object","fields":[{"name":"MAX_MESSAGE_SIZE","access":25,"descriptor":"I","constant":{"type":"Integer","value":"32766"}},{"name":"MAX_CHANNEL_SIZE","access":25,"descriptor":"I","constant":{"type":"Integer","value":"20"}}],"methods":[{"name":"isReservedChannel","access":1025,"descriptor":"(Ljava/lang/String;)Z"},{"name":"registerOutgoingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)V"},{"name":"unregisterOutgoingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)V"},{"name":"unregisterOutgoingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"registerIncomingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Lorg/bukkit/plugin/messaging/PluginMessageListener;)Lorg/bukkit/plugin/messaging/PluginMessageListenerRegistration;"},{"name":"unregisterIncomingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Lorg/bukkit/plugin/messaging/PluginMessageListener;)V"},{"name":"unregisterIncomingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)V"},{"name":"unregisterIncomingPluginChannel","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"getOutgoingChannels","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getOutgoingChannels","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;","signature":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;"},{"name":"getIncomingChannels","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getIncomingChannels","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;","signature":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;"},{"name":"getIncomingChannelRegistrations","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;","signature":"(Lorg/bukkit/plugin/Plugin;)Ljava/util/Set;"},{"name":"getIncomingChannelRegistrations","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/Set;","signature":"(Ljava/lang/String;)Ljava/util/Set;"},{"name":"getIncomingChannelRegistrations","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)Ljava/util/Set;","signature":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)Ljava/util/Set;"},{"name":"isRegistrationValid","access":1025,"descriptor":"(Lorg/bukkit/plugin/messaging/PluginMessageListenerRegistration;)Z"},{"name":"isIncomingChannelRegistered","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)Z"},{"name":"isOutgoingChannelRegistered","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;)Z"},{"name":"dispatchIncomingMessage","access":1025,"descriptor":"(Lorg/bukkit/entity/Player;Ljava/lang/String;[B)V"}]},{"name":"org/bukkit/plugin/messaging/PluginMessageListener","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"onPluginMessageReceived","access":1025,"descriptor":"(Ljava/lang/String;Lorg/bukkit/entity/Player;[B)V"}]},{"name":"org/bukkit/plugin/messaging/PluginMessageListenerRegistration","version":51,"access":49,"superName":"java/lang/Object","methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/plugin/messaging/Messenger;Lorg/bukkit/plugin/Plugin;Ljava/lang/String;Lorg/bukkit/plugin/messaging/PluginMessageListener;)V"},{"name":"getChannel","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getListener","access":1,"descriptor":"()Lorg/bukkit/plugin/messaging/PluginMessageListener;"},{"name":"getPlugin","access":1,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"isValid","access":1,"descriptor":"()Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"}]},{"name":"org/bukkit/plugin/messaging/PluginMessageRecipient","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"sendPluginMessage","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/String;[B)V"},{"name":"getListeningPluginChannels","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"}]},{"name":"org/bukkit/potion/PotionEffect","version":51,"access":33,"superName":"java/lang/Object","interfaces":["org/bukkit/configuration/serialization/ConfigurationSerializable"],"annotations":[{"descriptor":"Lorg/bukkit/configuration/serialization/SerializableAs;","visible":true,"values":{"value":"PotionEffect"}}],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;IIZZLorg/bukkit/Color;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;IIZZ)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;IIZ)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;II)V"},{"name":"","access":1,"descriptor":"(Ljava/util/Map;)V","signature":"(Ljava/util/Map;)V"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"apply","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;)Z"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"getAmplifier","access":1,"descriptor":"()I"},{"name":"getDuration","access":1,"descriptor":"()I"},{"name":"getType","access":1,"descriptor":"()Lorg/bukkit/potion/PotionEffectType;"},{"name":"isAmbient","access":1,"descriptor":"()Z"},{"name":"hasParticles","access":1,"descriptor":"()Z"},{"name":"getColor","access":1,"descriptor":"()Lorg/bukkit/Color;"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"org/bukkit/potion/PotionEffectType","version":51,"access":1057,"superName":"java/lang/Object","fields":[{"name":"SPEED","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"SLOW","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"FAST_DIGGING","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"SLOW_DIGGING","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"INCREASE_DAMAGE","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"HEAL","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"HARM","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"JUMP","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"CONFUSION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"REGENERATION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"DAMAGE_RESISTANCE","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"FIRE_RESISTANCE","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"WATER_BREATHING","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"INVISIBILITY","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"BLINDNESS","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"NIGHT_VISION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"HUNGER","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"WEAKNESS","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"POISON","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"WITHER","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"HEALTH_BOOST","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"ABSORPTION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"SATURATION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"GLOWING","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"LEVITATION","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"LUCK","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"},{"name":"UNLUCK","access":25,"descriptor":"Lorg/bukkit/potion/PotionEffectType;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":4,"descriptor":"(I)V"},{"name":"createEffect","access":1,"descriptor":"(II)Lorg/bukkit/potion/PotionEffect;"},{"name":"getDurationModifier","access":1025,"descriptor":"()D"},{"name":"getId","access":131073,"descriptor":"()I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"isInstant","access":1025,"descriptor":"()Z"},{"name":"getColor","access":1025,"descriptor":"()Lorg/bukkit/Color;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getById","access":131081,"descriptor":"(I)Lorg/bukkit/potion/PotionEffectType;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getByName","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/potion/PotionEffectType;"},{"name":"registerPotionEffectType","access":9,"descriptor":"(Lorg/bukkit/potion/PotionEffectType;)V"},{"name":"stopAcceptingRegistrations","access":9,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/potion/PotionEffectType;"}]},{"name":"org/bukkit/projectiles/ProjectileSource","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"launchProjectile","access":1025,"descriptor":"(Ljava/lang/Class;)Lorg/bukkit/entity/Projectile;","signature":"(Ljava/lang/Class<+TT;>;)TT;"},{"name":"launchProjectile","access":1025,"descriptor":"(Ljava/lang/Class;Lorg/bukkit/util/Vector;)Lorg/bukkit/entity/Projectile;","signature":"(Ljava/lang/Class<+TT;>;Lorg/bukkit/util/Vector;)TT;"}]},{"name":"org/bukkit/scheduler/BukkitRunnable","version":51,"access":1057,"superName":"java/lang/Object","interfaces":["java/lang/Runnable"],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"isCancelled","access":33,"descriptor":"()Z","exceptions":["java/lang/IllegalStateException"]},{"name":"cancel","access":33,"descriptor":"()V","exceptions":["java/lang/IllegalStateException"]},{"name":"runTask","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"runTaskAsynchronously","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"runTaskLater","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"runTaskLaterAsynchronously","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"runTaskTimer","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"runTaskTimerAsynchronously","access":33,"descriptor":"(Lorg/bukkit/plugin/Plugin;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"getTaskId","access":33,"descriptor":"()I","exceptions":["java/lang/IllegalStateException"]}]},{"name":"org/bukkit/scheduler/BukkitScheduler","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"scheduleSyncDelayedTask","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;J)I"},{"name":"scheduleSyncDelayedTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;J)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"scheduleSyncDelayedTask","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;)I"},{"name":"scheduleSyncDelayedTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"scheduleSyncRepeatingTask","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)I"},{"name":"scheduleSyncRepeatingTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;JJ)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"scheduleAsyncDelayedTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;J)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"scheduleAsyncDelayedTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"scheduleAsyncRepeatingTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)I","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"callSyncMethod","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;","signature":"(Lorg/bukkit/plugin/Plugin;Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;"},{"name":"cancelTask","access":1025,"descriptor":"(I)V"},{"name":"cancelTasks","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;)V"},{"name":"cancelAllTasks","access":1025,"descriptor":"()V"},{"name":"isCurrentlyRunning","access":1025,"descriptor":"(I)Z"},{"name":"isQueued","access":1025,"descriptor":"(I)Z"},{"name":"getActiveWorkers","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"getPendingTasks","access":1025,"descriptor":"()Ljava/util/List;","signature":"()Ljava/util/List;"},{"name":"runTask","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTask","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"runTaskAsynchronously","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTaskAsynchronously","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"runTaskLater","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTaskLater","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"runTaskLaterAsynchronously","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTaskLaterAsynchronously","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;J)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"runTaskTimer","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTaskTimer","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"runTaskTimerAsynchronously","access":1025,"descriptor":"(Lorg/bukkit/plugin/Plugin;Ljava/lang/Runnable;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"runTaskTimerAsynchronously","access":132097,"descriptor":"(Lorg/bukkit/plugin/Plugin;Lorg/bukkit/scheduler/BukkitRunnable;JJ)Lorg/bukkit/scheduler/BukkitTask;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]}]},{"name":"org/bukkit/scheduler/BukkitTask","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getTaskId","access":1025,"descriptor":"()I"},{"name":"getOwner","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"isSync","access":1025,"descriptor":"()Z"},{"name":"isCancelled","access":1025,"descriptor":"()Z"},{"name":"cancel","access":1025,"descriptor":"()V"}]},{"name":"org/bukkit/scheduler/BukkitWorker","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getTaskId","access":1025,"descriptor":"()I"},{"name":"getOwner","access":1025,"descriptor":"()Lorg/bukkit/plugin/Plugin;"},{"name":"getThread","access":1025,"descriptor":"()Ljava/lang/Thread;"}]},{"name":"org/bukkit/scoreboard/DisplaySlot","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","fields":[{"name":"BELOW_NAME","access":16409,"descriptor":"Lorg/bukkit/scoreboard/DisplaySlot;"},{"name":"PLAYER_LIST","access":16409,"descriptor":"Lorg/bukkit/scoreboard/DisplaySlot;"},{"name":"SIDEBAR","access":16409,"descriptor":"Lorg/bukkit/scoreboard/DisplaySlot;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/scoreboard/DisplaySlot;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/DisplaySlot;"}]},{"name":"org/bukkit/scoreboard/NameTagVisibility","version":51,"access":147505,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}],"fields":[{"name":"ALWAYS","access":16409,"descriptor":"Lorg/bukkit/scoreboard/NameTagVisibility;"},{"name":"NEVER","access":16409,"descriptor":"Lorg/bukkit/scoreboard/NameTagVisibility;"},{"name":"HIDE_FOR_OTHER_TEAMS","access":16409,"descriptor":"Lorg/bukkit/scoreboard/NameTagVisibility;"},{"name":"HIDE_FOR_OWN_TEAM","access":16409,"descriptor":"Lorg/bukkit/scoreboard/NameTagVisibility;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/scoreboard/NameTagVisibility;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/NameTagVisibility;"}]},{"name":"org/bukkit/scoreboard/Objective","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"getDisplayName","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"setDisplayName","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"getCriteria","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"isModifiable","access":1025,"descriptor":"()Z","exceptions":["java/lang/IllegalStateException"]},{"name":"getScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"},{"name":"unregister","access":1025,"descriptor":"()V","exceptions":["java/lang/IllegalStateException"]},{"name":"setDisplaySlot","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/DisplaySlot;)V","exceptions":["java/lang/IllegalStateException"]},{"name":"getDisplaySlot","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/DisplaySlot;","exceptions":["java/lang/IllegalStateException"]},{"name":"getScore","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Lorg/bukkit/scoreboard/Score;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getScore","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Score;","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]}]},{"name":"org/bukkit/scoreboard/Score","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPlayer","access":132097,"descriptor":"()Lorg/bukkit/OfflinePlayer;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntry","access":1025,"descriptor":"()Ljava/lang/String;"},{"name":"getObjective","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Objective;"},{"name":"getScore","access":1025,"descriptor":"()I","exceptions":["java/lang/IllegalStateException"]},{"name":"setScore","access":1025,"descriptor":"(I)V","exceptions":["java/lang/IllegalStateException"]},{"name":"isScoreSet","access":1025,"descriptor":"()Z","exceptions":["java/lang/IllegalStateException"]},{"name":"getScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"}]},{"name":"org/bukkit/scoreboard/Scoreboard","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"registerNewObjective","access":1025,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)Lorg/bukkit/scoreboard/Objective;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getObjective","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Objective;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getObjectivesByCriteria","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/Set;","signature":"(Ljava/lang/String;)Ljava/util/Set;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getObjectives","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"getObjective","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/DisplaySlot;)Lorg/bukkit/scoreboard/Objective;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getScores","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Ljava/util/Set;","signature":"(Lorg/bukkit/OfflinePlayer;)Ljava/util/Set;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getScores","access":1025,"descriptor":"(Ljava/lang/String;)Ljava/util/Set;","signature":"(Ljava/lang/String;)Ljava/util/Set;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"resetScores","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)V","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"resetScores","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getPlayerTeam","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Lorg/bukkit/scoreboard/Team;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntryTeam","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Team;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getTeam","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Team;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getTeams","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"registerNewTeam","access":1025,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Team;","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getPlayers","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntries","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;"},{"name":"clearSlot","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/DisplaySlot;)V","exceptions":["java/lang/IllegalArgumentException"]}]},{"name":"org/bukkit/scoreboard/ScoreboardManager","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getMainScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"},{"name":"getNewScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"}]},{"name":"org/bukkit/scoreboard/Team","version":51,"access":1537,"superName":"java/lang/Object","innerClasses":[{"name":"org/bukkit/scoreboard/Team$Option","outerName":"org/bukkit/scoreboard/Team","innerName":"Option","access":16409},{"name":"org/bukkit/scoreboard/Team$OptionStatus","outerName":"org/bukkit/scoreboard/Team","innerName":"OptionStatus","access":16409}],"methods":[{"name":"getName","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"getDisplayName","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"setDisplayName","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"getPrefix","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"setPrefix","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"getSuffix","access":1025,"descriptor":"()Ljava/lang/String;","exceptions":["java/lang/IllegalStateException"]},{"name":"setSuffix","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"getColor","access":1025,"descriptor":"()Lorg/bukkit/ChatColor;","exceptions":["java/lang/IllegalStateException"]},{"name":"setColor","access":1025,"descriptor":"(Lorg/bukkit/ChatColor;)V"},{"name":"allowFriendlyFire","access":1025,"descriptor":"()Z","exceptions":["java/lang/IllegalStateException"]},{"name":"setAllowFriendlyFire","access":1025,"descriptor":"(Z)V","exceptions":["java/lang/IllegalStateException"]},{"name":"canSeeFriendlyInvisibles","access":1025,"descriptor":"()Z","exceptions":["java/lang/IllegalStateException"]},{"name":"setCanSeeFriendlyInvisibles","access":1025,"descriptor":"(Z)V","exceptions":["java/lang/IllegalStateException"]},{"name":"getNameTagVisibility","access":132097,"descriptor":"()Lorg/bukkit/scoreboard/NameTagVisibility;","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"setNameTagVisibility","access":132097,"descriptor":"(Lorg/bukkit/scoreboard/NameTagVisibility;)V","exceptions":["java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getPlayers","access":132097,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","exceptions":["java/lang/IllegalStateException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"getEntries","access":1025,"descriptor":"()Ljava/util/Set;","signature":"()Ljava/util/Set;","exceptions":["java/lang/IllegalStateException"]},{"name":"getSize","access":1025,"descriptor":"()I","exceptions":["java/lang/IllegalStateException"]},{"name":"getScoreboard","access":1025,"descriptor":"()Lorg/bukkit/scoreboard/Scoreboard;"},{"name":"addPlayer","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"addEntry","access":1025,"descriptor":"(Ljava/lang/String;)V","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"removePlayer","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Z","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"removeEntry","access":1025,"descriptor":"(Ljava/lang/String;)Z","exceptions":["java/lang/IllegalStateException","java/lang/IllegalArgumentException"]},{"name":"unregister","access":1025,"descriptor":"()V","exceptions":["java/lang/IllegalStateException"]},{"name":"hasPlayer","access":132097,"descriptor":"(Lorg/bukkit/OfflinePlayer;)Z","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"],"annotations":[{"descriptor":"Ljava/lang/Deprecated;","visible":true,"values":{}}]},{"name":"hasEntry","access":1025,"descriptor":"(Ljava/lang/String;)Z","exceptions":["java/lang/IllegalArgumentException","java/lang/IllegalStateException"]},{"name":"getOption","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/Team$Option;)Lorg/bukkit/scoreboard/Team$OptionStatus;","exceptions":["java/lang/IllegalStateException"]},{"name":"setOption","access":1025,"descriptor":"(Lorg/bukkit/scoreboard/Team$Option;Lorg/bukkit/scoreboard/Team$OptionStatus;)V","exceptions":["java/lang/IllegalStateException"]}]},{"name":"org/bukkit/scoreboard/Team$Option","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/scoreboard/Team$Option","outerName":"org/bukkit/scoreboard/Team","innerName":"Option","access":16409}],"fields":[{"name":"NAME_TAG_VISIBILITY","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$Option;"},{"name":"DEATH_MESSAGE_VISIBILITY","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$Option;"},{"name":"COLLISION_RULE","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$Option;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/scoreboard/Team$Option;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Team$Option;"}]},{"name":"org/bukkit/scoreboard/Team$OptionStatus","version":51,"access":16433,"signature":"Ljava/lang/Enum;","superName":"java/lang/Enum","innerClasses":[{"name":"org/bukkit/scoreboard/Team$OptionStatus","outerName":"org/bukkit/scoreboard/Team","innerName":"OptionStatus","access":16409}],"fields":[{"name":"ALWAYS","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$OptionStatus;"},{"name":"NEVER","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$OptionStatus;"},{"name":"FOR_OTHER_TEAMS","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$OptionStatus;"},{"name":"FOR_OWN_TEAM","access":16409,"descriptor":"Lorg/bukkit/scoreboard/Team$OptionStatus;"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"values","access":9,"descriptor":"()[Lorg/bukkit/scoreboard/Team$OptionStatus;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lorg/bukkit/scoreboard/Team$OptionStatus;"}]},{"name":"org/bukkit/util/BlockIterator","version":50,"access":33,"signature":"Ljava/lang/Object;Ljava/util/Iterator;","superName":"java/lang/Object","interfaces":["java/util/Iterator"],"methods":[{"name":"","access":1,"descriptor":"(Lorg/bukkit/World;Lorg/bukkit/util/Vector;Lorg/bukkit/util/Vector;DI)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Location;DI)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Location;D)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/Location;)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;I)V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/entity/LivingEntity;)V"},{"name":"hasNext","access":1,"descriptor":"()Z"},{"name":"next","access":1,"descriptor":"()Lorg/bukkit/block/Block;"},{"name":"remove","access":1,"descriptor":"()V"},{"name":"next","access":4161,"descriptor":"()Ljava/lang/Object;"}]},{"name":"org/bukkit/util/BlockVector","version":51,"access":33,"superName":"org/bukkit/util/Vector","annotations":[{"descriptor":"Lorg/bukkit/configuration/serialization/SerializableAs;","visible":true,"values":{"value":"BlockVector"}}],"methods":[{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)V"},{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(DDD)V"},{"name":"","access":1,"descriptor":"(FFF)V"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/util/BlockVector;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/util/BlockVector;","signature":"(Ljava/util/Map;)Lorg/bukkit/util/BlockVector;"},{"name":"clone","access":4161,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]}]},{"name":"org/bukkit/util/CachedServerIcon","version":51,"access":1537,"superName":"java/lang/Object"},{"name":"org/bukkit/util/Consumer","version":51,"access":1537,"signature":"Ljava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"accept","access":1025,"descriptor":"(Ljava/lang/Object;)V","signature":"(TT;)V"}]},{"name":"org/bukkit/util/Vector","version":51,"access":33,"superName":"java/lang/Object","interfaces":["java/lang/Cloneable","org/bukkit/configuration/serialization/ConfigurationSerializable"],"annotations":[{"descriptor":"Lorg/bukkit/configuration/serialization/SerializableAs;","visible":true,"values":{"value":"Vector"}}],"fields":[{"name":"x","access":4,"descriptor":"D"},{"name":"y","access":4,"descriptor":"D"},{"name":"z","access":4,"descriptor":"D"}],"methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(III)V"},{"name":"","access":1,"descriptor":"(DDD)V"},{"name":"","access":1,"descriptor":"(FFF)V"},{"name":"add","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"subtract","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"multiply","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"divide","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"copy","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"length","access":1,"descriptor":"()D"},{"name":"lengthSquared","access":1,"descriptor":"()D"},{"name":"distance","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)D"},{"name":"distanceSquared","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)D"},{"name":"angle","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)F"},{"name":"midpoint","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"getMidpoint","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"multiply","access":1,"descriptor":"(I)Lorg/bukkit/util/Vector;"},{"name":"multiply","access":1,"descriptor":"(D)Lorg/bukkit/util/Vector;"},{"name":"multiply","access":1,"descriptor":"(F)Lorg/bukkit/util/Vector;"},{"name":"dot","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)D"},{"name":"crossProduct","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"getCrossProduct","access":1,"descriptor":"(Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"normalize","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"zero","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"isInAABB","access":1,"descriptor":"(Lorg/bukkit/util/Vector;Lorg/bukkit/util/Vector;)Z"},{"name":"isInSphere","access":1,"descriptor":"(Lorg/bukkit/util/Vector;D)Z"},{"name":"getX","access":1,"descriptor":"()D"},{"name":"getBlockX","access":1,"descriptor":"()I"},{"name":"getY","access":1,"descriptor":"()D"},{"name":"getBlockY","access":1,"descriptor":"()I"},{"name":"getZ","access":1,"descriptor":"()D"},{"name":"getBlockZ","access":1,"descriptor":"()I"},{"name":"setX","access":1,"descriptor":"(I)Lorg/bukkit/util/Vector;"},{"name":"setX","access":1,"descriptor":"(D)Lorg/bukkit/util/Vector;"},{"name":"setX","access":1,"descriptor":"(F)Lorg/bukkit/util/Vector;"},{"name":"setY","access":1,"descriptor":"(I)Lorg/bukkit/util/Vector;"},{"name":"setY","access":1,"descriptor":"(D)Lorg/bukkit/util/Vector;"},{"name":"setY","access":1,"descriptor":"(F)Lorg/bukkit/util/Vector;"},{"name":"setZ","access":1,"descriptor":"(I)Lorg/bukkit/util/Vector;"},{"name":"setZ","access":1,"descriptor":"(D)Lorg/bukkit/util/Vector;"},{"name":"setZ","access":1,"descriptor":"(F)Lorg/bukkit/util/Vector;"},{"name":"equals","access":1,"descriptor":"(Ljava/lang/Object;)Z"},{"name":"hashCode","access":1,"descriptor":"()I"},{"name":"clone","access":1,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"toLocation","access":1,"descriptor":"(Lorg/bukkit/World;)Lorg/bukkit/Location;"},{"name":"toLocation","access":1,"descriptor":"(Lorg/bukkit/World;FF)Lorg/bukkit/Location;"},{"name":"toBlockVector","access":1,"descriptor":"()Lorg/bukkit/util/BlockVector;"},{"name":"checkFinite","access":1,"descriptor":"()V","exceptions":["java/lang/IllegalArgumentException"]},{"name":"getEpsilon","access":9,"descriptor":"()D"},{"name":"getMinimum","access":9,"descriptor":"(Lorg/bukkit/util/Vector;Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"getMaximum","access":9,"descriptor":"(Lorg/bukkit/util/Vector;Lorg/bukkit/util/Vector;)Lorg/bukkit/util/Vector;"},{"name":"getRandom","access":9,"descriptor":"()Lorg/bukkit/util/Vector;"},{"name":"serialize","access":1,"descriptor":"()Ljava/util/Map;","signature":"()Ljava/util/Map;"},{"name":"deserialize","access":9,"descriptor":"(Ljava/util/Map;)Lorg/bukkit/util/Vector;","signature":"(Ljava/util/Map;)Lorg/bukkit/util/Vector;"},{"name":"clone","access":4161,"descriptor":"()Ljava/lang/Object;","exceptions":["java/lang/CloneNotSupportedException"]}]},{"name":"org/spigotmc/CustomTimingsHandler","version":51,"access":33,"superName":"java/lang/Object","methods":[{"name":"","access":8,"descriptor":"()V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;)V"},{"name":"","access":1,"descriptor":"(Ljava/lang/String;Lorg/spigotmc/CustomTimingsHandler;)V"},{"name":"printTimings","access":9,"descriptor":"(Ljava/io/PrintStream;)V"},{"name":"reload","access":9,"descriptor":"()V"},{"name":"tick","access":9,"descriptor":"()V"},{"name":"startTiming","access":1,"descriptor":"()V"},{"name":"stopTiming","access":1,"descriptor":"()V"},{"name":"reset","access":1,"descriptor":"()V"}]}]} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..1b33c55 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..9251069 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,8 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531 diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..23d15a9 --- /dev/null +++ b/gradlew @@ -0,0 +1,251 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH="\\\"\\\"" + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..db3a6ac --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH= + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..5298eed --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'AAC2' diff --git a/src/main/java/me/konsolas/aac/AAC.java b/src/main/java/me/konsolas/aac/AAC.java new file mode 100644 index 0000000..de3ef54 --- /dev/null +++ b/src/main/java/me/konsolas/aac/AAC.java @@ -0,0 +1,165 @@ +package me.konsolas.aac; + +import com.comphenix.protocol.ProtocolLibrary; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Random; +import me.konsolas.aac.api.AACAPI; +import me.konsolas.aac.components.AACCommandExecutor; +import me.konsolas.aac.components.AACLogger; +import me.konsolas.aac.components.CombatTracker; +import me.konsolas.aac.components.PlayerStateTracker; +import me.konsolas.aac.components.PunishmentManager; +import me.konsolas.aac.components.SetbackManager; +import me.konsolas.aac.components.TPSManager; +import me.konsolas.aac.hooks.McMMO; +import me.konsolas.aac.lang.Messages; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerLoginEvent; +import org.bukkit.event.player.PlayerLoginEvent.Result; +import org.bukkit.plugin.java.JavaPlugin; + +public class AAC extends JavaPlugin implements Listener { + public static volatile AACAPI api = null; + public static final String PLUGIN_NAME = "AAC"; + public static String messagePrefix = "§6[AAC] §r> §6"; + public static Random random = new Random(); + public AAC plugin = this; + public Player debugPlayer; + public AACLogger logger; + public Messages messages; + public TPSManager tpsManager; + public PlayerStateTracker playerStateTracker; + public SetbackManager setbackManager; + public CheckManager checkManager; + public CombatTracker combatTracker; + public PunishmentManager punishmentManager; + public AACCommandExecutor commandExecutor; + private final SimpleDateFormat logFilenameFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss"); + private final SimpleDateFormat logTimestampFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss.SSS"); + private FileWriter logFileWriter; + private PrintWriter logWriter; + + @Override + public void onEnable() { + Bukkit.getLogger().info("[AAC] IMPORTANT"); + this.getServer().getPluginManager().registerEvents(this, this); + this.getLogger().warning("[AAC] IMPORTANT"); + this.getLogger().warning("[AAC] IMPORTANT"); + this.getLogger().warning("[AAC] THIS IS THE 1.10 PRE-RELEASE FOR AAC. EXPECT BUGS TO BE FIXED"); + this.getLogger().warning("[AAC] IMPORTANT"); + this.getLogger().warning("[AAC] IMPORTANT"); + + this.commandExecutor = new AACCommandExecutor(this); + this.checkManager = new CheckManager(this); + this.getServer().getPluginManager().registerEvents(this.commandExecutor, this); + if (this.getConfig().getBoolean("usetps")) { + this.tpsManager = new TPSManager(this); + } + + this.logger = new AACLogger(this); + this.saveDefaultConfig(); + this.openLogFile(); + this.reloadConfig(); + this.punishmentManager = new PunishmentManager(this); + this.registerCommands(); + this.getServer().getScheduler().scheduleSyncDelayedTask(this, new EnableSequence(this), 20L); + this.setbackManager = new SetbackManager(this); + this.getServer().getPluginManager().registerEvents(this.setbackManager, this); + } + + @EventHandler + public void onPlayerLogin(PlayerLoginEvent event) { + if (api == null) { + event.disallow(Result.KICK_OTHER, "Server still starting up"); + } + } + + public void initializeHooks() { + if (Bukkit.getServer().getPluginManager().getPlugin("mcMMO") != null) { + Bukkit.getLogger().info("[AAC] Detected mcMMO, setting up hooks..."); + Bukkit.getServer().getPluginManager().registerEvents(new McMMO(this), this); + } + } + + @Override + public void onDisable() { + if (this.punishmentManager != null) { + this.punishmentManager.saveBannedPlayers(); + } + + this.closeLogFile(); + } + + public void openLogFile() { + try { + if (!this.getConfig().getBoolean("log_file", true)) { + Bukkit.getLogger().warning("[AAC] Logger functionality has been disabled in the configuration file."); + return; + } + + File logsDir = new File(this.getDataFolder(), "logs"); + if (!logsDir.exists()) { + logsDir.mkdir(); + } + + Date now = new Date(); + File logFile = new File(this.getDataFolder(), "logs/aac_" + this.logFilenameFormat.format(now) + ".log"); + if (!logFile.exists()) { + logFile.createNewFile(); + } + + this.logFileWriter = new FileWriter(logFile, true); + this.logWriter = new PrintWriter(this.logFileWriter); + } catch (IOException ex) { + Bukkit.getLogger().severe("[AAC] Error: Could not setup log file for writing"); + Bukkit.getLogger().severe("[AAC] " + ex.getMessage()); + Bukkit.getLogger().severe("[AAC] Logger functionality has been disabled."); + } + } + + private void closeLogFile() { + try { + Bukkit.getLogger().info("[AAC] Saving log file..."); + this.logWriter.close(); + } catch (NullPointerException ex) { + Bukkit.getLogger().warning("[AAC] Could not save log file as none was created."); + } + } + + public void writeLog(String message) { + if (this.logWriter != null) { + Date now = new Date(); + this.logWriter.println("[" + this.logTimestampFormat.format(now) + "] " + message); + this.logWriter.flush(); + } + } + + public void reloadPlugin() { + Bukkit.getLogger().info("[AAC] Beginning disable..."); + Bukkit.getServer().getPluginManager().disablePlugin(this); + ProtocolLibrary.getProtocolManager().removePacketListeners(this); + Bukkit.getServer().getPluginManager().enablePlugin(this); + } + + private void registerCommands() { + this.getCommand("aac").setExecutor(this.commandExecutor); + this.getCommand("aacunban").setExecutor(this.commandExecutor); + this.getCommand("aacban").setExecutor(this.commandExecutor); + this.getCommand("aacadmin").setExecutor(this.commandExecutor); + this.getCommand("aackick").setExecutor(this.commandExecutor); + this.getCommand("aacreload").setExecutor(this.commandExecutor); + this.getCommand("aacdebug").setExecutor(this.commandExecutor); + this.getCommand("aacverbose").setExecutor(this.commandExecutor); + this.getCommand("aacmessage").setExecutor(this.commandExecutor); + this.getCommand("aacstaffnotify").setExecutor(this.commandExecutor); + this.getCommand("aaccrash").setExecutor(this.commandExecutor); + } +} diff --git a/src/main/java/me/konsolas/aac/CheckManager.java b/src/main/java/me/konsolas/aac/CheckManager.java new file mode 100644 index 0000000..32bb44f --- /dev/null +++ b/src/main/java/me/konsolas/aac/CheckManager.java @@ -0,0 +1,251 @@ +package me.konsolas.aac; + +import java.lang.reflect.Constructor; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.HandlerList; +import org.bukkit.event.Listener; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerQuitEvent; + +public class CheckManager implements Listener { + private final Map checks = new HashMap<>(); + private final List disabledChecks = new ArrayList<>(); + private final Set bypassedPlayers = new HashSet<>(); + private final Map bypassRefreshTimes = new HashMap<>(); + private final AAC plugin; + private long currentTick = 0L; + + public CheckManager(AAC plugin) { + this.plugin = plugin; + + for (HackType hackType : HackType.values()) { + this.checks.put(hackType, null); + } + + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new TickTask(this), 1L, 1L); + } + + public boolean enableCheck(HackType hackType, boolean respectDisabled) { + if (this.checks.get(hackType) != null) { + return false; + } + + if (respectDisabled) { + if (this.disabledChecks.contains(hackType)) { + return false; + } + } else { + this.disabledChecks.remove(hackType); + } + + Class detectorClass; + try { + detectorClass = Class.forName("me.konsolas.aac.detectors." + hackType); + } catch (ClassNotFoundException ex) { + this.plugin.logger.log("Failed to initialize " + hackType.getName() + " (class not found)"); + return false; + } + + Constructor constructor = null; + for (Constructor candidate : detectorClass.getDeclaredConstructors()) { + constructor = candidate; + if (constructor.getParameterTypes().length == 1) { + break; + } + } + + if (constructor == null) { + throw new RuntimeException("Could not get valid constuctor"); + } + + Detector detector; + try { + constructor.setAccessible(true); + detector = (Detector) constructor.newInstance(this.plugin); + } catch (Exception ex) { + this.plugin.logger.log("Failed to initialize " + hackType.getName() + " (instance creation failed)"); + ex.printStackTrace(); + return false; + } + + this.checks.put(hackType, detector); + Bukkit.getServer().getPluginManager().registerEvents(detector, this.plugin); + this.plugin.logger.log("(CheckManager) Enabled check " + hackType); + return true; + } + + public boolean disableCheck(HackType hackType, boolean temporary) { + if (!this.isCheckEnabled(hackType)) { + return false; + } + + if (!temporary) { + this.disabledChecks.add(hackType); + } + + Detector detector = this.checks.get(hackType); + detector.destroy(); + HandlerList.unregisterAll(detector); + this.checks.put(hackType, null); + this.plugin.logger.log("(CheckManager) Disabled check " + hackType); + return true; + } + + public void disableAllChecks() { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.plugin.getLogger().info("(CheckManager) Disabling check " + hackType); + this.disableCheck(hackType, false); + } else { + this.plugin.getLogger().info("(CheckManager) Check " + hackType + " is not enabled"); + } + } + } + + public void enableAllChecks() { + for (HackType hackType : HackType.values()) { + this.enableCheck(hackType, true); + } + } + + public Detector getCheck(HackType hackType) { + return this.checks.get(hackType); + } + + public boolean isCheckEnabled(HackType hackType) { + return this.checks.get(hackType) != null; + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerKick(PlayerKickEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getCheck(hackType).onPlayerKick(event); + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerJoin(PlayerJoinEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getCheck(hackType).onPlayerJoin(event); + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerQuit(PlayerQuitEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getCheck(hackType).onPlayerQuit(event); + } + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.LOW) + public void onPlayerMove(PlayerMoveEvent event) { + boolean bypassed = this.isBypassed(event.getPlayer()); + boolean fromOnGround = GroundUtil.isOnGround(event.getFrom()); + boolean toOnGround = GroundUtil.isOnGround(event.getTo()); + this.plugin.playerStateTracker.updateGroundState(event, fromOnGround, toOnGround); + + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + Detector detector = this.getCheck(hackType); + if (detector instanceof MoveListener) { + MoveListener listener = (MoveListener) detector; + if (listener.shouldProcessMove(event) && !bypassed) { + listener.onPlayerMove(event, fromOnGround, toOnGround); + } + } + } + } + + if (this.plugin.setbackManager.shouldProcessMove(event) && !bypassed) { + this.plugin.setbackManager.onPlayerMove(event, fromOnGround, toOnGround); + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + boolean bypassed = event.getDamager().hasPermission("AAC.bypass") || event.getEntity().hasPermission("AAC.bypass"); + + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + Detector detector = this.getCheck(hackType); + if (detector instanceof DamageListener) { + DamageListener listener = (DamageListener) detector; + if (listener.shouldProcessDamage(event) && !bypassed) { + listener.onEntityDamageByEntity(event); + } + } + } + } + } + + public boolean isBypassed(Player player) { + UUID playerId = player.getUniqueId(); + Long nextRefresh = this.bypassRefreshTimes.get(playerId); + if (nextRefresh == null) { + this.bypassRefreshTimes.put(playerId, 0L); + nextRefresh = 0L; + } + + if (System.currentTimeMillis() < nextRefresh) { + return this.bypassedPlayers.contains(playerId); + } + + boolean bypassed = player.hasPermission("AAC.bypass"); + if (bypassed) { + this.bypassedPlayers.add(playerId); + } else { + this.bypassedPlayers.remove(playerId); + } + + this.bypassRefreshTimes.put(playerId, System.currentTimeMillis() + AAC.random.nextInt(20000) + 20000L); + return bypassed; + } + + public void clearBypassCache() { + this.bypassRefreshTimes.clear(); + this.bypassedPlayers.clear(); + } + + private static final class TickTask implements Runnable { + private final CheckManager checkManager; + + private TickTask(CheckManager checkManager) { + this.checkManager = checkManager; + } + + @Override + public void run() { + this.checkManager.currentTick++; + + for (HackType hackType : HackType.values()) { + if (this.checkManager.isCheckEnabled(hackType)) { + this.checkManager.getCheck(hackType).updateTick(this.checkManager.currentTick); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/EnableSequence.java b/src/main/java/me/konsolas/aac/EnableSequence.java new file mode 100644 index 0000000..c33a5b8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/EnableSequence.java @@ -0,0 +1,48 @@ +package me.konsolas.aac; + +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.api.internal.AACAPIImpl; +import me.konsolas.aac.components.CombatTracker; +import me.konsolas.aac.components.PlayerStateTracker; +import me.konsolas.aac.lang.Messages; +import me.konsolas.aac.util.TPS; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; + +public class EnableSequence implements Runnable { + private final AAC plugin; + + public EnableSequence(AAC plugin) { + this.plugin = plugin; + } + + @Override + public void run() { + this.plugin.getLogger().info("Beginning Enable..."); + this.plugin.initializeHooks(); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.checkManager, this.plugin); + this.plugin.getLogger().info("Checking config file..."); + + for (HackType hackType : HackType.values()) { + if (this.plugin.getConfig().getBoolean(hackType.getName() + ".enabled")) { + this.plugin.getLogger().info("(CheckManager) Enabling check " + hackType); + this.plugin.checkManager.enableCheck(hackType, false); + } else { + this.plugin.getLogger().info("(CheckManager) Check " + hackType + " is disabled"); + } + } + + this.plugin.getLogger().info("Starting API..."); + AAC.api = new AACAPIImpl(this.plugin); + this.plugin.combatTracker = new CombatTracker(this.plugin); + this.plugin.playerStateTracker = new PlayerStateTracker(this.plugin); + this.plugin.messages = new Messages(this.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.combatTracker, this.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.playerStateTracker, this.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.punishmentManager, this.plugin); + this.plugin.logger.log("AAC has been enabled"); + this.plugin.getLogger().info("AAC has been enabled."); + AAC.messagePrefix = ChatColor.translateAlternateColorCodes('&', this.plugin.messages.getMessage("prefix")); + TPS.startMonitoring(this.plugin); + } +} diff --git a/src/main/java/me/konsolas/aac/api/AACAPI.java b/src/main/java/me/konsolas/aac/api/AACAPI.java new file mode 100644 index 0000000..5f498ed --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/AACAPI.java @@ -0,0 +1,29 @@ +package me.konsolas.aac.api; + +import org.bukkit.entity.Player; + +public interface AACAPI { + void reloadAAC(); + + void reloadPermissionCache(); + + void invalidateMovementCaches(); + + void enableCheck(HackType hackType); + + void disableCheck(HackType hackType); + + boolean isEnabled(HackType hackType); + + boolean isBypassed(Player player); + + double getTPS(); + + int getPing(Player player); + + int getViolationLevel(Player player, HackType hackType); + + void setViolationLevel(Player player, HackType hackType, int level); + + boolean isPlayerOnGround(Player player); +} diff --git a/src/main/java/me/konsolas/aac/api/AACAPIProvider.java b/src/main/java/me/konsolas/aac/api/AACAPIProvider.java new file mode 100644 index 0000000..69e1442 --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/AACAPIProvider.java @@ -0,0 +1,21 @@ +package me.konsolas.aac.api; + +import me.konsolas.aac.AAC; + +public final class AACAPIProvider { + private AACAPIProvider() { + throw new AssertionError(); + } + + public static AACAPI getAPI() { + if (AAC.api == null) { + throw new APINotLoadedException(); + } else { + return AAC.api; + } + } + + public static boolean isAPILoaded() { + return AAC.api != null; + } +} diff --git a/src/main/java/me/konsolas/aac/api/APINotLoadedException.java b/src/main/java/me/konsolas/aac/api/APINotLoadedException.java new file mode 100644 index 0000000..1598670 --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/APINotLoadedException.java @@ -0,0 +1,4 @@ +package me.konsolas.aac.api; + +public final class APINotLoadedException extends RuntimeException { +} diff --git a/src/main/java/me/konsolas/aac/api/HackType.java b/src/main/java/me/konsolas/aac/api/HackType.java new file mode 100644 index 0000000..7f3abf9 --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/HackType.java @@ -0,0 +1,57 @@ +package me.konsolas.aac.api; + +public enum HackType { + SPAM("chat.Spam", "spam"), + COMBATIMPOSSIBLE("combat.CombatImpossible", "combatimpossible"), + ANGLE("combat.Angle", "angle"), + CRITICALS("combat.Criticals", "criticals"), + FASTBOW("combat.Fastbow", "fastbow"), + FIGHTSPEED("combat.FightSpeed", "fightspeed"), + FORCEFIELD("combat.Forcefield", "forcefield"), + KNOCKBACK("combat.Knockback", "knockback"), + REACH("combat.Reach", "reach"), + REGEN("combat.Regen", "regen"), + FASTUSE("combat.FastUse", "fastuse"), + KILLAURA("combat.KillauraCombined", "killaura"), + BADPACKETS("movement.BadPackets", "badpackets"), + GLIDE("movement.Glide", "glide"), + NORMALMOVEMENTS("movement.NormalMovements", "normalmovements"), + SPEED("movement.Speed", "speed"), + PHASE("movement.Phase", "phase"), + FLY("movement.Fly", "fly"), + NOFALL("movement.NoFall", "nofall"), + CLIMB("movement.Climb", "climb"), + JESUS("movement.Jesus", "jesus"), + ELYTRAMOVE("movement.ElytraMove", "elytramove"), + BOATFLY("movement.BoatFly", "boatfly"), + HEADROLL("movement.HeadRoll", "headroll"), + FASTBREAK("world.FastBreak", "fastbreak"), + FASTPLACE("world.FastPlace", "fastplace"), + NUKER("world.Nuker", "nuker"), + NOSWING("world.NoSwing", "noswing"), + IMPOSSIBLEINTERACT("world.ImpossibleInteract", "impossibleinteract"), + PLAYERRADAR("world.PlayerRadar", "playerradar"); + + private final String checkPath; + private final String name; + private final int id; + + HackType(String checkPath, String name) { + this.checkPath = checkPath; + this.name = name; + this.id = this.ordinal(); + } + + @Override + public String toString() { + return this.checkPath; + } + + public String getName() { + return this.name; + } + + public int getId() { + return this.id; + } +} diff --git a/src/main/java/me/konsolas/aac/api/PlayerViolationCommandEvent.java b/src/main/java/me/konsolas/aac/api/PlayerViolationCommandEvent.java new file mode 100644 index 0000000..51ab7a8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/PlayerViolationCommandEvent.java @@ -0,0 +1,50 @@ +package me.konsolas.aac.api; + +import org.bukkit.entity.Player; +import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; +import org.bukkit.event.player.PlayerEvent; + +public final class PlayerViolationCommandEvent extends PlayerEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); + private boolean cancelled; + private final HackType hackType; + private String command; + + public PlayerViolationCommandEvent(Player player, HackType hackType, String command) { + super(player); + this.hackType = hackType; + this.command = command; + } + + public static HandlerList getHandlerList() { + return handlers; + } + + public String getCommand() { + return this.command; + } + + public void setCommand(String command) { + this.command = command; + } + + public HackType getHackType() { + return this.hackType; + } + + @Override + public boolean isCancelled() { + return this.cancelled; + } + + @Override + public void setCancelled(boolean cancelled) { + this.cancelled = cancelled; + } + + @Override + public HandlerList getHandlers() { + return handlers; + } +} diff --git a/src/main/java/me/konsolas/aac/api/PlayerViolationEvent.java b/src/main/java/me/konsolas/aac/api/PlayerViolationEvent.java new file mode 100644 index 0000000..416a6eb --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/PlayerViolationEvent.java @@ -0,0 +1,52 @@ +package me.konsolas.aac.api; + +import org.bukkit.entity.Player; +import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; +import org.bukkit.event.player.PlayerEvent; + +public final class PlayerViolationEvent extends PlayerEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); + private boolean cancelled; + private final HackType hackType; + private final int violations; + private final String message; + + public PlayerViolationEvent(Player player, HackType hackType, int violations, String message) { + super(player); + this.hackType = hackType; + this.violations = violations; + this.message = message; + } + + public static HandlerList getHandlerList() { + return handlers; + } + + public int getViolations() { + return this.violations; + } + + public HackType getHackType() { + return this.hackType; + } + + public String getMessage() { + return this.message; + } + + @Override + public boolean isCancelled() { + return this.cancelled; + } + + @Override + public void setCancelled(boolean cancelled) { + this.cancelled = cancelled; + } + + @Override + public HandlerList getHandlers() { + return handlers; + } +} diff --git a/src/main/java/me/konsolas/aac/api/internal/AACAPIImpl.java b/src/main/java/me/konsolas/aac/api/internal/AACAPIImpl.java new file mode 100644 index 0000000..e01ceac --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/internal/AACAPIImpl.java @@ -0,0 +1,82 @@ +package me.konsolas.aac.api.internal; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.AACAPI; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.movement.Fly; +import me.konsolas.aac.detectors.movement.Phase; +import me.konsolas.aac.detectors.movement.Speed; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.TPS; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.entity.Player; + +public final class AACAPIImpl implements AACAPI { + private final AAC plugin; + + public AACAPIImpl(AAC plugin) { + this.plugin = plugin; + } + + @Override + public void reloadAAC() { + this.plugin.reloadPlugin(); + } + + @Override + public void reloadPermissionCache() { + this.plugin.checkManager.clearBypassCache(); + } + + @Override + public void invalidateMovementCaches() { + ((Speed) this.plugin.checkManager.getCheck(HackType.SPEED)).clearCaches(); + ((Fly) this.plugin.checkManager.getCheck(HackType.FLY)).clearCaches(); + ((Phase) this.plugin.checkManager.getCheck(HackType.FLY)).clearCaches(); + } + + @Override + public void enableCheck(HackType hackType) { + this.plugin.checkManager.enableCheck(hackType, false); + } + + @Override + public void disableCheck(HackType hackType) { + this.plugin.checkManager.disableCheck(hackType, false); + } + + @Override + public boolean isEnabled(HackType hackType) { + return this.plugin.checkManager.isCheckEnabled(hackType); + } + + @Override + public boolean isBypassed(Player player) { + return this.plugin.checkManager.isBypassed(player); + } + + @Override + public double getTPS() { + return TPS.getTps(); + } + + @Override + public int getPing(Player player) { + return Ping.getPing(player); + } + + @Override + public int getViolationLevel(Player player, HackType hackType) { + return this.plugin.checkManager.getCheck(hackType).getViolationLevel(player); + } + + @Override + public void setViolationLevel(Player player, HackType hackType, int level) { + this.plugin.checkManager.getCheck(hackType).setViolationLevel(player, level); + } + + @Override + public boolean isPlayerOnGround(Player player) { + return GroundUtil.isOnGround(player.getLocation()); + } +} diff --git a/src/main/java/me/konsolas/aac/components/AACCommandExecutor.java b/src/main/java/me/konsolas/aac/components/AACCommandExecutor.java new file mode 100644 index 0000000..9acb625 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/AACCommandExecutor.java @@ -0,0 +1,251 @@ +package me.konsolas.aac.components; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.ListenerPriority; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import me.konsolas.aac.AAC; +import me.konsolas.aac.gui.admin.HomeGUI; +import me.konsolas.aac.util.CrashUtil; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.AsyncPlayerChatEvent; +import org.bukkit.plugin.Plugin; + +public class AACCommandExecutor implements CommandExecutor, Listener { + private final AAC plugin; + private boolean disableVersionCommand = false; + + public AACCommandExecutor(AAC plugin) { + this.plugin = plugin; + this.disableVersionCommand = plugin.getConfig().getBoolean("aac", false); + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new RegisterVersionListenerTask()); + } + + @EventHandler + public void onAsyncPlayerChat(AsyncPlayerChatEvent event) { + if (event.getPlayer().hasPermission("AAC.notify") && event.getMessage().startsWith(this.plugin.messages.getMessage("prefix_to_speak"))) { + event.setCancelled(true); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new StaffChatDispatchTask(event)); + } + } + + @Override + public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + if (command.getName().equalsIgnoreCase("aac")) { + return true; + } + + if (command.getName().equalsIgnoreCase("aacban")) { + if (args.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else if (this.plugin.punishmentManager.isBanned(args[0])) { + sender.sendMessage(AAC.messagePrefix + args[0] + " is already banned"); + return false; + } else if (Bukkit.getPlayer(args[0]) == null) { + sender.sendMessage(AAC.messagePrefix + args[0] + " is not online"); + return false; + } else { + Player target = Bukkit.getPlayer(args[0]); + this.plugin.punishmentManager.banPlayer(target); + target.kickPlayer(AAC.messagePrefix + this.plugin.messages.getMessage("ban_message")); + sender.sendMessage(AAC.messagePrefix + args[0] + " has been banned"); + this.plugin.logger.log(args[0] + " was banned by " + sender.getName()); + return true; + } + } else if (command.getName().equalsIgnoreCase("aacverbose")) { + if (!(sender instanceof Player)) { + sender.sendMessage(AAC.messagePrefix + "You know there's this wonderful thing called a config file... read it"); + return true; + } + + Player player = (Player) sender; + if (this.plugin.logger.verbosePlayerIds.contains(player.getUniqueId())) { + this.plugin.logger.verbosePlayerIds.remove(player.getUniqueId()); + sender.sendMessage(AAC.messagePrefix + "AAC will now give you verbose output."); + } else { + this.plugin.logger.verbosePlayerIds.add(player.getUniqueId()); + sender.sendMessage(AAC.messagePrefix + "AAC will no longer give you verbose output."); + } + + return true; + } else if (command.getName().equalsIgnoreCase("aacunban")) { + if (args.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else if (!this.plugin.punishmentManager.isBanned(args[0])) { + sender.sendMessage(AAC.messagePrefix + args[0] + " is not already banned"); + return false; + } else { + this.plugin.punishmentManager.unbanPlayer(args[0]); + sender.sendMessage(AAC.messagePrefix + args[0] + " has been unbanned"); + this.plugin.logger.log(args[0] + " was unbanned by " + sender.getName()); + return true; + } + } else if (command.getName().equalsIgnoreCase("aacadmin")) { + if (!(sender instanceof Player)) { + sender.sendMessage("You can't see an inventory GUI so..."); + return false; + } else { + new HomeGUI(this.plugin, (Player) sender); + return true; + } + } else if (command.getName().equalsIgnoreCase("aacreload")) { + sender.sendMessage(AAC.messagePrefix + "Reload request has been registered."); + this.plugin.logger.log("Reload requested by " + sender.getName()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ReloadPluginTask(), 1L); + return true; + } else if (command.getName().equalsIgnoreCase("aackick")) { + if (args.length < 2) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } + + Player target = Bukkit.getPlayer(args[0]); + if (target == null) { + sender.sendMessage(args[0] + " is not online."); + return false; + } + + this.plugin.punishmentManager.recordKick(target); + StringBuilder reason = new StringBuilder(); + for (int i = 1; i < args.length; i++) { + reason.append(args[i]); + reason.append(' '); + } + + target.kickPlayer(AAC.messagePrefix + reason.toString()); + if (this.plugin.getConfig().getBoolean("aackick_broadcast")) { + Bukkit.broadcastMessage(AAC.messagePrefix + target.getName() + this.plugin.messages.getMessage("aac_kick_broadcast")); + } + + return true; + } else if (command.getName().equalsIgnoreCase("aacdebug")) { + if (args.length == 0) { + if (this.plugin.debugPlayer != null) { + sender.sendMessage(AAC.messagePrefix + "Ending debug for " + this.plugin.debugPlayer.getName()); + this.plugin.logger.stopDebugLog(); + return true; + } else { + sender.sendMessage(AAC.messagePrefix + "No active debug"); + return false; + } + } else if (args.length != 1) { + sender.sendMessage("Incorrect number of arguments"); + return false; + } else { + Player target = Bukkit.getPlayer(args[0]); + if (target == null) { + sender.sendMessage(args[0] + " is not online"); + return false; + } else { + sender.sendMessage("Type /aacdebug without arguments to end the debug session."); + sender.sendMessage(AAC.messagePrefix + this.plugin.logger.startDebugLog(target)); + return true; + } + } + } else if (command.getName().equalsIgnoreCase("aacmessage")) { + if (args.length < 2) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } + + Player target = Bukkit.getPlayer(args[0]); + if (target == null) { + sender.sendMessage(args[0] + " is not online."); + return false; + } + + StringBuilder message = new StringBuilder(); + for (int i = 1; i < args.length; i++) { + message.append(args[i]); + message.append(' '); + } + + target.sendMessage(AAC.messagePrefix + message.toString()); + return true; + } else if (command.getName().equalsIgnoreCase("aacstaffnotify")) { + StringBuilder message = new StringBuilder(); + for (int i = 0; i < args.length; i++) { + message.append(args[i]); + message.append(' '); + } + + Bukkit.broadcast( + ChatColor.translateAlternateColorCodes('&', this.plugin.messages.getMessage("format")).replace("{sender}", sender.getName()) + + message.toString(), + "AAC.notify" + ); + return true; + } else if (command.getName().equalsIgnoreCase("aaccrash")) { + if (args.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else { + Player target = Bukkit.getPlayer(args[0]); + if (target == null) { + sender.sendMessage(args[0] + " is not online."); + return false; + } else { + CrashUtil.crashPlayer(target, sender); + return true; + } + } + } else { + return false; + } + } + + private final class RegisterVersionListenerTask implements Runnable { + @Override + public void run() { + ProtocolLibrary.getProtocolManager().addPacketListener(new VersionPacketListener(AACCommandExecutor.this.plugin, ListenerPriority.LOWEST, Client.CHAT)); + } + } + + private final class VersionPacketListener extends PacketAdapter { + private VersionPacketListener(Plugin plugin, ListenerPriority priority, PacketType... types) { + super(plugin, priority, types); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacket().getType().equals(Client.CHAT)) { + String message = event.getPacket().getStrings().read(0); + if ((message.equalsIgnoreCase("/aac") || message.startsWith("/aac ")) && !AACCommandExecutor.this.disableVersionCommand) { + event.getPlayer().sendMessage(AAC.messagePrefix + "AAC " + AAC.class.getPackage().getImplementationVersion() + ": Haxor rekker (~konsolas)"); + } + } + } + } + + private final class StaffChatDispatchTask implements Runnable { + private final AsyncPlayerChatEvent event; + + private StaffChatDispatchTask(AsyncPlayerChatEvent event) { + this.event = event; + } + + @Override + public void run() { + String prefix = AACCommandExecutor.this.plugin.messages.getMessage("prefix_to_speak"); + Bukkit.getServer().dispatchCommand(this.event.getPlayer(), "aacstaffnotify " + this.event.getMessage().substring(prefix.length())); + } + } + + private final class ReloadPluginTask implements Runnable { + @Override + public void run() { + AACCommandExecutor.this.plugin.reloadPlugin(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/AACLogger.java b/src/main/java/me/konsolas/aac/components/AACLogger.java new file mode 100644 index 0000000..d82e761 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/AACLogger.java @@ -0,0 +1,151 @@ +package me.konsolas.aac.components; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.TPS; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; + +public class AACLogger { + public List verbosePlayerIds = new ArrayList<>(); + private final SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss.SSS"); + private final AAC plugin; + private FileWriter debugFileWriter; + private PrintWriter debugWriter; + private boolean logToConsole = true; + private boolean verboseEnabled = false; + + public AACLogger(AAC plugin) { + this.plugin = plugin; + this.logToConsole = this.plugin.getConfig().getBoolean("log_console", this.logToConsole); + this.verboseEnabled = this.plugin.getConfig().getBoolean("verbose", this.verboseEnabled); + } + + public void log(String message) { + if (this.verboseEnabled) { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (player.hasPermission("AAC.verbose") && !this.verbosePlayerIds.contains(player.getUniqueId())) { + player.sendMessage(" * §4[AAC] §7" + message); + } + } + } + + if (this.logToConsole && this.verboseEnabled) { + Bukkit.getConsoleSender().sendMessage(" * §4[AAC] §7" + message); + } + + this.plugin.writeLog(message); + if (this.plugin.debugPlayer != null && message.startsWith(this.plugin.debugPlayer.getName())) { + this.writeDebugLog(message); + } + } + + public void logPlayerDebug(Player player, String message) { + if (this.plugin.debugPlayer != null && this.plugin.debugPlayer.getUniqueId().equals(player.getUniqueId())) { + this.writeDebugLog(message); + } + } + + public String startDebugLog(Player player) { + try { + this.openDebugLog(player.getName()); + } catch (IOException ex) { + return "Failed to setup debug log file for writing"; + } + + this.debugWriter.println("AAC debug log for " + player.getName() + " (" + player.getUniqueId() + ")"); + this.debugWriter.println("version: " + AAC.class.getPackage().getImplementationVersion()); + this.debugWriter.println(""); + this.debugWriter.println("- Active configuration"); + + try (BufferedReader reader = new BufferedReader(new FileReader(new File(this.plugin.getDataFolder(), "config.yml")))) { + String line; + while ((line = reader.readLine()) != null) { + if (line.length() > 3 && line.charAt(0) != '#' && line.charAt(3) != '#') { + this.debugWriter.println(line); + } + } + } catch (IOException ex) { + return "Failed to read config.yml"; + } + + this.debugWriter.println(""); + this.plugin.debugPlayer = player; + this.debugWriter.println("- Shorthand reference"); + this.debugWriter.println(" - t:threshold"); + this.debugWriter.println(" - e:expected"); + this.debugWriter.println(" - r:recieved"); + this.debugWriter.println(" - m:maximum"); + this.debugWriter.println(" - n:minimum"); + this.debugWriter.println(" - u:using as"); + this.debugWriter.println(" - f:flags"); + this.debugWriter.println(" - !:not"); + this.debugWriter.println(""); + this.writeDebugLog("--- BEGIN DEBUG DATA ---"); + return "Now saving data for " + player.getName(); + } + + public void stopDebugLog() { + if (this.plugin.debugPlayer != null) { + this.writeDebugLog("--- END DEBUG DATA ---"); + this.plugin.debugPlayer = null; + this.closeDebugLog(); + } + } + + private void openDebugLog(String playerName) throws IOException { + File dataFolder = this.plugin.getDataFolder(); + if (!dataFolder.exists()) { + dataFolder.mkdir(); + } + + File debugFile = new File(dataFolder, playerName + ".debug.log"); + if (!debugFile.exists()) { + debugFile.createNewFile(); + } else { + debugFile.delete(); + debugFile.createNewFile(); + } + + this.debugFileWriter = new FileWriter(debugFile, true); + this.debugWriter = new PrintWriter(this.debugFileWriter); + } + + private void closeDebugLog() { + try { + Bukkit.getLogger().info("[AAC] Saving log file..."); + this.debugWriter.close(); + } catch (NullPointerException ex) { + Bukkit.getLogger().warning("[AAC] Could not save log file as none was created."); + } + } + + public void writeDebugLog(String message) { + if (this.debugWriter != null) { + Date now = new Date(); + this.debugWriter.println( + "at " + + this.timeFormat.format(now) + + ": " + + message + + " [ping:" + + Ping.getPing(this.plugin.debugPlayer) + + " tps:" + + Math.round(TPS.getTps() * 1000.0) / 1000.0 + + "]" + ); + this.debugWriter.flush(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/CombatTracker.java b/src/main/java/me/konsolas/aac/components/CombatTracker.java new file mode 100644 index 0000000..1f089aa --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/CombatTracker.java @@ -0,0 +1,102 @@ +package me.konsolas.aac.components; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.Bukkit; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.java.JavaPlugin; + +public class CombatTracker implements Listener { + private int combatDurationTicks = 50; + private boolean punishCombatLoggers = true; + private final ExpiringMap combatPartners; + private final List punishedLoggers = new ArrayList<>(); + private final ExpiringMap recentDamage; + private final Map lastDamageCauses = new HashMap<>(); + private final JavaPlugin plugin; + + public CombatTracker(JavaPlugin plugin) { + this.plugin = plugin; + this.combatDurationTicks = this.plugin.getConfig().getInt("combat_time", this.combatDurationTicks); + this.punishCombatLoggers = this.plugin.getConfig().getBoolean("kill_loggers", this.punishCombatLoggers); + this.combatPartners = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(this.combatDurationTicks * 50L, TimeUnit.MILLISECONDS) + .build(); + this.recentDamage = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(3000L, TimeUnit.MILLISECONDS) + .build(); + } + + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (event.getDamager().getType() == EntityType.PLAYER) { + this.combatPartners.put(event.getDamager().getUniqueId(), event.getEntity().getUniqueId()); + this.combatPartners.resetExpiration(event.getDamager().getUniqueId()); + } + + if (event.getEntity().getType() == EntityType.PLAYER) { + this.combatPartners.put(event.getEntity().getUniqueId(), event.getDamager().getUniqueId()); + this.combatPartners.resetExpiration(event.getEntity().getUniqueId()); + } + } + + @EventHandler + public synchronized void onEntityDamage(EntityDamageEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER) { + this.recentDamage.put(event.getEntity().getUniqueId(), true); + this.recentDamage.resetExpiration(event.getEntity().getUniqueId()); + this.lastDamageCauses.put(event.getEntity().getUniqueId(), event.getCause()); + } + } + + public boolean isInCombat(Player player) { + return this.combatPartners.containsKey(player.getUniqueId()); + } + + public synchronized boolean wasRecentlyDamaged(Player player) { + return this.recentDamage.containsKey(player.getUniqueId()); + } + + public synchronized DamageCause getLastDamageCause(Player player) { + return this.lastDamageCauses.get(player.getUniqueId()); + } + + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event) { + if (this.punishCombatLoggers && this.combatPartners.containsKey(event.getPlayer().getUniqueId())) { + Bukkit.broadcastMessage( + AAC.messagePrefix + ((AAC) this.plugin).messages.getMessage("logging_broadcast").replace("{player}", event.getPlayer().getName()) + ); + event.getPlayer().setHealth(0.0); + this.punishedLoggers.add(event.getPlayer().getUniqueId()); + this.combatPartners.remove(event.getPlayer().getUniqueId()); + } + } + + @EventHandler + public void onPlayerJoin(PlayerJoinEvent event) { + if (this.punishCombatLoggers && this.punishedLoggers.contains(event.getPlayer().getUniqueId())) { + event.getPlayer().sendMessage(AAC.messagePrefix + ((AAC) this.plugin).messages.getMessage("killed_for_logging")); + } + + this.punishedLoggers.remove(event.getPlayer().getUniqueId()); + } +} diff --git a/src/main/java/me/konsolas/aac/components/PlayerStateTracker.java b/src/main/java/me/konsolas/aac/components/PlayerStateTracker.java new file mode 100644 index 0000000..8162451 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/PlayerStateTracker.java @@ -0,0 +1,189 @@ +package me.konsolas.aac.components; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import me.konsolas.aac.AAC; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.entity.EntityRegainHealthEvent; +import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; +import org.bukkit.event.player.PlayerAnimationEvent; +import org.bukkit.event.player.PlayerAnimationType; +import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerVelocityEvent; +import org.bukkit.event.world.WorldUnloadEvent; +import org.bukkit.util.Vector; + +public class PlayerStateTracker implements Listener { + private final AAC plugin; + private final Set recentlyLanded = new HashSet<>(); + private final Set recentlyAirborne = new HashSet<>(); + private final Map lastArmSwingTimes = new HashMap<>(); + private final Map lastHealthRegainTimes = new HashMap<>(); + private final Map lastHealthRegainReasons = new HashMap<>(); + private final Map lastInteractionTimes = new HashMap<>(); + private final ConcurrentMap activeVelocities = new ConcurrentHashMap<>(); + private final ConcurrentMap lastVelocityTimes = new ConcurrentHashMap<>(); + private final Map lastMoveLocations = new HashMap<>(); + + public PlayerStateTracker(AAC plugin) { + this.plugin = plugin; + } + + public void updateGroundState(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + UUID playerId = event.getPlayer().getUniqueId(); + if (fromOnGround && !toOnGround) { + this.recentlyAirborne.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearTakeoffGraceTask(playerId), 3L); + } else if (!fromOnGround && toOnGround) { + this.recentlyLanded.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearLandingGraceTask(playerId), 3L); + } + + if (toOnGround) { + this.activeVelocities.remove(playerId); + } else { + Vector velocity = event.getPlayer().getVelocity(); + if (velocity.getY() == 0.0 && velocity.getX() == 0.0 && velocity.getZ() == 0.0) { + this.activeVelocities.remove(playerId); + } + } + + this.lastMoveLocations.put(playerId, event.getFrom()); + } + + @EventHandler + public synchronized void onPlayerVelocity(PlayerVelocityEvent event) { + this.activeVelocities.put(event.getPlayer().getUniqueId(), event.getVelocity()); + this.lastVelocityTimes.put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + + @EventHandler + public void onPlayerAnimation(PlayerAnimationEvent event) { + if (event.getAnimationType() == PlayerAnimationType.ARM_SWING) { + this.lastArmSwingTimes.put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onEntityRegainHealth(EntityRegainHealthEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER) { + this.lastHealthRegainTimes.put(event.getEntity().getUniqueId(), System.currentTimeMillis()); + this.lastHealthRegainReasons.put(event.getEntity().getUniqueId(), event.getRegainReason()); + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerInteract(PlayerInteractEvent event) { + this.lastInteractionTimes.put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onWorldUnload(WorldUnloadEvent event) { + Set toRemove = new HashSet<>(); + + for (Map.Entry entry : this.lastMoveLocations.entrySet()) { + if (entry.getValue().getWorld().equals(event.getWorld())) { + toRemove.add(entry.getKey()); + } + } + + for (UUID playerId : toRemove) { + this.lastMoveLocations.remove(playerId); + } + } + + public void clearTakeoffGrace(Player player) { + this.recentlyAirborne.remove(player.getUniqueId()); + } + + public boolean hasLandingGrace(Player player) { + return this.recentlyLanded.contains(player.getUniqueId()); + } + + public boolean hasTakeoffGrace(Player player) { + return this.recentlyAirborne.contains(player.getUniqueId()); + } + + public synchronized boolean hasActiveVelocity(Player player) { + return this.activeVelocities.containsKey(player.getUniqueId()); + } + + public synchronized Vector getActiveVelocity(Player player) { + return this.activeVelocities.get(player.getUniqueId()); + } + + public synchronized long getLastVelocityTime(Player player) { + Long timestamp = this.lastVelocityTimes.get(player.getUniqueId()); + return timestamp != null ? timestamp : 0L; + } + + public long getLastArmSwingTime(Player player) { + try { + return this.lastArmSwingTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0L; + } + } + + public long getLastHealthRegainTime(Player player) { + try { + return this.lastHealthRegainTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0L; + } + } + + public RegainReason getLastHealthRegainReason(Player player) { + try { + return this.lastHealthRegainReasons.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return RegainReason.CUSTOM; + } + } + + public long getLastInteractionTime(Player player) { + try { + return this.lastInteractionTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0L; + } + } + + private final class ClearTakeoffGraceTask implements Runnable { + private final UUID playerId; + + private ClearTakeoffGraceTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + PlayerStateTracker.this.recentlyAirborne.remove(this.playerId); + } + } + + private final class ClearLandingGraceTask implements Runnable { + private final UUID playerId; + + private ClearLandingGraceTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + PlayerStateTracker.this.recentlyLanded.remove(this.playerId); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/PunishmentManager.java b/src/main/java/me/konsolas/aac/components/PunishmentManager.java new file mode 100644 index 0000000..9d39592 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/PunishmentManager.java @@ -0,0 +1,314 @@ +package me.konsolas.aac.components; + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.logging.Level; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.api.PlayerViolationCommandEvent; +import me.konsolas.aac.internal.Destroyable; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.TPS; +import org.bukkit.Bukkit; +import org.bukkit.configuration.ConfigurationSection; +import org.bukkit.configuration.file.FileConfiguration; +import org.bukkit.configuration.file.YamlConfiguration; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerLoginEvent; +import org.bukkit.event.player.PlayerLoginEvent.Result; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.scheduler.BukkitTask; + +public class PunishmentManager implements Listener, Destroyable { + public Map kickCounts = new HashMap<>(); + private final AAC plugin; + private final BukkitTask thresholdTask; + private int banThreshold = 5; + private int quitGraceTicks = 200; + private final List recentlyQuitPlayers = new ArrayList<>(); + private final Map bannedPlayers = new HashMap<>(); + private final Map> commandThresholds = new HashMap<>(); + private FileConfiguration banConfig = null; + private File banConfigFile = null; + + public PunishmentManager(AAC plugin) { + this.plugin = plugin; + this.banThreshold = this.plugin.getConfig().getInt("ban_threshold", this.banThreshold); + this.quitGraceTicks = this.plugin.getConfig().getInt("kick_ticks", this.quitGraceTicks); + this.saveDefaultBanConfig(); + + for (String entry : this.getBanConfig().getStringList("banned")) { + String[] parts = entry.split(":"); + this.bannedPlayers.put(parts[0], UUID.fromString(parts[1])); + } + + for (HackType hackType : HackType.values()) { + List thresholds = new ArrayList<>(); + ConfigurationSection section = this.plugin.getConfig().getConfigurationSection(hackType.getName() + ".thresholds"); + if (section == null) { + this.plugin.getLogger().warning("(Punisher) WARN: Failed to get thresholds for check " + hackType); + } else { + for (String key : section.getKeys(false)) { + Object value = section.get(key); + + int thresholdLevel; + try { + thresholdLevel = Integer.parseInt(key); + } catch (NumberFormatException ex) { + this.plugin.getLogger().warning("(Punisher) WARN: Failed to parse integer threshold: " + ex.getMessage()); + continue; + } + + if (value instanceof String) { + thresholds.add(new ViolationCommandThreshold(thresholdLevel, section.getString(key))); + } else { + List commands = section.getStringList(key); + if (!commands.isEmpty()) { + for (String command : commands) { + thresholds.add(new ViolationCommandThreshold(thresholdLevel, command)); + } + } else { + this.plugin.getLogger().warning("(Punisher) WARN: Failed to get multiple commands for check " + hackType + ", threshold " + thresholdLevel); + } + } + } + + this.commandThresholds.put(hackType, thresholds); + } + } + + this.thresholdTask = Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(this.plugin, new ViolationThresholdScanTask(), 20L, 17L); + } + + public void saveBannedPlayers() { + List serialized = new ArrayList<>(); + + for (UUID playerId : this.bannedPlayers.values()) { + serialized.add(Bukkit.getOfflinePlayer(playerId).getName() + ":" + playerId); + } + + this.getBanConfig().set("banned", serialized); + this.saveBanConfig(); + } + + public void recordKick(Player player) { + UUID playerId = player.getUniqueId(); + if (this.kickCounts.containsKey(playerId)) { + this.kickCounts.put(playerId, this.kickCounts.get(playerId) + 1); + } else { + this.kickCounts.put(playerId, 1); + } + + if (this.kickCounts.get(playerId) > this.banThreshold && this.banThreshold != -1) { + this.kickCounts.remove(playerId); + + for (String command : this.plugin.getConfig().getString("ban_command").split(";")) { + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), this.formatCommand(command, player)); + } + } + } + + public void banPlayer(Player player) { + this.plugin.logger.log(player.getName() + " has been banned for hacking. (" + player.getUniqueId() + ")"); + this.bannedPlayers.put(player.getName(), player.getUniqueId()); + this.kickCounts.remove(player.getUniqueId()); + } + + private String formatCommand(String command, Player player) { + command = command.replace("{player}", player.getName()); + command = command.replace("{ping}", Ping.getPing(player) + ""); + return command.replace("{tps}", Math.round(TPS.getTps() * 100.0) / 100.0 + ""); + } + + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.recentlyQuitPlayers.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireQuitGraceTask(playerId), this.quitGraceTicks); + } + + @EventHandler + public void onPlayerLogin(PlayerLoginEvent event) { + if (!event.getPlayer().hasPermission("AAC.bypass")) { + UUID playerId = event.getPlayer().getUniqueId(); + if (this.recentlyQuitPlayers.contains(playerId)) { + event.disallow(Result.KICK_OTHER, AAC.messagePrefix + this.plugin.messages.getMessage("relog_message")); + } + + if (!this.kickCounts.containsKey(playerId)) { + this.kickCounts.put(playerId, 0); + } + + if (this.bannedPlayers.values().contains(playerId)) { + event.disallow(Result.KICK_BANNED, AAC.messagePrefix + this.plugin.messages.getMessage("ban_message")); + } + } + } + + public boolean isBanned(String playerName) { + return this.bannedPlayers.containsKey(playerName); + } + + public void unbanPlayer(String playerName) { + this.kickCounts.put(this.bannedPlayers.get(playerName), 0); + this.bannedPlayers.remove(playerName); + } + + public FileConfiguration getBanConfig() { + if (this.banConfig == null) { + this.reloadBanConfig(); + } + + return this.banConfig; + } + + public void reloadBanConfig() { + if (this.banConfigFile == null) { + this.banConfigFile = new File(this.plugin.getDataFolder(), "banned.yml"); + } + + this.banConfig = YamlConfiguration.loadConfiguration(this.banConfigFile); + InputStream defaultStream = this.plugin.getResource("banned.yml"); + if (defaultStream != null) { + InputStreamReader reader = new InputStreamReader(defaultStream, StandardCharsets.UTF_8); + YamlConfiguration defaultConfig = YamlConfiguration.loadConfiguration(reader); + this.banConfig.setDefaults(defaultConfig); + } + } + + public void saveDefaultBanConfig() { + if (this.banConfigFile == null) { + this.banConfigFile = new File(this.plugin.getDataFolder(), "banned.yml"); + } + + if (!this.banConfigFile.exists()) { + this.plugin.saveResource("banned.yml", false); + } + } + + public void saveBanConfig() { + if (this.banConfig != null && this.banConfigFile != null) { + try { + this.getBanConfig().save(this.banConfigFile); + } catch (IOException ex) { + this.plugin.getLogger().log(Level.SEVERE, "Could not save config to " + this.banConfigFile, ex); + } + } + } + + @Override + public void destroy() { + this.thresholdTask.cancel(); + this.saveBanConfig(); + } + + private final class ViolationCommandThreshold { + private final int violationThreshold; + private final String commandTemplate; + private final Map armedPlayers = new HashMap<>(); + + private ViolationCommandThreshold(int violationThreshold, String commandTemplate) { + this.violationThreshold = violationThreshold; + this.commandTemplate = commandTemplate; + } + + private void execute(Player player, HackType hackType) { + PlayerViolationCommandEvent event = new PlayerViolationCommandEvent(player, hackType, this.commandTemplate); + Bukkit.getServer().getPluginManager().callEvent(event); + if (!event.isCancelled()) { + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), PunishmentManager.this.formatCommand(event.getCommand(), player)); + } + } + + private boolean shouldTrigger(Player player, int violationLevel) { + UUID playerId = player.getUniqueId(); + if (!this.armedPlayers.containsKey(playerId)) { + this.armedPlayers.put(playerId, true); + } + + if (this.armedPlayers.get(playerId)) { + if (violationLevel > this.violationThreshold) { + this.armedPlayers.put(playerId, false); + return true; + } + } else if (violationLevel < this.violationThreshold) { + this.armedPlayers.put(playerId, true); + } + + return false; + } + + private String getCommandTemplate() { + return this.commandTemplate; + } + } + + private final class ViolationThresholdScanTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + for (HackType hackType : HackType.values()) { + if (PunishmentManager.this.plugin.checkManager.isCheckEnabled(hackType)) { + int violationLevel = PunishmentManager.this.plugin.checkManager.getCheck(hackType).getViolationLevel(player); + List thresholds = PunishmentManager.this.commandThresholds.get(hackType); + if (thresholds != null) { + for (ViolationCommandThreshold threshold : thresholds) { + if (threshold.shouldTrigger(player, violationLevel)) { + Bukkit.getServer() + .getScheduler() + .scheduleSyncDelayedTask(PunishmentManager.this.plugin, new ExecuteViolationCommandTask(hackType, threshold, player)); + } + } + } + } + } + } + } + } + + private final class ExecuteViolationCommandTask implements Runnable { + private final HackType hackType; + private final ViolationCommandThreshold threshold; + private final Player player; + + private ExecuteViolationCommandTask(HackType hackType, ViolationCommandThreshold threshold, Player player) { + this.hackType = hackType; + this.threshold = threshold; + this.player = player; + } + + @Override + public void run() { + PunishmentManager.this.plugin.logger.log( + "(Punisher) ->" + + this.hackType.toString() + + ": Dispatching command " + + PunishmentManager.this.formatCommand(this.threshold.getCommandTemplate(), this.player) + ); + this.threshold.execute(this.player, this.hackType); + } + } + + private final class ExpireQuitGraceTask implements Runnable { + private final UUID playerId; + + private ExpireQuitGraceTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + PunishmentManager.this.recentlyQuitPlayers.remove(this.playerId); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/SetbackManager.java b/src/main/java/me/konsolas/aac/components/SetbackManager.java new file mode 100644 index 0000000..0efd912 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/SetbackManager.java @@ -0,0 +1,146 @@ +package me.konsolas.aac.components; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import me.konsolas.aac.AAC; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import org.bukkit.Location; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerChangedWorldEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.world.WorldUnloadEvent; +import org.bukkit.potion.PotionEffectType; + +public class SetbackManager implements Listener, MoveListener { + private final AAC plugin; + private final Map safeLocations = new ConcurrentHashMap<>(); + private final Map pendingMoveEvents = new ConcurrentHashMap<>(); + private final Map setbackChecks = new ConcurrentHashMap<>(); + + public SetbackManager(AAC plugin) { + this.plugin = plugin; + } + + public void beginSetback(Detector detector, Player player) { + this.setbackChecks.put(player.getUniqueId(), detector); + } + + public void endSetback(Player player) { + this.setbackChecks.remove(player.getUniqueId()); + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.MONITOR) + public void onPlayerTeleport(PlayerTeleportEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + if (this.setbackChecks.containsKey(playerId) && event.getCause() == TeleportCause.UNKNOWN) { + this.setbackChecks.remove(playerId); + } else { + if (event.getTo().equals(event.getFrom()) && event.getCause() == TeleportCause.UNKNOWN) { + return; + } + + this.safeLocations.put(playerId, event.getTo().clone()); + } + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.MONITOR) + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getRespawnLocation().clone()); + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.MONITOR) + public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { + this.safeLocations.remove(event.getPlayer().getUniqueId()); + } + + public Detector getSetbackCheck(Player player) { + return this.setbackChecks.get(player.getUniqueId()); + } + + private void saveDestination(PlayerMoveEvent event) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getTo().clone()); + } + + private void saveOrigin(PlayerMoveEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + if (this.pendingMoveEvents.containsKey(playerId)) { + PlayerMoveEvent previousMove = this.pendingMoveEvents.get(playerId); + double previousDeltaY = previousMove.getTo().getY() - previousMove.getFrom().getY(); + double currentDeltaY = event.getTo().getY() - event.getFrom().getY(); + if (previousDeltaY < 0.0 && currentDeltaY > 0.0) { + this.safeLocations.put(playerId, event.getFrom().clone()); + } + } + } + + private void updateSafeLocation(PlayerMoveEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + if (this.safeLocations.containsKey(playerId)) { + if (event.getTo().getY() < this.safeLocations.get(playerId).getY() + && Math.abs(event.getFrom().getY() - event.getTo().getY()) < 3.0) { + this.safeLocations.put(playerId, event.getTo().clone()); + return; + } + + this.pendingMoveEvents.put(playerId, event); + } else { + this.safeLocations.put(playerId, event.getPlayer().getLocation()); + } + } + + public Location getSafeLocation(Player player) { + Location location = this.safeLocations.get(player.getUniqueId()); + return location != null ? location : player.getLocation(); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + if (fromOnGround && toOnGround) { + this.saveDestination(event); + } else { + if (fromOnGround) { + this.saveOrigin(event); + } else if (toOnGround) { + this.updateSafeLocation(event); + } + + if (event.getPlayer().hasPotionEffect(PotionEffectType.LEVITATION)) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + } + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + if (event.getPlayer().isFlying()) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + + return true; + } + + @EventHandler + public void onWorldUnload(WorldUnloadEvent event) { + Set toRemove = new HashSet<>(); + + for (Map.Entry entry : this.safeLocations.entrySet()) { + if (entry.getValue().getWorld().equals(event.getWorld())) { + toRemove.add(entry.getKey()); + } + } + + for (UUID playerId : toRemove) { + this.safeLocations.remove(playerId); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/TPSManager.java b/src/main/java/me/konsolas/aac/components/TPSManager.java new file mode 100644 index 0000000..79fd6cf --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/TPSManager.java @@ -0,0 +1,57 @@ +package me.konsolas.aac.components; + +import java.util.HashSet; +import java.util.Set; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.util.TPS; +import org.bukkit.Bukkit; + +public class TPSManager { + private final AAC plugin; + private final Set managedChecks = new HashSet<>(); + + public TPSManager(AAC plugin) { + this.plugin = plugin; + + for (HackType hackType : HackType.values()) { + if (this.plugin.getConfig().getBoolean(hackType.getName() + ".enabled")) { + this.managedChecks.add(hackType); + } + } + + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new LagCompensationTask(), 20L, 13L); + } + + private final class LagCompensationTask implements Runnable { + @Override + public void run() { + double tps = TPS.getTps(); + if (tps > 18.5) { + for (HackType hackType : TPSManager.this.managedChecks) { + TPSManager.this.plugin.checkManager.enableCheck(hackType, true); + } + } else { + TPSManager.this.plugin.logger.log("(TPSManager) TPS dropped to " + tps); + if (tps < 17.5) { + TPSManager.this.plugin.checkManager.disableCheck(HackType.BADPACKETS, true); + } + + if (tps < 17.0) { + TPSManager.this.plugin.checkManager.disableCheck(HackType.FIGHTSPEED, true); + TPSManager.this.plugin.checkManager.disableCheck(HackType.REACH, true); + TPSManager.this.plugin.checkManager.disableCheck(HackType.ANGLE, true); + } else if (tps < 16.0) { + TPSManager.this.plugin.checkManager.disableCheck(HackType.NORMALMOVEMENTS, true); + } else if (tps < 13.0) { + TPSManager.this.plugin.logger.log("(TPSManager) TPS is critical"); + TPSManager.this.plugin.checkManager.disableCheck(HackType.FLY, true); + TPSManager.this.plugin.checkManager.disableCheck(HackType.GLIDE, true); + } else if (tps < 10.0) { + TPSManager.this.plugin.checkManager.disableCheck(HackType.FORCEFIELD, true); + TPSManager.this.plugin.checkManager.disableCheck(HackType.SPEED, true); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/DamageListener.java b/src/main/java/me/konsolas/aac/detectors/DamageListener.java new file mode 100644 index 0000000..26793f7 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/DamageListener.java @@ -0,0 +1,9 @@ +package me.konsolas.aac.detectors; + +import org.bukkit.event.entity.EntityDamageByEntityEvent; + +public interface DamageListener { + void onEntityDamageByEntity(EntityDamageByEntityEvent event); + + boolean shouldProcessDamage(EntityDamageByEntityEvent event); +} diff --git a/src/main/java/me/konsolas/aac/detectors/Detector.java b/src/main/java/me/konsolas/aac/detectors/Detector.java new file mode 100644 index 0000000..8ac3361 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/Detector.java @@ -0,0 +1,154 @@ +package me.konsolas.aac.detectors; + +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketListener; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.api.PlayerViolationEvent; +import me.konsolas.aac.internal.Destroyable; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.TPS; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; + +public abstract class Detector implements Listener, Destroyable { + protected long currentTick = 0L; + protected final AAC plugin; + public Map violationLevels = new HashMap<>(); + public Map recentViolationCounts = new HashMap<>(); + public Map totalViolationCounts = new HashMap<>(); + protected List scheduledTaskIds = new ArrayList<>(); + protected List packetListeners = new ArrayList<>(); + + public Detector(AAC plugin) { + this.initializeOnlinePlayers(); + this.plugin = plugin; + } + + public int getViolationLevel(Player player) { + return this.violationLevels.get(player.getUniqueId()) != null ? this.violationLevels.get(player.getUniqueId()) : 0; + } + + public int getRecentViolationCount(Player player) { + if (player == null) { + return 0; + } else { + return this.recentViolationCounts.get(player.getUniqueId()) != null ? this.recentViolationCounts.get(player.getUniqueId()) : 0; + } + } + + public int getTotalViolationCount(Player player) { + return this.totalViolationCounts.get(player.getUniqueId()) != null ? this.totalViolationCounts.get(player.getUniqueId()) : 0; + } + + public final void initializeOnlinePlayers() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.violationLevels.put(player.getUniqueId(), 0); + this.recentViolationCounts.put(player.getUniqueId(), 0); + } + } + + @Override + public void destroy() { + for (int taskId : this.scheduledTaskIds) { + Bukkit.getServer().getScheduler().cancelTask(taskId); + } + + for (PacketListener listener : this.packetListeners) { + ProtocolLibrary.getProtocolManager().removePacketListener(listener); + } + } + + protected boolean recordViolation(UUID playerId, int amount, HackType hackType, String message) { + Player player = Bukkit.getPlayer(playerId); + PlayerViolationEvent violationEvent = new PlayerViolationEvent(player, hackType, this.getRecentViolationCount(Bukkit.getPlayer(playerId)), message); + Bukkit.getServer().getPluginManager().callEvent(violationEvent); + if (!violationEvent.isCancelled()) { + if (!this.recentViolationCounts.containsKey(playerId)) { + this.recentViolationCounts.put(playerId, 1); + } + + if (!this.totalViolationCounts.containsKey(playerId)) { + this.totalViolationCounts.put(playerId, 1); + } + + if (!this.violationLevels.containsKey(playerId)) { + this.violationLevels.put(playerId, 1); + } + + this.violationLevels.put(playerId, this.violationLevels.get(playerId) + amount); + this.recentViolationCounts.put(playerId, this.recentViolationCounts.get(playerId) + 1); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireRecentViolationTask(playerId), 1200L); + this.totalViolationCounts.put(playerId, this.totalViolationCounts.get(playerId) + 1); + this.plugin + .logger + .log( + message + + " [ping:" + + Ping.getPing(player) + + " tps:" + + Math.round(TPS.getTps() * 100.0) / 100.0 + + "] VL:" + + this.violationLevels.get(playerId) + ); + return true; + } else { + return false; + } + } + + protected void decreaseViolationLevel(UUID playerId, int amount) { + if (this.violationLevels.containsKey(playerId)) { + int updatedLevel = this.violationLevels.get(playerId) - amount; + this.violationLevels.put(playerId, updatedLevel < 0 ? 0 : updatedLevel); + } else { + this.violationLevels.put(playerId, 0); + } + } + + public void setViolationLevel(Player player, int level) { + this.violationLevels.put(player.getUniqueId(), level); + } + + public void onPlayerJoin(PlayerJoinEvent event) { + this.violationLevels.put(event.getPlayer().getUniqueId(), 0); + this.recentViolationCounts.put(event.getPlayer().getUniqueId(), 0); + } + + public void onPlayerQuit(PlayerQuitEvent event) { + this.violationLevels.remove(event.getPlayer().getUniqueId()); + this.recentViolationCounts.put(event.getPlayer().getUniqueId(), 0); + } + + public void onPlayerKick(PlayerKickEvent event) { + this.violationLevels.remove(event.getPlayer().getUniqueId()); + this.recentViolationCounts.put(event.getPlayer().getUniqueId(), 0); + } + + public void updateTick(long tick) { + this.currentTick = tick; + } + + private final class ExpireRecentViolationTask implements Runnable { + private final UUID playerId; + + private ExpireRecentViolationTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + int updatedCount = Detector.this.recentViolationCounts.get(this.playerId) - 1; + Detector.this.recentViolationCounts.put(this.playerId, updatedCount < 0 ? 0 : updatedCount); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/MoveListener.java b/src/main/java/me/konsolas/aac/detectors/MoveListener.java new file mode 100644 index 0000000..434759d --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/MoveListener.java @@ -0,0 +1,9 @@ +package me.konsolas.aac.detectors; + +import org.bukkit.event.player.PlayerMoveEvent; + +public interface MoveListener { + void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround); + + boolean shouldProcessMove(PlayerMoveEvent event); +} diff --git a/src/main/java/me/konsolas/aac/detectors/chat/Spam.java b/src/main/java/me/konsolas/aac/detectors/chat/Spam.java new file mode 100644 index 0000000..f7cf5a5 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/chat/Spam.java @@ -0,0 +1,164 @@ +package me.konsolas.aac.detectors.chat; + +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.AsyncPlayerChatEvent; + +public final class Spam extends Detector { + private final ConcurrentMap messageCounts = new ConcurrentHashMap<>(); + private final ExpiringMap lastMessages; + private final ExpiringMap suspiciousMessages; + private final ExpiringMap recentlyWarnedPlayers; + private final ExpiringMap chatCooldowns; + private volatile List whitelist = new ArrayList<>(); + private int messageLimit = 5; + private int chatSpeed = 10; + + public Spam(AAC plugin) { + super(plugin); + this.messageLimit = this.plugin.getConfig().getInt("spam.message_limit"); + this.whitelist = this.plugin.getConfig().getStringList("spam.whitelist"); + this.chatSpeed = this.plugin.getConfig().getInt("spam.chat_speed"); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetChatCountTask(), 200L, 200L); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new SpamViolationDecayTask(), 200L, 300L); + this.lastMessages = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(10L, TimeUnit.SECONDS) + .build(); + this.suspiciousMessages = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(5L, TimeUnit.SECONDS) + .build(); + this.recentlyWarnedPlayers = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(10L, TimeUnit.SECONDS) + .build(); + this.chatCooldowns = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.CREATED) + .expiration(this.chatSpeed * 50L, TimeUnit.MILLISECONDS) + .build(); + } + + @EventHandler + public void onAsyncPlayerChat(AsyncPlayerChatEvent event) { + if (!this.plugin.checkManager.isBypassed(event.getPlayer())) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (this.chatCooldowns.containsKey(playerId)) { + if (this.recordViolation(playerId, 5, HackType.SPAM, player.getName() + " failed Spam: tried to chat too quickly")) { + event.setCancelled(true); + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_too_fast")); + } + } else { + if (this.messageCounts.containsKey(playerId)) { + int count = this.messageCounts.get(playerId) + 1; + this.messageCounts.put(playerId, count); + if (count == this.messageLimit) { + if (this.recentlyWarnedPlayers.containsKey(playerId)) { + if (this.recordViolation(playerId, 6, HackType.SPAM, player.getName() + " failed Spam: sent too many messages")) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_slow_chat")); + } + } else if (this.recordViolation(playerId, 4, HackType.SPAM, player.getName() + " failed Spam: sent too many messages")) { + this.recentlyWarnedPlayers.put(playerId, true); + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_slow_chat")); + } + + return; + } + } + + String message = event.getMessage(); + + for (String allowedPhrase : this.whitelist) { + if (isSimilarMessage(allowedPhrase, message)) { + return; + } + } + + if (this.lastMessages.containsKey(playerId) && isSimilarMessage(message, this.lastMessages.get(playerId))) { + if (this.recentlyWarnedPlayers.containsKey(playerId)) { + if (this.recordViolation(playerId, 4, HackType.SPAM, player.getName() + " failed Spam: repeated last message")) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat")); + } + } else if (this.recordViolation(playerId, 2, HackType.SPAM, player.getName() + " failed Spam: repeated last message")) { + this.recentlyWarnedPlayers.put(playerId, true); + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat")); + } + } else { + for (String suspicious : this.suspiciousMessages.keySet()) { + if (isSimilarMessage(message, suspicious)) { + this.suspiciousMessages.put(message, true); + if (this.recentlyWarnedPlayers.containsKey(playerId)) { + if (this.recordViolation( + playerId, 3, HackType.SPAM, player.getName() + " failed Spam: tried to repeat a suspicious message (" + message + ")" + )) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat_other")); + event.setCancelled(true); + } + } else if (this.recordViolation( + playerId, 2, HackType.SPAM, player.getName() + " failed Spam: tried to repeat a suspicious message (" + message + ")" + )) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat_other")); + event.setCancelled(true); + this.recentlyWarnedPlayers.put(playerId, true); + } + + return; + } + } + + for (String previousMessage : this.lastMessages.values()) { + if (isSimilarMessage(message, previousMessage)) { + this.suspiciousMessages.put(message, true); + } + } + + this.lastMessages.put(playerId, message); + this.chatCooldowns.put(playerId, true); + } + } + } + } + + private static boolean isSimilarMessage(String first, String second) { + if (first.equalsIgnoreCase(second)) { + return true; + } else if (first.length() < 3 || second.length() < 3) { + return false; + } else { + String normalizedFirst = first.toLowerCase().replaceAll("[^a-z]", ""); + String normalizedSecond = second.toLowerCase().replaceAll("[^a-z]", ""); + return !normalizedFirst.isEmpty() && !normalizedSecond.isEmpty() && normalizedFirst.equals(normalizedSecond); + } + } + + private final class ResetChatCountTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Spam.this.messageCounts.put(player.getUniqueId(), 0); + } + } + } + + private final class SpamViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Spam.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Angle.java b/src/main/java/me/konsolas/aac/detectors/combat/Angle.java new file mode 100644 index 0000000..5553cae --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Angle.java @@ -0,0 +1,90 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.general.NumberUtil; +import org.bukkit.Location; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.util.Vector; + +public final class Angle extends Detector implements DamageListener { + private double maxDiff = 0.2; + private double maxPlayerDiff = 0.1; + private boolean cancelFalseHit = true; + private double minDist = 3.0; + + public Angle(AAC plugin) { + super(plugin); + this.maxDiff = this.plugin.getConfig().getDouble("angle.max_diff", this.maxDiff); + this.maxPlayerDiff = this.plugin.getConfig().getDouble("angle.max_player_diff", this.maxPlayerDiff); + this.cancelFalseHit = this.plugin.getConfig().getBoolean("angle.cancel_false_hit", this.cancelFalseHit); + this.minDist = this.plugin.getConfig().getDouble("angle.min_dist", this.minDist); + } + + public static double getLookDotProduct(Location attackerLoc, Location targetLoc) { + attackerLoc.setY(1.0); + targetLoc.setY(1.0); + Vector toTarget = targetLoc.toVector().subtract(attackerLoc.toVector()); + Location horizontalLook = attackerLoc.clone(); + horizontalLook.setPitch(0.0F); + Vector lookDirection = horizontalLook.getDirection(); + return toTarget.normalize().dot(lookDirection); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getCause() != DamageCause.THORNS && event.getDamager().getType() == EntityType.PLAYER; + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + Player attacker = (Player)event.getDamager(); + Location attackerLoc = attacker.getLocation(); + Location targetLoc = event.getEntity().getLocation(); + attackerLoc.setY(1.0); + targetLoc.setY(1.0); + double horizontalDistance = attackerLoc.distance(targetLoc); + if (!(horizontalDistance < this.minDist)) { + double dotProduct = getLookDotProduct(attackerLoc, targetLoc); + if (event.getEntity().getType() == EntityType.PLAYER) { + this.plugin + .logger + .logPlayerDebug( + attacker, + "(Angle) EntityDamageByEntityEvent dot[n:" + (1.0 - this.maxPlayerDiff) + ",m" + (1.0 + this.maxPlayerDiff) + ",r:" + dotProduct + "]" + ); + if (!NumberUtil.approximatelyEqual(dotProduct, 1.0, this.maxPlayerDiff * 4.0 / horizontalDistance)) { + if (this.recordViolation( + attacker.getUniqueId(), 1, HackType.ANGLE, attacker.getName() + " failed Angle: tried to attack an entity out of his line of sight" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(attacker.getUniqueId(), 1); + } + } else { + this.plugin + .logger + .logPlayerDebug( + attacker, "(Angle) EntityDamageByEntityEvent dot[n:" + (1.0 - this.maxDiff) + ",m" + (1.0 + this.maxDiff) + ",r:" + dotProduct + "]" + ); + if (!NumberUtil.approximatelyEqual(dotProduct, 1.0, this.maxDiff)) { + if (this.recordViolation( + attacker.getUniqueId(), 1, HackType.ANGLE, attacker.getName() + " failed Angle: tried to attack an entity out of his line of sight" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(attacker.getUniqueId(), 1); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/CombatImpossible.java b/src/main/java/me/konsolas/aac/detectors/combat/CombatImpossible.java new file mode 100644 index 0000000..9cb54df --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/CombatImpossible.java @@ -0,0 +1,44 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.general.ItemUseUtil; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; + +public final class CombatImpossible extends Detector implements DamageListener { + private boolean cancelDead = true; + private boolean cancelUsingItem = true; + + public CombatImpossible(AAC plugin) { + super(plugin); + this.cancelDead = this.plugin.getConfig().getBoolean("combatimpossible.cancel_dead", this.cancelDead); + this.cancelUsingItem = this.plugin.getConfig().getBoolean("combatimpossible.cancel_using_item", this.cancelUsingItem); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager().getType() == EntityType.PLAYER; + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + Player attacker = (Player)event.getDamager(); + if (attacker.isDead() && this.cancelDead) { + if (this.recordViolation( + attacker.getUniqueId(), 1, HackType.COMBATIMPOSSIBLE, attacker.getName() + " failed CombatImpossible: Tried to attack whilst dead" + )) { + event.setCancelled(true); + } + } else if (ItemUseUtil.isUsingItem(attacker) + && this.cancelUsingItem + && this.recordViolation( + attacker.getUniqueId(), 1, HackType.COMBATIMPOSSIBLE, attacker.getName() + " failed CombatImpossible: Tried to attack whilst using an item" + )) { + event.setCancelled(true); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Criticals.java b/src/main/java/me/konsolas/aac/detectors/combat/Criticals.java new file mode 100644 index 0000000..6ee0b44 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Criticals.java @@ -0,0 +1,82 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.potion.PotionEffectType; + +public final class Criticals extends Detector implements DamageListener { + private boolean cancelFalseHit = false; + + public Criticals(AAC plugin) { + super(plugin); + this.cancelFalseHit = this.plugin.getConfig().getBoolean("criticals.cancel_false_hit", this.cancelFalseHit); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager().getType() == EntityType.PLAYER && !((Player)event.getDamager()).isFlying(); + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + Player attacker = (Player)event.getDamager(); + if (this.isCriticalHit(attacker)) { + this.plugin + .logger + .logPlayerDebug( + attacker, + "(Criticals) EntityDamageByEntityEvent critical location[r:" + + attacker.getLocation() + + "] velocity[r:" + + attacker.getVelocity() + + "] blockOn[r:" + + attacker.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() + + "]" + ); + if (( + attacker.getLocation().getY() % 1.0 == 0.0 + && GroundUtil.isSolidFullBlock(attacker.getLocation().subtract(0.0, 1.0, 0.0).getBlock()) + || attacker.getLocation().getY() % 0.5 == 0.0 + && GroundUtil.isSlabOrLowBlock(attacker.getLocation().getBlock().getType()) + && !this.plugin.checkManager.isBypassed(attacker) + ) + && this.recordViolation( + attacker.getUniqueId(), 2, HackType.CRITICALS, attacker.getName() + " failed Criticals: tried to perform a critical hit whilst on the ground" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.plugin + .logger + .logPlayerDebug( + attacker, + "(Criticals) EntityDamageByEntityEvent !critical location[r:" + + attacker.getLocation() + + "] velocity[r:" + + attacker.getVelocity() + + "] blockOn[r:" + + attacker.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() + + "]" + ); + if (attacker.getLocation().getY() % 1.0 == 0.0 && GroundUtil.isSolidFullBlock(attacker.getLocation().subtract(0.0, 1.0, 0.0).getBlock())) { + this.decreaseViolationLevel(attacker.getUniqueId(), 1); + } + } + } + + private boolean isCriticalHit(Player player) { + return player.getFallDistance() > 0.0F + && !player.isOnGround() + && !player.isInsideVehicle() + && !player.hasPotionEffect(PotionEffectType.BLINDNESS) + && !GroundUtil.isClimbable(player) + && !GroundUtil.isInLiquid(player); + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/FastUse.java b/src/main/java/me/konsolas/aac/detectors/combat/FastUse.java new file mode 100644 index 0000000..000617c --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/FastUse.java @@ -0,0 +1,36 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.PlayerItemConsumeEvent; + +public final class FastUse extends Detector { + private int msToUse = 2700; + + public FastUse(AAC plugin) { + super(plugin); + this.msToUse = this.plugin.getConfig().getInt("fastuse.ms_to_use"); + } + + @EventHandler + public void onPlayerItemConsume(PlayerItemConsumeEvent event) { + if (!this.plugin.checkManager.isBypassed(event.getPlayer())) { + long elapsedMs = System.currentTimeMillis() - this.plugin.playerStateTracker.getLastInteractionTime(event.getPlayer()); + if (elapsedMs < this.msToUse) { + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.FASTUSE, + event.getPlayer().getName() + " failed FastUse: Tried to consume an item too quickly (" + elapsedMs + "ms)" + )) { + event.setCancelled(true); + event.getPlayer().getInventory().setHeldItemSlot((event.getPlayer().getInventory().getHeldItemSlot() + 1) % 9); + } + } else { + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Fastbow.java b/src/main/java/me/konsolas/aac/detectors/combat/Fastbow.java new file mode 100644 index 0000000..bab4cc8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Fastbow.java @@ -0,0 +1,158 @@ +package me.konsolas.aac.detectors.combat; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.Bukkit; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityShootBowEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerQuitEvent; + +public final class Fastbow extends Detector { + private int shotsFiredThreshold = 2; + private double minForce = 0.5; + private final Map shotCounts = new HashMap<>(); + private final Set cooldownPlayers = new HashSet<>(); + + public Fastbow(AAC plugin) { + super(plugin); + this.minForce = this.plugin.getConfig().getDouble("fastbow.min_force", this.minForce); + this.shotsFiredThreshold = this.plugin.getConfig().getInt("fastbow.shots_fired_threshold", this.shotsFiredThreshold); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new FastBowSampleTask(), 30L, 20L)); + } + + @EventHandler + public void onEntityShootBow(EntityShootBowEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER) { + Player shooter = (Player)event.getEntity(); + if (this.plugin.checkManager.isBypassed(shooter)) { + return; + } + + UUID playerId = shooter.getUniqueId(); + if (this.cooldownPlayers.contains(playerId)) { + this.plugin + .logger + .logPlayerDebug( + shooter, + "(FastBow) EntityShootBowEvent !allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(playerId) + ); + event.setCancelled(true); + return; + } + + if (event.getForce() > this.minForce) { + if (!this.shotCounts.containsKey(playerId)) { + this.shotCounts.put(playerId, 1); + } else { + this.shotCounts.put(playerId, this.shotCounts.get(playerId) + 1); + } + + if (this.shotCounts.get(playerId) > this.shotsFiredThreshold) { + event.setCancelled(true); + this.plugin + .logger + .logPlayerDebug( + shooter, + "(FastBow) EntityShootBowEvent !allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(playerId) + ); + } else { + this.plugin + .logger + .logPlayerDebug( + shooter, + "(FastBow) EntityShootBowEvent allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(playerId) + ); + } + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.shotCounts.put(event.getPlayer().getUniqueId(), 0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.shotCounts.remove(event.getPlayer().getUniqueId()); + } + + private final class FastBowSampleTask implements Runnable { + @Override + public void run() { + for (UUID playerId : Fastbow.this.shotCounts.keySet()) { + int shots = Fastbow.this.shotCounts.get(playerId); + if (shots > Fastbow.this.shotsFiredThreshold && !Fastbow.this.cooldownPlayers.contains(playerId)) { + if (Fastbow.this.recordViolation( + playerId, + 4, + HackType.FASTBOW, + Bukkit.getOfflinePlayer(playerId).getName() + " failed Fastbow: tried to fire " + shots + " arrows in 1 second." + )) { + Fastbow.this.cooldownPlayers.add(playerId); + Bukkit.getPlayer(playerId).sendMessage(AAC.messagePrefix + Fastbow.this.plugin.messages.getMessage("too_many_shots")); + Bukkit.getServer() + .getScheduler() + .scheduleSyncDelayedTask(Fastbow.this.plugin, new ExpireFastBowCooldownTask(playerId), 100L); + } + } else if (!Fastbow.this.cooldownPlayers.contains(playerId)) { + Fastbow.this.decreaseViolationLevel(playerId, 1); + } + + Fastbow.this.shotCounts.put(playerId, 0); + } + } + } + + private final class ExpireFastBowCooldownTask implements Runnable { + private final UUID playerId; + + private ExpireFastBowCooldownTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + Fastbow.this.cooldownPlayers.remove(this.playerId); + Player player = Bukkit.getPlayer(this.playerId); + if (player != null) { + player.sendMessage(AAC.messagePrefix + Fastbow.this.plugin.messages.getMessage("allow_bow")); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/FightSpeed.java b/src/main/java/me/konsolas/aac/detectors/combat/FightSpeed.java new file mode 100644 index 0000000..139ec98 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/FightSpeed.java @@ -0,0 +1,177 @@ +package me.konsolas.aac.detectors.combat; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.Map.Entry; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.Plugin; + +public final class FightSpeed extends Detector { + private int maxHitsPerSecond = 12; + private int maxInteractPerSecond = 25; + private boolean consistentCheck = true; + private final Map attackCounts = new HashMap<>(); + private final Map interactCounts = new HashMap<>(); + private final Map armSwingCounts = new HashMap<>(); + private final Map previousArmSwingCounts = new HashMap<>(); + private final Map secondPreviousArmSwingCounts = new HashMap<>(); + + public FightSpeed(AAC plugin) { + super(plugin); + this.maxHitsPerSecond = this.plugin.getConfig().getInt("fightspeed.max_hits_per_second", this.maxHitsPerSecond); + this.maxInteractPerSecond = this.plugin.getConfig().getInt("fightspeed.max_interact_per_second", this.maxInteractPerSecond); + this.consistentCheck = this.plugin.getConfig().getBoolean("fightspeed.consistent_check", this.consistentCheck); + FightSpeedPacketListener listener = new FightSpeedPacketListener(this.plugin, Client.USE_ENTITY, Client.ARM_ANIMATION); + this.packetListeners.add(listener); + ProtocolLibrary.getProtocolManager().addPacketListener(listener); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new FightSpeedViolationDecayTask(), 10L, 59L); + } + + @Override + public void updateTick(long tick) { + super.updateTick(tick); + if (tick % 20L == 0L) { + for (Entry entry : this.attackCounts.entrySet()) { + UUID playerId = entry.getKey(); + int attacks = entry.getValue(); + Player player = Bukkit.getPlayer(playerId); + if (attacks > this.maxHitsPerSecond) { + if (attacks != 20 && attacks != 21 && attacks != 19) { + this.recordViolation( + playerId, + attacks - this.maxHitsPerSecond + 3, + HackType.FIGHTSPEED, + player.getName() + " failed FightSpeed: reached a CPS of " + attacks + ); + } else { + this.recordViolation( + playerId, + (attacks - this.maxHitsPerSecond + 3) * 2, + HackType.FIGHTSPEED, + player.getName() + " failed FightSpeed: reached a CPS of " + attacks + ); + } + } + + this.attackCounts.put(playerId, 0); + } + + for (Entry entry : this.interactCounts.entrySet()) { + UUID playerId = entry.getKey(); + int interactions = entry.getValue(); + Player player = Bukkit.getPlayer(playerId); + if (interactions > this.maxInteractPerSecond) { + this.recordViolation( + playerId, + interactions - this.maxHitsPerSecond + 3, + HackType.FIGHTSPEED, + player.getName() + " failed FightSpeed: interacting " + interactions + " times per second" + ); + } + + this.interactCounts.put(playerId, 0); + } + + for (Entry entry : this.armSwingCounts.entrySet()) { + UUID playerId = entry.getKey(); + int swings = entry.getValue(); + Player player = Bukkit.getPlayer(playerId); + if (this.previousArmSwingCounts.get(playerId) != null && this.secondPreviousArmSwingCounts.get(playerId) != null) { + int previousSwings = this.previousArmSwingCounts.get(playerId); + int secondPreviousSwings = this.secondPreviousArmSwingCounts.get(playerId); + if (swings < 9) { + this.secondPreviousArmSwingCounts.put(playerId, this.previousArmSwingCounts.get(playerId)); + this.previousArmSwingCounts.put(playerId, swings); + this.armSwingCounts.put(playerId, 0); + continue; + } + + if (this.consistentCheck && previousSwings == swings && swings == secondPreviousSwings) { + if (previousSwings != 10 && previousSwings != 20) { + this.recordViolation( + playerId, 3, HackType.FIGHTSPEED, player.getName() + " failed FightSpeed: constantly clicking at a CPS of " + swings + ); + } else { + this.recordViolation( + playerId, 7, HackType.FIGHTSPEED, player.getName() + " failed FightSpeed: constantly clicking at a CPS of " + swings + ); + } + } + } + + this.secondPreviousArmSwingCounts.put(playerId, this.previousArmSwingCounts.get(playerId)); + this.previousArmSwingCounts.put(playerId, swings); + this.armSwingCounts.put(playerId, 0); + } + } + } + + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.attackCounts.put(event.getPlayer().getUniqueId(), 0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.attackCounts.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.attackCounts.remove(event.getPlayer().getUniqueId()); + } + + private final class FightSpeedPacketListener extends PacketAdapter { + private FightSpeedPacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + Player player = event.getPlayer(); + if (!FightSpeed.this.plugin.checkManager.isBypassed(player)) { + UUID playerId = player.getUniqueId(); + if (event.getPacketType() == Client.USE_ENTITY) { + if (new WrapperPlayClientUseEntity(event.getPacket()).getAction() == EntityUseAction.ATTACK) { + FightSpeed.this.attackCounts.put(playerId, FightSpeed.this.attackCounts.getOrDefault(playerId, 0) + 1); + } else { + FightSpeed.this.interactCounts.put(playerId, FightSpeed.this.interactCounts.getOrDefault(playerId, 0) + 1); + } + } else if (FightSpeed.this.plugin.combatTracker.isInCombat(player)) { + FightSpeed.this.armSwingCounts.put(playerId, FightSpeed.this.armSwingCounts.getOrDefault(playerId, 0) + 1); + } + } + } + } + + private final class FightSpeedViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : FightSpeed.this.plugin.getServer().getOnlinePlayers()) { + FightSpeed.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Forcefield.java b/src/main/java/me/konsolas/aac/detectors/combat/Forcefield.java new file mode 100644 index 0000000..d9a8d5a --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Forcefield.java @@ -0,0 +1,168 @@ +package me.konsolas.aac.detectors.combat; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.events.ListenerPriority; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import me.konsolas.aac.util.ForcefieldDecoyManager; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.Plugin; + +public final class Forcefield extends Detector { + private static boolean sendDamageAnimation = true; + private final Map playerDecoys = new HashMap<>(); + private final ConcurrentMap weightedDecoyHitCounts = new ConcurrentHashMap<>(); + private final ConcurrentMap decoyHitCounts = new ConcurrentHashMap<>(); + private final ConcurrentMap lastDamageAnimationTimes = new ConcurrentHashMap<>(); + + public Forcefield(AAC plugin) { + super(plugin); + ForceFieldPacketListener listener = new ForceFieldPacketListener( + this.plugin, ListenerPriority.LOWEST, WrapperPlayClientUseEntity.TYPE, Client.ARM_ANIMATION + ); + this.packetListeners.add(listener); + ProtocolLibrary.getProtocolManager().addPacketListener(listener); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ForceFieldSampleTask(), 35L, 36L)); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ForceFieldDecoyUpdateTask(), 30L, 602L)); + ForcefieldDecoyManager.loadConfig(this.plugin); + sendDamageAnimation = this.plugin.getConfig().getBoolean("forcefield.magic.send_damaged_animation"); + } + + public ForcefieldDecoyManager removeDecoys(UUID playerId) { + return this.playerDecoys.containsKey(playerId) ? this.playerDecoys.remove(playerId) : null; + } + + @Override + public void destroy() { + super.destroy(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + ForcefieldDecoyManager decoys = this.removeDecoys(player.getUniqueId()); + if (decoys != null) { + decoys.destroy(); + } + } + } + + private void spawnDecoys(Player player) { + ForcefieldDecoyManager decoys = new ForcefieldDecoyManager(this.plugin, player, this); + this.playerDecoys.put(player.getUniqueId(), decoys); + decoys.spawn(); + } + + @EventHandler + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + ForcefieldDecoyManager decoys = this.removeDecoys(event.getPlayer().getUniqueId()); + if (decoys != null) { + decoys.destroy(); + } + } + + @EventHandler + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + ForcefieldDecoyManager decoys = this.removeDecoys(event.getPlayer().getUniqueId()); + if (decoys != null) { + decoys.destroy(); + } + } + + private final class ForceFieldPacketListener extends PacketAdapter { + private ForceFieldPacketListener(Plugin plugin, ListenerPriority listenerPriority, PacketType... packetTypes) { + super(plugin, listenerPriority, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE) { + WrapperPlayClientUseEntity packet = new WrapperPlayClientUseEntity(event.getPacket()); + int targetId = packet.getTargetID(); + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (Forcefield.this.playerDecoys.containsKey(playerId) && packet.getAction().equals(EntityUseAction.ATTACK)) { + ForcefieldDecoyManager decoys = Forcefield.this.playerDecoys.get(playerId); + if (decoys.isSideDecoyId(targetId)) { + Forcefield.this.weightedDecoyHitCounts.putIfAbsent(playerId, 0); + Forcefield.this.weightedDecoyHitCounts.put(playerId, Forcefield.this.weightedDecoyHitCounts.get(playerId) + 1); + Forcefield.this.decoyHitCounts.putIfAbsent(playerId, 0); + Forcefield.this.decoyHitCounts.put(playerId, Forcefield.this.decoyHitCounts.get(playerId) + 1); + event.setCancelled(true); + } else if (decoys.isHeadDecoyId(targetId)) { + Forcefield.this.weightedDecoyHitCounts.putIfAbsent(playerId, 0); + Forcefield.this.weightedDecoyHitCounts.put(playerId, Forcefield.this.weightedDecoyHitCounts.get(playerId) + 2); + Forcefield.this.decoyHitCounts.putIfAbsent(playerId, 0); + Forcefield.this.decoyHitCounts.put(playerId, Forcefield.this.decoyHitCounts.get(playerId) + 1); + event.setCancelled(true); + if (Forcefield.sendDamageAnimation) { + if (Forcefield.this.lastDamageAnimationTimes.containsKey(playerId)) { + if (System.currentTimeMillis() - 500L > Forcefield.this.lastDamageAnimationTimes.get(playerId)) { + ForcefieldDecoyManager.createDamageStatusPacket(targetId).sendPacket(player); + Forcefield.this.lastDamageAnimationTimes.put(playerId, System.currentTimeMillis()); + } + } else { + Forcefield.this.lastDamageAnimationTimes.put(playerId, System.currentTimeMillis()); + } + } + } + } + } + } + } + + private final class ForceFieldSampleTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!Forcefield.this.plugin.checkManager.isBypassed(player) && !player.getGameMode().equals(GameMode.SPECTATOR)) { + UUID playerId = player.getUniqueId(); + if (Forcefield.this.weightedDecoyHitCounts.containsKey(playerId)) { + int weightedHits = Forcefield.this.weightedDecoyHitCounts.get(playerId); + if (weightedHits > 4) { + Forcefield.this.recordViolation( + playerId, + (weightedHits - 2) * 2, + HackType.FORCEFIELD, + player.getName() + " failed Forcefield: hit " + Forcefield.this.decoyHitCounts.get(playerId) + " players when tested" + ); + } + } + + Forcefield.this.weightedDecoyHitCounts.put(playerId, 0); + Forcefield.this.decoyHitCounts.put(playerId, 0); + Forcefield.this.decreaseViolationLevel(playerId, 2); + } + } + } + } + + private final class ForceFieldDecoyUpdateTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!Forcefield.this.plugin.checkManager.isBypassed(player) && !player.getGameMode().equals(GameMode.SPECTATOR)) { + Forcefield.this.spawnDecoys(player); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/KillauraCombined.java b/src/main/java/me/konsolas/aac/detectors/combat/KillauraCombined.java new file mode 100644 index 0000000..668efdb --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/KillauraCombined.java @@ -0,0 +1,260 @@ +package me.konsolas.aac.detectors.combat; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.heuristics.combat.AccuracyHeuristic; +import me.konsolas.aac.heuristics.combat.AimbotHeuristic; +import me.konsolas.aac.heuristics.combat.ReachHeuristic; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import me.konsolas.aac.util.CombatDecoyPair; +import me.konsolas.aac.util.DecoyResultCallback; +import me.konsolas.aac.util.EntityTargetCategories; +import org.bukkit.Bukkit; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.Plugin; + +public final class KillauraCombined extends Detector implements DamageListener { + private int npcCheckChance = 100; + private int npcCheckDelayTicks = 8; + private double minimumCheckDistance = 2.7; + private int npcViolationMultiplier = 6; + private int combatSuspensionTicks = 12; + private boolean randomNpcType = true; + private final Map activeNpcChecks = new HashMap<>(); + private final Set suspendedCombatPlayers = new HashSet<>(); + private final AimbotHeuristic aimbotHeuristic; + private final ReachHeuristic reachHeuristic; + private final AccuracyHeuristic accuracyHeuristic; + private int aimbotThreshold = 80; + private int reachThreshold = 80; + private int accuracyThreshold = 80; + + public KillauraCombined(AAC plugin) { + super(plugin); + this.npcCheckChance = this.plugin.getConfig().getInt("killaura.npc.check_chance", this.npcCheckChance); + this.npcCheckDelayTicks = this.plugin.getConfig().getInt("killaura.npc.check_delay", this.npcCheckDelayTicks); + this.minimumCheckDistance = this.plugin.getConfig().getDouble("killaura.npc.min_dist", this.minimumCheckDistance); + this.npcViolationMultiplier = this.plugin.getConfig().getInt("killaura.npc.npc_multiplier", this.npcViolationMultiplier); + this.combatSuspensionTicks = this.plugin.getConfig().getInt("killaura.npc.suspended_combat_time", this.combatSuspensionTicks); + this.randomNpcType = this.plugin.getConfig().getBoolean("killaura.random_type", this.randomNpcType); + this.aimbotThreshold = this.plugin.getConfig().getInt("killaura.aimbot", this.aimbotThreshold); + this.reachThreshold = this.plugin.getConfig().getInt("killaura.reach", this.reachThreshold); + this.accuracyThreshold = this.plugin.getConfig().getInt("killaura.accuracy", this.accuracyThreshold); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new KillAuraViolationDecayTask(), 100L, 60L)); + CombatDecoyPair.loadConfig(this.plugin); + KillAuraPacketListener listener = new KillAuraPacketListener(this.plugin, WrapperPlayClientUseEntity.TYPE); + this.packetListeners.add(listener); + ProtocolLibrary.getProtocolManager().addPacketListener(listener); + this.aimbotHeuristic = new AimbotHeuristic(this.plugin); + this.reachHeuristic = new ReachHeuristic(this.plugin); + this.accuracyHeuristic = new AccuracyHeuristic(this.plugin); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new KillAuraHeuristicScanTask(), 31L, 29L); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager().getType() == EntityType.PLAYER + && EntityTargetCategories.isKillauraTarget(event.getEntity().getType()) + && !this.activeNpcChecks.containsKey(event.getDamager().getUniqueId()) + && !(event.getDamager().getLocation().distance(event.getEntity().getLocation()) < this.minimumCheckDistance); + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (AAC.random.nextInt(100) < this.npcCheckChance) { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new StartKillAuraDecoyTask(event), this.npcCheckDelayTicks); + } + } + + private EntityType chooseRandomNpcType() { + switch (AAC.random.nextInt(6)) { + case 0: + return EntityType.PLAYER; + case 1: + return EntityType.VILLAGER; + case 2: + return EntityType.ZOMBIE; + case 3: + return EntityType.SKELETON; + case 4: + return EntityType.PIG_ZOMBIE; + case 5: + return EntityType.WITCH; + default: + throw new AssertionError(); + } + } + + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + UUID playerId = event.getPlayer().getUniqueId(); + if (this.activeNpcChecks.containsKey(playerId)) { + this.activeNpcChecks.get(playerId).destroy(); + this.activeNpcChecks.remove(playerId); + } + } + + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + UUID playerId = event.getPlayer().getUniqueId(); + if (this.activeNpcChecks.containsKey(playerId)) { + this.activeNpcChecks.get(playerId).destroy(); + this.activeNpcChecks.remove(playerId); + } + } + + @Override + public void destroy() { + super.destroy(); + this.aimbotHeuristic.destroy(); + } + + private final class KillAuraViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + KillauraCombined.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private final class KillAuraPacketListener extends PacketAdapter { + private KillAuraPacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE + && KillauraCombined.this.suspendedCombatPlayers.contains(event.getPlayer().getUniqueId())) { + event.setCancelled(true); + } + } + } + + private final class KillAuraHeuristicScanTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!KillauraCombined.this.plugin.checkManager.isBypassed(player)) { + int aimbotProbability = KillauraCombined.this.aimbotHeuristic.getProbability(player); + if (aimbotProbability > KillauraCombined.this.aimbotThreshold) { + KillauraCombined.this.recordViolation( + player.getUniqueId(), + aimbotProbability / 5 + 2, + HackType.KILLAURA, + player.getName() + " failed KillauraCombined: (AimbotHeuristic) Chance of hacking = " + aimbotProbability + ); + } + + int reachProbability = KillauraCombined.this.reachHeuristic.getProbability(player); + if (reachProbability > KillauraCombined.this.reachThreshold) { + KillauraCombined.this.recordViolation( + player.getUniqueId(), + reachProbability / 5 + 2, + HackType.KILLAURA, + player.getName() + " failed KillauraCombined: (ReachHeuristic) Chance of hacking = " + reachProbability + ); + } + + int accuracyProbability = KillauraCombined.this.accuracyHeuristic.getProbability(player); + if (accuracyProbability > KillauraCombined.this.accuracyThreshold) { + KillauraCombined.this.recordViolation( + player.getUniqueId(), + accuracyProbability / 5 + 2, + HackType.KILLAURA, + player.getName() + " failed KillauraCombined: (AccuracyHeuristic) Chance of hacking = " + accuracyProbability + ); + } + } + } + } + } + + private final class StartKillAuraDecoyTask implements Runnable { + private final EntityDamageByEntityEvent damageEvent; + + private StartKillAuraDecoyTask(EntityDamageByEntityEvent damageEvent) { + this.damageEvent = damageEvent; + } + + @Override + public void run() { + Player attacker = (Player)this.damageEvent.getDamager(); + if (attacker.isOnline()) { + CombatDecoyPair decoys = new CombatDecoyPair( + KillauraCombined.this.plugin, attacker, this.damageEvent.getEntity(), new KillAuraDecoyCallback(attacker) + ); + KillauraCombined.this.activeNpcChecks.put(attacker.getUniqueId(), decoys); + if (KillauraCombined.this.randomNpcType) { + decoys.spawn(KillauraCombined.this.chooseRandomNpcType()); + } else if (EntityTargetCategories.isPrimaryCombatTarget(this.damageEvent.getEntity().getType())) { + decoys.spawn(this.damageEvent.getEntity().getType()); + } else { + decoys.spawn(EntityType.PLAYER); + } + } + } + } + + private final class KillAuraDecoyCallback implements DecoyResultCallback { + private final Player attacker; + + private KillAuraDecoyCallback(Player attacker) { + this.attacker = attacker; + } + + @Override + public void onDecoyResult(int decoyHits, int targetHits) { + UUID attackerId = this.attacker.getUniqueId(); + if (targetHits > 0) { + KillauraCombined.this.recordViolation( + attackerId, + KillauraCombined.this.npcViolationMultiplier, + HackType.KILLAURA, + this.attacker.getName() + " failed Killaura: attacked through another player" + ); + KillauraCombined.this.suspendedCombatPlayers.add(attackerId); + Bukkit.getServer() + .getScheduler() + .scheduleSyncDelayedTask( + KillauraCombined.this.plugin, new ExpireKillAuraCooldownTask(attackerId), KillauraCombined.this.combatSuspensionTicks + ); + } else { + KillauraCombined.this.decreaseViolationLevel(attackerId, 1); + } + + KillauraCombined.this.activeNpcChecks.remove(attackerId); + } + } + + private final class ExpireKillAuraCooldownTask implements Runnable { + private final UUID playerId; + + private ExpireKillAuraCooldownTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + KillauraCombined.this.suspendedCombatPlayers.remove(this.playerId); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Knockback.java b/src/main/java/me/konsolas/aac/detectors/combat/Knockback.java new file mode 100644 index 0000000..abe04d0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Knockback.java @@ -0,0 +1,179 @@ +package me.konsolas.aac.detectors.combat; + +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.EntityTargetCategories; +import me.konsolas.aac.util.KnockbackDistanceTracker; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.general.ItemUseUtil; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.entity.Arrow; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerMoveEvent; + +public final class Knockback extends Detector implements MoveListener { + private int tickDelay = 7; + private boolean addPing = true; + private int maxPing = 500; + private double minKnockbackDist = 0.1; + private final ConcurrentHashMap activeTrackers = new ConcurrentHashMap<>(); + + public Knockback(AAC plugin) { + super(plugin); + this.tickDelay = this.plugin.getConfig().getInt("knockback.tick_delay", this.tickDelay); + this.addPing = this.plugin.getConfig().getBoolean("knockback.add_ping", this.addPing); + this.maxPing = this.plugin.getConfig().getInt("knockback.max_ping", this.maxPing); + this.minKnockbackDist = this.plugin.getConfig().getDouble("knockback.min_knockback_dist", this.minKnockbackDist); + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER + && event.getEntity().getVehicle() == null + && !this.plugin.checkManager.isBypassed((Player)event.getEntity()) + && event.getCause() != DamageCause.THORNS) { + Player victim = (Player)event.getEntity(); + if (!ItemUseUtil.isUsingItem(victim) + || victim.getInventory().getItemInMainHand().getType() != Material.SHIELD + && victim.getInventory().getItemInOffHand().getType() != Material.SHIELD) { + UUID victimId = victim.getUniqueId(); + if (this.activeTrackers.containsKey(victimId)) { + this.activeTrackers.get(victimId).cancelTask(); + this.activeTrackers.remove(victimId); + } + + if (EntityTargetCategories.isKnockbackSource(event.getDamager().getType())) { + if (!(event.getDamager().getLocation().distance(event.getEntity().getLocation()) < 1.2)) { + if (event.getDamager().getType() == EntityType.ARROW) { + Arrow arrow = (Arrow)event.getDamager(); + if (arrow.getShooter() instanceof LivingEntity) { + LivingEntity shooter = (LivingEntity)arrow.getShooter(); + if (event.getEntity().getEntityId() == shooter.getEntityId()) { + return; + } + } + } + + BlockCache blocks = new BlockCache(victim.getLocation()); + if (!this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 0.0, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 0.0, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 0.0, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 0.0, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 0.0, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 0.0, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 0.0, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 0.0, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 1.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 1.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 1.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 1.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 1.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 1.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 1.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 1.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 2.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 2.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 2.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 2.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 2.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 2.1, 0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.6, 2.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(-0.6, 2.1, -0.6)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 1.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOffsetMaterial(0.0, 2.1, 0.0)) + && !this.isObstructingMaterial(blocks.getOriginBlock().getType())) { + int evaluationDelay = this.tickDelay; + int ping = Ping.getPing(victim); + if (this.addPing) { + evaluationDelay += ping < this.maxPing ? ping / 100 : this.maxPing / 100; + } + + KnockbackDistanceTracker tracker; + try { + tracker = new KnockbackDistanceTracker(event.getDamager(), event.getEntity(), false); + } catch (IllegalStateException ex) { + return; + } + + this.activeTrackers.put(victimId, tracker); + tracker.setTaskId( + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new KnockbackEvaluationTask(victim), evaluationDelay) + ); + } + } + } + } + } + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + return true; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + KnockbackDistanceTracker tracker = this.activeTrackers.get(event.getPlayer().getUniqueId()); + if (tracker != null) { + tracker.updateLocation(event.getPlayer().getLocation()); + } + } + + private boolean isObstructingMaterial(Material material) { + return material == Material.WEB + || material == Material.WATER + || material == Material.STATIONARY_WATER + || material == Material.LAVA + || material == Material.STATIONARY_LAVA + || material.isSolid() + || material == Material.SKULL + || material == Material.FLOWER_POT; + } + + private final class KnockbackEvaluationTask implements Runnable { + private final Player player; + + private KnockbackEvaluationTask(Player player) { + this.player = player; + } + + @Override + public void run() { + KnockbackDistanceTracker tracker = Knockback.this.activeTrackers.remove(this.player.getUniqueId()); + double knockbackDistance = tracker.getMaxDistance() - tracker.getInitialDistance(); + if (knockbackDistance == 0.0) { + Knockback.this.recordViolation( + this.player.getUniqueId(), + 2, + HackType.KNOCKBACK, + this.player.getName() + " failed Knockback: didn't move away from his attacker when hit" + ); + } else if (knockbackDistance < Knockback.this.minKnockbackDist) { + Knockback.this.recordViolation( + this.player.getUniqueId(), + 2, + HackType.KNOCKBACK, + this.player.getName() + + " failed Knockback: didn't move far enough when hit (" + + knockbackDistance + + " blocks" + + (tracker.isExempt() ? ", inWater)" : ")") + ); + } else { + Knockback.this.decreaseViolationLevel(this.player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Reach.java b/src/main/java/me/konsolas/aac/detectors/combat/Reach.java new file mode 100644 index 0000000..7111a91 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Reach.java @@ -0,0 +1,82 @@ +package me.konsolas.aac.detectors.combat; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.EntityTargetCategories; +import org.bukkit.Location; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerMoveEvent; + +public final class Reach extends Detector implements DamageListener, MoveListener { + private double maxReach = 4.0; + private double maxBukkitReach = 9.0; + private double moveMultiplier = 3.0; + public Map lastMoves = new HashMap<>(); + + public Reach(AAC plugin) { + super(plugin); + this.maxReach = this.plugin.getConfig().getDouble("reach.max_reach", this.maxReach); + this.maxBukkitReach = this.plugin.getConfig().getDouble("reach.max_bukkit_reach", this.maxBukkitReach); + this.moveMultiplier = this.plugin.getConfig().getDouble("reach.move_multiplier", this.moveMultiplier); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager().getType() == EntityType.PLAYER + && !event.getCause().equals(DamageCause.THORNS) + && EntityTargetCategories.isReachTarget(event.getEntity().getType()); + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + Location attackerEye = event.getDamager().getLocation().add(0.0, 1.5, 0.0); + Location targetFeet = event.getEntity().getLocation(); + Location targetEye = event.getEntity().getLocation().add(0.0, 1.5, 0.0); + double reachDistance = Math.min(attackerEye.distance(targetFeet), attackerEye.distance(targetEye)); + this.plugin + .logger + .logPlayerDebug((Player)event.getDamager(), "(Reach) EntityDamageByEntityEvent dist[m:" + this.maxReach + ",r:" + reachDistance + "]"); + if (!(reachDistance > this.maxReach) || !(reachDistance < this.maxBukkitReach)) { + this.decreaseViolationLevel(event.getDamager().getUniqueId(), 1); + } else if (event.getEntity() instanceof Player) { + PlayerMoveEvent lastTargetMove = this.lastMoves.get(event.getEntity().getUniqueId()); + double moveAllowance = lastTargetMove != null ? lastTargetMove.getFrom().distance(lastTargetMove.getTo()) * this.moveMultiplier : 0.0; + if (reachDistance > this.maxReach + moveAllowance + && this.recordViolation( + event.getDamager().getUniqueId(), + 1, + HackType.REACH, + event.getDamager().getName() + " failed Reach: Tried to hit a player " + reachDistance + " blocks away" + )) { + event.setCancelled(true); + } + } else if (reachDistance > this.maxReach + 1.2 + && this.recordViolation( + event.getDamager().getUniqueId(), + 1, + HackType.REACH, + event.getDamager().getName() + " failed Reach: Tried to hit an entity " + reachDistance + " blocks away" + )) { + event.setCancelled(true); + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + this.lastMoves.put(event.getPlayer().getUniqueId(), new PlayerMoveEvent(event.getPlayer(), event.getFrom(), event.getTo())); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + return true; + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/Regen.java b/src/main/java/me/konsolas/aac/detectors/combat/Regen.java new file mode 100644 index 0000000..414ef4f --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Regen.java @@ -0,0 +1,53 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.entity.EntityRegainHealthEvent; +import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; + +public final class Regen extends Detector { + private long minRegenDelay = 3600L; + private long minSatiatedDelay = 3850L; + private boolean cancelRegen = true; + + public Regen(AAC plugin) { + super(plugin); + this.cancelRegen = this.plugin.getConfig().getBoolean("regen.cancel_regen", this.cancelRegen); + this.minRegenDelay = this.plugin.getConfig().getLong("regen.min_regen_delay", this.minRegenDelay); + this.minSatiatedDelay = this.plugin.getConfig().getLong("regen.min_satiated_delay", this.minSatiatedDelay); + } + + @EventHandler + public void onEntityRegainHealth(EntityRegainHealthEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER && !this.plugin.checkManager.isBypassed((Player)event.getEntity())) { + Player player = (Player)event.getEntity(); + long lastRegainTime = this.plugin.playerStateTracker.getLastHealthRegainTime(player); + RegainReason lastRegainReason = this.plugin.playerStateTracker.getLastHealthRegainReason(player); + long elapsedMs = System.currentTimeMillis() - lastRegainTime; + if (lastRegainReason == RegainReason.SATIATED && event.getRegainReason() == RegainReason.SATIATED) { + if (elapsedMs < this.minSatiatedDelay) { + if (this.recordViolation( + player.getUniqueId(), 1, HackType.REGEN, player.getName() + " failed Regen: regenerated health too quickly (" + elapsedMs + "ms)" + ) + && this.cancelRegen) { + event.setCancelled(true); + } + } else if (player.getFoodLevel() < 20) { + if (elapsedMs < this.minRegenDelay + && this.recordViolation( + player.getUniqueId(), 1, HackType.REGEN, player.getName() + " failed Regen: regenerated health too quickly (" + elapsedMs + "ms)" + ) + && this.cancelRegen) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/BadPackets.java b/src/main/java/me/konsolas/aac/detectors/movement/BadPackets.java new file mode 100644 index 0000000..3a687b0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/BadPackets.java @@ -0,0 +1,142 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.ListenerPriority; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import java.util.HashSet; +import java.util.Map.Entry; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.plugin.Plugin; + +public final class BadPackets extends Detector { + private int maxMoves = 50; + private int cancelThreshold = 10; + private final ConcurrentMap movePacketCounts = new ConcurrentHashMap<>(); + private final Set violationCooldownPlayers = new HashSet<>(); + + public BadPackets(AAC plugin) { + super(plugin); + this.maxMoves = this.plugin.getConfig().getInt("badpackets.max_moves", this.maxMoves); + this.cancelThreshold = this.plugin.getConfig().getInt("badpackets.cancel_threshold", this.cancelThreshold); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new SampleTask(), 3L, 3L)); + PacketListener packetListener = new PacketListener( + this.plugin, ListenerPriority.LOWEST, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.LOOK + ); + this.packetListeners.add(packetListener); + ProtocolLibrary.getProtocolManager().addPacketListener(packetListener); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onJoin(PlayerJoinEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.violationLevels.put(playerId, 0); + this.movePacketCounts.put(playerId, 0); + } + + private class PacketListener extends PacketAdapter { + PacketListener(Plugin plugin, ListenerPriority priority, PacketType... packetTypes) { + super(plugin, priority, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + try { + PacketType type = event.getPacketType(); + if (type == Client.FLYING || type == Client.POSITION || type == Client.POSITION_LOOK || type == Client.LOOK) { + Player player = event.getPlayer(); + if (BadPackets.this.plugin.checkManager.isBypassed(player)) { + return; + } + + UUID playerId = player.getUniqueId(); + BadPackets.this.movePacketCounts.putIfAbsent(playerId, 0); + int count = BadPackets.this.movePacketCounts.get(playerId) + 1; + BadPackets.this.movePacketCounts.put(playerId, count); + if (count > BadPackets.this.cancelThreshold) { + BadPackets.this.plugin + .logger + .logPlayerDebug( + player, + "(BadPackets) PacketPlayInFlying cancelled packets[m:" + + BadPackets.this.cancelThreshold + + ",r:" + + BadPackets.this.movePacketCounts.get(playerId) + + "]" + ); + event.setCancelled(true); + } + } + } catch (NullPointerException ignored) { + } + } + } + + private class SampleTask implements Runnable { + @Override + public void run() { + for (Entry entry : BadPackets.this.movePacketCounts.entrySet()) { + UUID playerId = entry.getKey(); + if (BadPackets.this.movePacketCounts.containsKey(playerId)) { + Player player = Bukkit.getPlayer(playerId); + if (player == null) { + BadPackets.this.movePacketCounts.remove(playerId); + } else { + int packetCount = entry.getValue(); + if (packetCount > BadPackets.this.maxMoves && !BadPackets.this.plugin.checkManager.isBypassed(player)) { + if (!BadPackets.this.violationCooldownPlayers.contains(playerId)) { + BadPackets.this.recordViolation( + playerId, + (packetCount - BadPackets.this.maxMoves) / 10, + HackType.BADPACKETS, + player.getName() + " failed BadPackets: sent " + BadPackets.this.movePacketCounts.get(playerId) + " moves in 3 ticks." + ); + } else { + BadPackets.this.recordViolation( + playerId, + (packetCount - BadPackets.this.maxMoves) / 50, + HackType.BADPACKETS, + player.getName() + " failed BadPackets: sent " + BadPackets.this.movePacketCounts.get(playerId) + " moves in 3 ticks." + ); + BadPackets.this.violationCooldownPlayers.add(playerId); + Bukkit.getServer() + .getScheduler() + .scheduleSyncDelayedTask(BadPackets.this.plugin, new ExpireCooldownTask(playerId), 50L); + } + } else { + BadPackets.this.decreaseViolationLevel(playerId, 1); + } + + BadPackets.this.movePacketCounts.put(playerId, 0); + } + } + } + } + } + + private class ExpireCooldownTask implements Runnable { + private final UUID playerId; + + ExpireCooldownTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + BadPackets.this.violationCooldownPlayers.remove(this.playerId); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/BoatFly.java b/src/main/java/me/konsolas/aac/detectors/movement/BoatFly.java new file mode 100644 index 0000000..dd7aea2 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/BoatFly.java @@ -0,0 +1,89 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.entity.Boat; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + +public class BoatFly extends Detector implements MoveListener { + private double minDownwardDelta = 0.12; + private boolean teleport = true; + private int frictionTicks = 7; + private final Map airborneTicks = new HashMap<>(); + + public BoatFly(AAC plugin) { + super(plugin); + this.minDownwardDelta = this.plugin.getConfig().getDouble("boatfly.min_downward_delta", this.minDownwardDelta); + this.teleport = this.plugin.getConfig().getBoolean("boatfly.teleport", this.teleport); + this.frictionTicks = this.plugin.getConfig().getInt("boatfly.friction_ticks", this.frictionTicks); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 19L, 51L)); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + double deltaY = event.getTo().getY() - event.getFrom().getY(); + Boat boat = (Boat) player.getVehicle(); + if (!(deltaY > -this.minDownwardDelta) || !this.isBoatAirborne(boat)) { + this.airborneTicks.put(playerId, 0); + } else if (deltaY > 0.0) { + if (this.recordViolation( + playerId, + 3, + HackType.BOATFLY, + player.getName() + " failed BoatFly: ascended incorrectly on a boat (dy:" + deltaY + ")" + ) + && this.teleport) { + this.plugin.setbackManager.beginSetback(this, player); + player.teleport(this.plugin.setbackManager.getSafeLocation(player), TeleportCause.UNKNOWN); + } + } else { + if (this.airborneTicks.containsKey(playerId)) { + this.airborneTicks.put(playerId, this.airborneTicks.get(playerId) + 1); + } else { + this.airborneTicks.put(playerId, 0); + } + + if (this.airborneTicks.get(playerId) >= this.frictionTicks + && this.recordViolation( + playerId, + 3, + HackType.BOATFLY, + player.getName() + " failed BoatFly: moved incorrectly on a boat (dy:" + deltaY + ")" + ) + && this.teleport) { + this.plugin.setbackManager.beginSetback(this, player); + player.teleport(player.getLocation().subtract(0.0, 0.6, 0.0), TeleportCause.UNKNOWN); + } + } + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + return event.getPlayer().getVehicle() != null && event.getPlayer().getVehicle() instanceof Boat; + } + + private boolean isBoatAirborne(Boat boat) { + Material blockType = boat.getLocation().getBlock().getType(); + return blockType != Material.STATIONARY_WATER && blockType != Material.WATER && !boat.isOnGround(); + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + BoatFly.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Climb.java b/src/main/java/me/konsolas/aac/detectors/movement/Climb.java new file mode 100644 index 0000000..36f2dba --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Climb.java @@ -0,0 +1,92 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.player.PlayerMoveEvent; + +public final class Climb extends Detector implements MoveListener, DamageListener { + private double maxAscentSpeed = 0.15; + private double maxStartSpeed = 0.6; + private boolean teleport = true; + private final Map climbStartHeights = new HashMap<>(); + + public Climb(AAC plugin) { + super(plugin); + this.maxAscentSpeed = this.plugin.getConfig().getDouble("climb.max_ascent_speed", this.maxAscentSpeed); + this.maxStartSpeed = this.plugin.getConfig().getDouble("climb.max_start_speed", this.maxStartSpeed); + this.teleport = this.plugin.getConfig().getBoolean("climb.teleport", this.teleport); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + if (!event.getPlayer().isFlying() && event.getPlayer().getVehicle() == null) { + if (!this.isClimbing(event.getPlayer())) { + this.climbStartHeights.remove(event.getPlayer().getUniqueId()); + } + + return true; + } else { + return false; + } + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return true; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + if (fromOnGround && toOnGround) { + double fromY = event.getFrom().getY(); + double deltaY = event.getTo().getY() - fromY; + if (deltaY > 0.0) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (deltaY > this.maxStartSpeed) { + if (this.recordViolation( + playerId, 2, HackType.CLIMB, player.getName() + " failed Climb: initiated a ladder climb too quickly" + ) + && this.teleport) { + event.setTo(event.getFrom()); + } + } else if (!this.climbStartHeights.containsKey(playerId) + || !(player.getLocation().getY() > this.climbStartHeights.get(playerId) + this.maxStartSpeed)) { + this.decreaseViolationLevel(playerId, 1); + } else if (deltaY > this.maxAscentSpeed + && this.recordViolation( + playerId, 2, HackType.CLIMB, player.getName() + " failed Climb: climbed a ladder too quickly" + ) + && this.teleport) { + event.setTo(event.getFrom()); + } + + if (!this.climbStartHeights.containsKey(playerId)) { + this.climbStartHeights.put(playerId, player.getLocation().getY()); + } + } + } + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + this.climbStartHeights.remove(event.getEntity().getUniqueId()); + } + + public boolean isClimbing(Player player) { + return this.isClimbableMaterial(player.getLocation().getBlock().getType()); + } + + public boolean isClimbableMaterial(Material material) { + return material == Material.VINE || material == Material.LADDER; + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/ElytraMove.java b/src/main/java/me/konsolas/aac/detectors/movement/ElytraMove.java new file mode 100644 index 0000000..0176a68 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/ElytraMove.java @@ -0,0 +1,180 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.general.NumberUtil; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.util.Vector; + +public class ElytraMove extends Detector implements MoveListener { + private double tolerance = 0.05; + private boolean teleport = true; + private final Map lastMovementVectors = new HashMap<>(); + private final Set glideGracePlayers = new HashSet<>(); + + public ElytraMove(AAC plugin) { + super(plugin); + this.tolerance = this.plugin.getConfig().getDouble("elytramove.tolerance", this.tolerance); + this.teleport = this.plugin.getConfig().getBoolean("elytramove.teleport", this.teleport); + this.scheduledTaskIds + .add(this.plugin.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 50L, 79L)); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + if (!fromOnGround && !toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + + try { + Vector actualDelta = new Vector( + event.getTo().getX() - event.getFrom().getX(), + event.getTo().getY() - event.getFrom().getY(), + event.getTo().getZ() - event.getFrom().getZ() + ); + Vector predictedDelta = this.lastMovementVectors.get(playerId); + if (!this.lastMovementVectors.containsKey(playerId) && (Math.abs(actualDelta.getX()) > 0.4 || Math.abs(actualDelta.getZ()) > 0.4)) { + if (this.recordViolation( + playerId, + 1, + HackType.ELYTRAMOVE, + String.format( + player.getName() + " failed ElytraMove: Initiated flight too quickly", + actualDelta.getX(), + actualDelta.getY(), + actualDelta.getZ(), + predictedDelta.getX(), + predictedDelta.getY(), + predictedDelta.getZ() + ) + ) + && this.teleport + && player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().isEmpty()) { + this.plugin.setbackManager.beginSetback(this, player); + player.teleport(player.getLocation().subtract(0.0, 1.0, 0.0)); + event.setTo(event.getFrom()); + } + + return; + } + + this.lastMovementVectors.put(playerId, actualDelta); + if (predictedDelta == null) { + return; + } + + predictedDelta = predictedDelta.clone(); + Vector lookVector = this.getLookVector(player.getLocation().getPitch(), player.getLocation().getYaw()); + float pitchRadians = player.getLocation().getPitch() * (float) (Math.PI / 180.0); + double lookHorizontal = Math.sqrt(lookVector.getX() * lookVector.getX() + lookVector.getZ() * lookVector.getZ()); + double motionHorizontal = Math.sqrt(predictedDelta.getX() * predictedDelta.getX() + predictedDelta.getZ() * predictedDelta.getZ()); + double lookLength = lookVector.length(); + float cosPitch = (float) Math.cos(pitchRadians); + cosPitch = (float) ((double) cosPitch * cosPitch * Math.min(1.0, lookLength / 0.4)); + predictedDelta.setY(predictedDelta.getY() + -0.08 + cosPitch * 0.06); + if (predictedDelta.getY() < 0.0 && lookHorizontal > 0.0) { + double lift = predictedDelta.getY() * -0.1 * cosPitch; + predictedDelta.setY(predictedDelta.getY() + lift); + predictedDelta.setX(predictedDelta.getX() + lookVector.getX() * lift / lookHorizontal); + predictedDelta.setZ(predictedDelta.getZ() + lookVector.getZ() * lift / lookHorizontal); + } + + if (pitchRadians < 0.0) { + double climb = motionHorizontal * -Math.sin(pitchRadians) * 0.04; + predictedDelta.setY(predictedDelta.getY() + climb * 3.2); + predictedDelta.setX(predictedDelta.getX() - lookVector.getX() * climb / lookHorizontal); + predictedDelta.setZ(predictedDelta.getZ() - lookVector.getZ() * climb / lookHorizontal); + } + + if (lookHorizontal > 0.0) { + predictedDelta.setX(predictedDelta.getX() + (lookVector.getX() / lookHorizontal * motionHorizontal - predictedDelta.getX()) * 0.1); + predictedDelta.setZ(predictedDelta.getZ() + (lookVector.getZ() / lookHorizontal * motionHorizontal - predictedDelta.getZ()) * 0.1); + } + + predictedDelta.setX(predictedDelta.getX() * 0.99); + predictedDelta.setY(predictedDelta.getY() * 0.98); + predictedDelta.setZ(predictedDelta.getZ() * 0.99); + if (!NumberUtil.approximatelyEqual(predictedDelta.getX(), actualDelta.getX(), this.tolerance) + || !NumberUtil.approximatelyEqual(predictedDelta.getY(), actualDelta.getY(), this.tolerance / 1.5) + || !NumberUtil.approximatelyEqual(predictedDelta.getZ(), actualDelta.getZ(), this.tolerance)) { + if (actualDelta.getX() < predictedDelta.getX() + && Math.abs(actualDelta.getZ()) < Math.abs(predictedDelta.getZ()) + && NumberUtil.approximatelyEqual(predictedDelta.getY(), actualDelta.getY(), this.tolerance / 1.5)) { + return; + } + + if (!this.glideGracePlayers.contains(playerId) && Math.abs(actualDelta.getX()) < 0.5 && Math.abs(actualDelta.getZ()) < 0.5) { + if (this.recordViolation( + playerId, + 1, + HackType.ELYTRAMOVE, + String.format( + player.getName() + " failed ElytraMove: moved incorrectly (%.4f, %.4f, %.4f), expected (%.4f, %.4f, %.4f)", + actualDelta.getX(), + actualDelta.getY(), + actualDelta.getZ(), + predictedDelta.getX(), + predictedDelta.getY(), + predictedDelta.getZ() + ) + ) + && this.teleport) { + if (player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().isEmpty()) { + this.plugin.setbackManager.beginSetback(this, player); + player.teleport(player.getLocation().subtract(0.0, 1.0, 0.0)); + this.lastMovementVectors.remove(playerId); + } else { + event.setTo(event.getFrom()); + } + } + } else { + this.glideGracePlayers.remove(playerId); + } + } + } catch (NullPointerException ignored) { + } + } + } + + private Vector getLookVector(float pitch, float yaw) { + double cosYaw = Math.cos(-yaw * (float) (Math.PI / 180.0) - Math.PI); + double sinYaw = Math.sin(-yaw * (float) (Math.PI / 180.0) - Math.PI); + double negCosPitch = -Math.cos(-pitch * (float) (Math.PI / 180.0)); + double sinPitch = Math.sin(-pitch * (float) (Math.PI / 180.0)); + return new Vector(sinYaw * negCosPitch, sinPitch, cosYaw * negCosPitch); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + if (!ElytraUtil.isGliding(player)) { + this.glideGracePlayers.add(player.getUniqueId()); + this.lastMovementVectors.remove(player.getUniqueId()); + return false; + } else { + return !player.isFlying() && player.getGameMode() != GameMode.SPECTATOR && !player.isDead(); + } + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + ElytraMove.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + + ElytraMove.this.glideGracePlayers.clear(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Fly.java b/src/main/java/me/konsolas/aac/detectors/movement/Fly.java new file mode 100644 index 0000000..d007b19 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Fly.java @@ -0,0 +1,248 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.ground.GroundUtil; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerVelocityEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +public final class Fly extends Detector implements MoveListener { + private double maxJumpHeight = 1.4; + private double slimeJumpAllowance = 60.0; + private double knockbackAllowance = 3.1; + private double velocityMultiplier = 1.2; + private double excessHeightAllowance = 0.8; + private double naturalDamageAllowance = 2.1; + private boolean teleportOnViolation = true; + private final Map allowedJumpHeights = new ConcurrentHashMap<>(); + private final Set flightExemptions = new HashSet<>(); + private final Set slimeBouncingPlayers = new HashSet<>(); + private final ExpiringMap setbackCooldowns; + private final Set levitatingPlayers = new HashSet<>(); + + public Fly(AAC plugin) { + super(plugin); + this.maxJumpHeight = this.plugin.getConfig().getDouble("fly.max_jump", this.maxJumpHeight); + this.slimeJumpAllowance = this.plugin.getConfig().getDouble("fly.slime_allow", this.slimeJumpAllowance); + this.knockbackAllowance = this.plugin.getConfig().getDouble("fly.knockback_allow", this.knockbackAllowance); + this.velocityMultiplier = this.plugin.getConfig().getDouble("fly.velocity_multiplier", this.velocityMultiplier); + this.excessHeightAllowance = this.plugin.getConfig().getDouble("fly.allow", this.excessHeightAllowance); + this.naturalDamageAllowance = this.plugin.getConfig().getDouble("fly.natural_allow", this.naturalDamageAllowance); + this.teleportOnViolation = this.plugin.getConfig().getBoolean("fly.teleport", this.teleportOnViolation); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 20L, 50L)); + this.setbackCooldowns = ExpiringMap.builder() + .expiration(300L, TimeUnit.MILLISECONDS) + .expirationPolicy(ExpirationPolicy.CREATED) + .build(); + } + + public boolean hasSetbackCooldown(Player player) { + return this.setbackCooldowns.containsKey(player.getUniqueId()); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + return !player.isDead() + && !this.flightExemptions.contains(player.getUniqueId()) + && !player.getGameMode().equals(GameMode.SPECTATOR) + && !ElytraUtil.isGliding(player) + && !player.getAllowFlight() + && player.getVehicle() == null; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + int jumpAmplifier = -1; + if (player.hasPotionEffect(PotionEffectType.JUMP)) { + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.JUMP)) { + jumpAmplifier = effect.getAmplifier(); + } + } + } + + if (this.slimeBouncingPlayers.contains(playerId) && fromOnGround) { + this.slimeBouncingPlayers.remove(playerId); + } + + if (!this.allowedJumpHeights.containsKey(playerId)) { + this.allowedJumpHeights.put(playerId, this.maxJumpHeight); + } + + if (this.plugin.combatTracker.wasRecentlyDamaged(player) && this.allowedJumpHeights.get(playerId) < this.knockbackAllowance) { + DamageCause lastCause = this.plugin.combatTracker.getLastDamageCause(player); + if (lastCause == DamageCause.ENTITY_ATTACK || lastCause == DamageCause.PROJECTILE) { + this.allowedJumpHeights.put(playerId, this.knockbackAllowance); + } else if (this.allowedJumpHeights.get(playerId) < this.naturalDamageAllowance) { + this.allowedJumpHeights.put(playerId, this.naturalDamageAllowance); + } + } + + if (jumpAmplifier > -1) { + double boostedJumpHeight = Math.pow(jumpAmplifier + 1 + 4.2, 2.0) / 16.0 + this.maxJumpHeight; + double currentAllowed = this.allowedJumpHeights.get(playerId); + this.allowedJumpHeights.put(playerId, boostedJumpHeight > currentAllowed ? boostedJumpHeight : currentAllowed); + } + + if (GroundUtil.isNearBounceBlock(player)) { + this.allowedJumpHeights.put(playerId, this.slimeJumpAllowance); + this.slimeBouncingPlayers.add(playerId); + } + + if (this.slimeBouncingPlayers.contains(playerId)) { + if (fromOnGround) { + this.slimeBouncingPlayers.remove(playerId); + } + + this.allowedJumpHeights.put(playerId, this.slimeJumpAllowance); + } + + if (player.hasPotionEffect(PotionEffectType.LEVITATION)) { + boolean wasLevitating = this.levitatingPlayers.contains(playerId); + double levitationAllowance = 0.0; + + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.LEVITATION)) { + levitationAllowance = (effect.getAmplifier() + 2) * 0.06; + } + } + + this.allowedJumpHeights.put(playerId, wasLevitating ? levitationAllowance : this.maxJumpHeight); + } else { + this.levitatingPlayers.remove(playerId); + } + + double heightAboveGround = event.getTo().getY() - this.plugin.setbackManager.getSafeLocation(player).getY(); + double excessHeight = heightAboveGround - this.allowedJumpHeights.get(playerId); + if (excessHeight > 0.0) { + this.plugin + .logger + .logPlayerDebug( + player, + "(Fly) PlayerMoveEvent from " + + event.getFrom().getX() + + "x" + + event.getFrom().getY() + + "y" + + event.getFrom().getZ() + + "z to " + + event.getTo().getX() + + "x" + + event.getTo().getY() + + "y" + + event.getTo().getZ() + + "z ground[u:" + + this.plugin.setbackManager.getSafeLocation(player).getY() + + "] height[t:" + + this.allowedJumpHeights.get(playerId) + + ",r:" + + heightAboveGround + + "]" + ); + if (this.recordViolation(playerId, 1, HackType.FLY, player.getName() + " failed Fly: tried to jump too high (" + heightAboveGround + " blocks)") + && (excessHeight > this.excessHeightAllowance || this.getViolationLevel(player) > 2) + && this.teleportOnViolation) { + this.setbackCooldowns.putIfAbsent(playerId, false); + this.setbackCooldowns.resetExpiration(playerId); + float fallDistance = player.getFallDistance(); + event.setTo(this.plugin.setbackManager.getSafeLocation(player)); + player.setFallDistance(fallDistance); + } + } + } + + @EventHandler + public void onPlayerVelocity(PlayerVelocityEvent event) { + if (!(event.getVelocity().getY() <= 0.0)) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (!this.allowedJumpHeights.containsKey(playerId)) { + this.allowedJumpHeights.put(playerId, this.maxJumpHeight); + } + + double predictedHeight = this.predictJumpHeight(event.getVelocity().getY()); + double currentHeight = player.getLocation().getY() - this.plugin.setbackManager.getSafeLocation(player).getY(); + if (predictedHeight + currentHeight > this.allowedJumpHeights.get(playerId)) { + this.allowedJumpHeights.put(playerId, (predictedHeight + currentHeight) * this.velocityMultiplier); + } + + this.plugin + .logger + .logPlayerDebug( + player, + "(Fly) PlayerVelocityEvent velocityY[r:" + + event.getVelocity().getY() + + "] newHeight[u:" + + this.allowedJumpHeights.get(playerId) + + "]" + ); + } + } + + private double predictJumpHeight(double initialVelocityY) { + double totalHeight = 0.0; + double verticalSpeed = 0.0; + int tick = 0; + + do { + totalHeight += verticalSpeed; + verticalSpeed = (initialVelocityY + 4.0) * StrictMath.exp(-0.02 * tick) - 4.0; + tick++; + } while (verticalSpeed > 0.0); + + return totalHeight; + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onJoin(PlayerJoinEvent event) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + this.violationLevels.put(playerId, 0); + this.allowedJumpHeights.put(playerId, this.maxJumpHeight); + Bukkit.getPluginManager().callEvent(new PlayerVelocityEvent(player, player.getVelocity())); + } + + @Override + public void destroy() { + super.destroy(); + } + + public void clearCaches() { + this.slimeBouncingPlayers.clear(); + this.allowedJumpHeights.clear(); + this.setbackCooldowns.clear(); + this.flightExemptions.clear(); + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Fly.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Glide.java b/src/main/java/me/konsolas/aac/detectors/movement/Glide.java new file mode 100644 index 0000000..0144324 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Glide.java @@ -0,0 +1,423 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.ground.GroundUtil; +import me.konsolas.aac.util.movement.VerticalMotionModel; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerToggleFlightEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import org.bukkit.util.Vector; + +public final class Glide extends Detector implements MoveListener { + private double tolerance = 0.1; + private boolean teleport = true; + private double specialTolerance = 0.8; + private int minVl = 5; + private final Set graceExemptPlayers = new HashSet<>(); + private final Map lastMoveTicks = new HashMap<>(); + private final Map previousDeltaYByPlayer = new HashMap<>(); + private final Map slimeImpactSpeedByPlayer = new HashMap<>(); + private final Map slimeBounceTicksByPlayer = new HashMap<>(); + private final Set deferredGroundPlayers = new HashSet<>(); + private final Set levitatingPlayers = new HashSet<>(); + + public Glide(AAC plugin) { + super(plugin); + this.tolerance = this.plugin.getConfig().getDouble("glide.tolerance", this.tolerance); + this.teleport = this.plugin.getConfig().getBoolean("glide.teleport", this.teleport); + this.specialTolerance = this.plugin.getConfig().getDouble("glide.special_tolerance", this.specialTolerance); + this.minVl = this.plugin.getConfig().getInt("glide.min_vl", this.minVl); + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetExemptionsTask(), 32L, 23L)); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + this.recordMoveTick(player); + return player.getGameMode() != GameMode.SPECTATOR + && !player.getAllowFlight() + && !player.isDead() + && player.getLocation().getY() > -70.0 + && !ElytraUtil.isGliding(player); + } + + private void recordMoveTick(Player player) { + if (!player.isOnline()) { + this.lastMoveTicks.remove(player.getUniqueId()); + } else { + this.lastMoveTicks.put(player.getUniqueId(), this.currentTick); + } + } + + @Override + public void updateTick(long tick) { + super.updateTick(tick); + if (tick % 29L == 0L) { + this.graceExemptPlayers.clear(); + } + + if (tick % 7L == 0L) { + Iterator> iterator = this.lastMoveTicks.entrySet().iterator(); + + while (iterator.hasNext()) { + Entry entry = iterator.next(); + if (tick - entry.getValue() > 5L) { + Player player = Bukkit.getPlayer(entry.getKey()); + if (player == null || !player.isOnline()) { + iterator.remove(); + } else if (!this.plugin.checkManager.isBypassed(player)) { + if (!GroundUtil.isOnGround(player.getLocation())) { + PlayerMoveEvent syntheticEvent = new PlayerMoveEvent(player, player.getLocation(), player.getLocation()); + if (this.shouldProcessMove(syntheticEvent)) { + this.onPlayerMove(syntheticEvent, false, false); + } + } + } else { + iterator.remove(); + } + } + } + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + double deltaY = event.getTo().getY() - event.getFrom().getY(); + double moveTolerance = this.tolerance; + boolean hasActiveVelocity = this.plugin.playerStateTracker.hasActiveVelocity(player); + double velocityY = this.plugin.playerStateTracker.getActiveVelocity(player) != null + ? this.plugin.playerStateTracker.getActiveVelocity(player).getY() + : 0.0; + long velocityAgeTicks = (System.currentTimeMillis() - this.plugin.playerStateTracker.getLastVelocityTime(player)) / 50L; + int jumpBoostLevel = 0; + + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.JUMP)) { + jumpBoostLevel = effect.getAmplifier() + 1; + } + } + + boolean wasDeferredGround = this.deferredGroundPlayers.contains(playerId); + this.deferredGroundPlayers.remove(playerId); + if (deltaY == 0.0 && fromOnGround) { + this.deferredGroundPlayers.add(playerId); + } + + if (!fromOnGround && wasDeferredGround) { + fromOnGround = true; + } + + if (!this.previousDeltaYByPlayer.containsKey(playerId)) { + this.previousDeltaYByPlayer.put(playerId, deltaY); + } else { + if (!toOnGround + && VerticalMotionModel.predictNextDeltaY(this.previousDeltaYByPlayer.get(playerId)) < deltaY - moveTolerance / 2.0 + && deltaY < 0.0 + && GroundUtil.isNearGroundWide(event.getTo())) { + toOnGround = true; + this.deferredGroundPlayers.add(playerId); + } + + int levitationLevel = 0; + boolean wasLevitating = this.levitatingPlayers.contains(playerId); + if (player.hasPotionEffect(PotionEffectType.LEVITATION)) { + this.levitatingPlayers.add(playerId); + + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.LEVITATION)) { + levitationLevel = effect.getAmplifier() + 1; + } + } + } else { + this.levitatingPlayers.remove(playerId); + } + + boolean lowCeiling = Speed.hasLowCeiling(player); + boolean validMotion = VerticalMotionModel.isValidVerticalMotion( + deltaY, + fromOnGround, + toOnGround, + hasActiveVelocity, + velocityY, + velocityAgeTicks, + this.previousDeltaYByPlayer.get(playerId), + moveTolerance, + jumpBoostLevel, + levitationLevel + ); + if (isEligibleForVerticalCheck(event, fromOnGround, toOnGround) + && !lowCeiling + && !isNearPistonOrWeb(player) + && (levitationLevel == 0 || !wasLevitating)) { + boolean fromSlime = event.getFrom().getBlock().getType() == Material.SLIME_BLOCK + || event.getFrom().clone().subtract(0.0, 0.1, 0.0).getBlock().getType() == Material.SLIME_BLOCK; + boolean toSlime = event.getTo().getBlock().getType() == Material.SLIME_BLOCK + || event.getTo().clone().subtract(0.0, 0.1, 0.0).getBlock().getType() == Material.SLIME_BLOCK; + if (fromSlime || toSlime) { + validMotion = VerticalMotionModel.isWithinUpperBound(deltaY, 1.0, moveTolerance); + if (!this.slimeImpactSpeedByPlayer.containsKey(playerId)) { + this.slimeImpactSpeedByPlayer.put(playerId, 1.0); + } + } + + if (this.slimeImpactSpeedByPlayer.containsKey(playerId)) { + if (this.slimeBounceTicksByPlayer.containsKey(playerId) && this.slimeBounceTicksByPlayer.get(playerId) <= 2) { + double expectedBounce = VerticalMotionModel.predictSlimeBounceDeltaY(this.slimeImpactSpeedByPlayer.get(playerId)); + validMotion = VerticalMotionModel.isWithinUpperBound(deltaY, expectedBounce, moveTolerance); + if (this.slimeBounceTicksByPlayer.get(playerId) == 10) { + this.slimeImpactSpeedByPlayer.remove(playerId); + this.slimeBounceTicksByPlayer.remove(playerId); + } + } else { + this.slimeBounceTicksByPlayer.put(playerId, 0); + double expectedBounce = VerticalMotionModel.predictSlimeBounceDeltaY(this.slimeImpactSpeedByPlayer.get(playerId)); + validMotion = VerticalMotionModel.isWithinUpperBound(deltaY, expectedBounce, moveTolerance); + } + + if (this.slimeBounceTicksByPlayer.containsKey(playerId)) { + this.slimeBounceTicksByPlayer.put(playerId, this.slimeBounceTicksByPlayer.get(playerId) + 1); + } + } + + if (!fromSlime && toSlime && !fromOnGround && toOnGround) { + double predictedNext = VerticalMotionModel.predictNextDeltaY(this.previousDeltaYByPlayer.get(playerId)); + this.slimeImpactSpeedByPlayer.put(playerId, predictedNext < 0.9 ? 0.9 : predictedNext); + } + + if (this.previousDeltaYByPlayer.get(playerId) > 0.0 && deltaY < 0.0) { + validMotion = true; + } + + if (fromOnGround && toOnGround && deltaY > 0.0) { + validMotion = true; + } + } else { + validMotion = true; + } + + if (toOnGround && Math.abs(deltaY) < 0.8) { + validMotion = true; + } + + if (!validMotion && !this.graceExemptPlayers.contains(playerId) && (deltaY < 0.0 && deltaY > 2.0 || hasActiveVelocity)) { + this.graceExemptPlayers.add(playerId); + validMotion = true; + } + + if (this.previousDeltaYByPlayer.get(playerId) >= 0.0 && deltaY < 0.0 && deltaY > -0.6) { + validMotion = true; + } + + if (levitationLevel == 0 && wasLevitating && Math.abs(deltaY) < 1.0) { + validMotion = true; + } + + if (!validMotion) { + if (this.recordViolation( + playerId, + 3, + HackType.GLIDE, + player.getName() + " failed Glide: didn't fall correctly (change in y:" + deltaY + ")" + ) + && this.teleport + && (this.getViolationLevel(player) > this.minVl || Math.abs(deltaY) > 1.5)) { + applyVerticalSetback(player, event, this, this.plugin); + this.previousDeltaYByPlayer.put(playerId, player.getVelocity().getY()); + } + } else { + this.decreaseViolationLevel(playerId, 1); + } + + if (validMotion) { + this.previousDeltaYByPlayer.put(playerId, deltaY); + } + } + } + + public static boolean isEligibleForVerticalCheck(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + return player.getVehicle() == null + && !Speed.isNearPartialHeightBlock(player) + && !Jesus.isOverLiquid(player) + && !isAboveLiquid(player); + } + + public static boolean isAboveLiquid(Player player) { + BlockCache cache = new BlockCache(player.getLocation()); + return cache.getNegativeOffsetBlock(0.0, 0.5, 0.45).isLiquid() + || cache.getNegativeOffsetBlock(0.45, 0.6, 0.0).isLiquid() + || cache.getNegativeOffsetBlock(0.0, 0.6, -0.45).isLiquid() + || cache.getNegativeOffsetBlock(-0.45, 0.6, 0.0).isLiquid() + || cache.getNegativeOffsetBlock(-0.45, 0.6, -0.45).isLiquid() + || cache.getNegativeOffsetBlock(-0.45, 0.6, 0.45).isLiquid() + || cache.getNegativeOffsetBlock(0.45, 0.6, -0.45).isLiquid() + || cache.getNegativeOffsetBlock(0.45, 0.6, 0.45).isLiquid(); + } + + public static boolean isNearPistonOrWeb(Player player) { + Set blocks = new HashSet<>(); + BlockCache cache = new BlockCache(player.getLocation()); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, 0.0)); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.0)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, 0.0)); + + for (Block block : blocks) { + if (isPistonOrWeb(block)) { + return true; + } + + Block above = block.getRelative(BlockFace.UP); + if (above.getType() == Material.WEB || above.getRelative(BlockFace.UP).getType() == Material.WEB) { + return true; + } + } + + return false; + } + + private static boolean isPistonOrWeb(Block block) { + Material type = block.getType(); + return type == Material.PISTON_BASE + || type == Material.PISTON_EXTENSION + || type == Material.PISTON_MOVING_PIECE + || type == Material.PISTON_STICKY_BASE + || type == Material.WEB; + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + this.previousDeltaYByPlayer.remove(event.getPlayer().getUniqueId()); + } + + public static void applyVerticalSetback(Player player, PlayerMoveEvent event, Detector detector, AAC plugin) { + applyVerticalSetback(player, event, plugin, detector, player.getVelocity().getY()); + } + + private static void applyVerticalSetback(Player player, PlayerMoveEvent event, AAC plugin, Detector detector, double velocityY) { + if (velocityY > -0.05) { + velocityY = -0.05; + } + + Location safeLocation = plugin.setbackManager.getSafeLocation(player); + if (safeLocation != null) { + double dx = Math.abs(event.getTo().getX() - safeLocation.getX()); + double dz = Math.abs(event.getTo().getZ() - safeLocation.getZ()); + double horizontalDistance = Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dz, 2.0)); + if (horizontalDistance < 3.0 && event.getFrom().getY() > safeLocation.getY()) { + plugin.setbackManager.beginSetback(detector, player); + player.teleport(safeLocation, TeleportCause.UNKNOWN); + } + } + + Location firstTarget = event.getFrom(); + + for (double step = 0.0; step > velocityY && Phase.isLocationPassable(player.getLocation().add(0.0, step, 0.0)); step -= 0.3) { + firstTarget = player.getLocation().add(0.0, step, 0.0); + } + + Location secondTarget = event.getFrom(); + + for (double fineStep = 0.0; fineStep > velocityY && Phase.isLocationPassable(firstTarget.clone().add(0.0, fineStep, 0.0)); fineStep -= 0.1) { + secondTarget = firstTarget.clone().add(0.0, fineStep, 0.0); + } + + float previousFallDistance = player.getFallDistance(); + plugin.setbackManager.beginSetback(detector, player); + player.teleport(firstTarget, TeleportCause.UNKNOWN); + plugin.setbackManager.beginSetback(detector, player); + player.setVelocity(new Vector(0.0, velocityY > 0.0 ? 0.0 : velocityY, 0.0)); + plugin.getServer() + .getScheduler() + .scheduleSyncDelayedTask(plugin, new VerticalSetbackTask(player, secondTarget, previousFallDistance, event, plugin, detector, velocityY)); + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new ReleaseSetbackTask(plugin, player), 2L); + } + + private class ResetExemptionsTask implements Runnable { + @Override + public void run() { + Glide.this.graceExemptPlayers.clear(); + } + } + + private static final class VerticalSetbackTask implements Runnable { + private final Player player; + private final Location targetLocation; + private final float previousFallDistance; + private final PlayerMoveEvent moveEvent; + private final AAC plugin; + private final Detector detector; + private final double velocityY; + + VerticalSetbackTask( + Player player, + Location targetLocation, + float previousFallDistance, + PlayerMoveEvent moveEvent, + AAC plugin, + Detector detector, + double velocityY + ) { + this.player = player; + this.targetLocation = targetLocation; + this.previousFallDistance = previousFallDistance; + this.moveEvent = moveEvent; + this.plugin = plugin; + this.detector = detector; + this.velocityY = velocityY; + } + + @Override + public void run() { + this.player.teleport(this.targetLocation, TeleportCause.UNKNOWN); + this.player.setFallDistance(this.previousFallDistance + (float) (this.moveEvent.getFrom().getY() - this.targetLocation.getY())); + this.plugin.setbackManager.beginSetback(this.detector, this.player); + this.player.setVelocity(new Vector(0.0, this.velocityY > 0.0 ? 0.0 : this.velocityY, 0.0)); + } + } + + private static final class ReleaseSetbackTask implements Runnable { + private final AAC plugin; + private final Player player; + + ReleaseSetbackTask(AAC plugin, Player player) { + this.plugin = plugin; + this.player = player; + } + + @Override + public void run() { + this.plugin.setbackManager.endSetback(this.player); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/HeadRoll.java b/src/main/java/me/konsolas/aac/detectors/movement/HeadRoll.java new file mode 100644 index 0000000..9f05dbe --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/HeadRoll.java @@ -0,0 +1,51 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.entity.Player; +import org.bukkit.plugin.Plugin; + +public final class HeadRoll extends Detector { + public HeadRoll(AAC plugin) { + super(plugin); + PacketListener packetListener = new PacketListener(this.plugin, Client.LOOK, Client.POSITION_LOOK); + this.packetListeners.add(packetListener); + ProtocolLibrary.getProtocolManager().addPacketListener(packetListener); + } + + private class PacketListener extends PacketAdapter { + PacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.LOOK || event.getPacketType() == Client.POSITION_LOOK) { + try { + Player player = event.getPlayer(); + if (HeadRoll.this.plugin.checkManager.isBypassed(player)) { + return; + } + + float pitch = event.getPacket().getFloat().read(1); + if (pitch > 90.1F || pitch < -90.1F) { + event.setCancelled(true); + HeadRoll.this.recordViolation( + player.getUniqueId(), + 1, + HackType.HEADROLL, + player.getName() + " failed HeadRoll: Moved with an illegal pitch (" + pitch + ")" + ); + } + } catch (NullPointerException ignored) { + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Jesus.java b/src/main/java/me/konsolas/aac/detectors/movement/Jesus.java new file mode 100644 index 0000000..fd45c69 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Jesus.java @@ -0,0 +1,129 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.general.ElytraUtil; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.block.Block; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; + +public final class Jesus extends Detector implements MoveListener { + private final Map lastSampledLocations = new HashMap<>(); + private final Map floatingTicks = new HashMap<>(); + private final Set touchedLiquidPlayers = new HashSet<>(); + private boolean teleport = true; + + public Jesus(AAC plugin) { + super(plugin); + this.teleport = this.plugin.getConfig().getBoolean("jesus.teleport", this.teleport); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new SampleTask(), 20L, 100L)); + } + + public static boolean isOverLiquid(Player player) { + BlockCache cache = new BlockCache(player.getLocation()); + return isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.0, 0.5, 0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.3, 0.6, 0.0)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.0, 0.6, -0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.6, 0.0)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.6, -0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.6, 0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.3, 0.6, -0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.3, 0.6, 0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.0, 0.0, 0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.3, 0.0, 0.0)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.0, 0.0, -0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.0, 0.0)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.0, -0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(-0.3, 0.0, 0.3)) + || isSolidOrNonLiquid(cache.getNegativeOffsetBlock(0.3, 0.0, -0.3)) + ? false + : cache.getNegativeOffsetBlock(0.0, 0.5, 0.0).isLiquid() + || cache.getNegativeOffsetBlock(0.0, 1.5, 0.0).isLiquid() + || cache.getOriginBlock().isLiquid(); + } + + private static boolean isSolidOrNonLiquid(Block block) { + return !block.isLiquid() && !block.isEmpty(); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + if (!player.isFlying() && player.getVehicle() == null) { + for (Entity nearby : player.getNearbyEntities(2.0, 2.0, 2.0)) { + if (nearby.getType() == EntityType.BOAT || nearby.getType() == EntityType.MINECART) { + return false; + } + } + + return !ElytraUtil.isGliding(player); + } else { + return false; + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (isOverLiquid(player) + && player.getLocation().add(0.0, 0.5, 0.0).getBlock().isEmpty() + && ( + player.getLocation().subtract(0.0, 1.5, 0.0).getBlock().isLiquid() + || player.getLocation().subtract(0.0, 0.5, 0.0).getBlock().isLiquid() + ) + && !this.plugin.combatTracker.wasRecentlyDamaged(player)) { + if (player.getLocation().subtract(0.0, 0.2, 0.0).getBlock().isLiquid()) { + if (event.getTo().getY() == event.getFrom().getY() + && this.floatingTicks.containsKey(playerId) + && this.recordViolation(playerId, 1, HackType.JESUS, player.getName() + " failed Jesus: didn't sink in water") + && this.teleport) { + event.setTo(event.getFrom()); + } + + if (!this.floatingTicks.containsKey(playerId)) { + this.floatingTicks.put(playerId, 0); + } + + this.touchedLiquidPlayers.add(playerId); + } + + if (this.touchedLiquidPlayers.contains(playerId)) { + if (!this.floatingTicks.containsKey(playerId)) { + this.floatingTicks.put(playerId, 0); + } + + this.floatingTicks.put(playerId, this.floatingTicks.get(playerId) + 1); + if (this.floatingTicks.get(playerId) > 20 + && this.recordViolation(playerId, 1, HackType.JESUS, player.getName() + " failed Jesus: tried to float above water") + && this.teleport) { + event.setTo(event.getFrom().subtract(0.0, 0.1, 0.0)); + } + } + } else { + this.floatingTicks.remove(playerId); + } + } + + private class SampleTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Jesus.this.lastSampledLocations.put(player.getUniqueId(), player.getLocation()); + Jesus.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/NoFall.java b/src/main/java/me/konsolas/aac/detectors/movement/NoFall.java new file mode 100644 index 0000000..26e1c8f --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/NoFall.java @@ -0,0 +1,223 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Queue; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentLinkedQueue; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Location; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.plugin.Plugin; + +public final class NoFall extends Detector implements MoveListener { + private double requiredVelocity = -0.2; + private boolean dealDamage = true; + private final Map highestAirY = new HashMap<>(); + private final Map pendingFallStartY = new HashMap<>(); + private final Set stationaryGroundPlayers = new HashSet<>(); + private final Queue queuedPackets = new ConcurrentLinkedQueue<>(); + + public NoFall(AAC plugin) { + super(plugin); + this.requiredVelocity = this.plugin.getConfig().getDouble("nofall.required_velocity", this.requiredVelocity); + this.dealDamage = this.plugin.getConfig().getBoolean("nofall.deal_damage", this.dealDamage); + PacketListener packetListener = new PacketListener(this.plugin, Client.POSITION, Client.POSITION_LOOK, Client.FLYING); + this.packetListeners.add(packetListener); + ProtocolLibrary.getProtocolManager().addPacketListener(packetListener); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + return player.getGameMode() != GameMode.CREATIVE + && player.getGameMode() != GameMode.SPECTATOR + && !player.getAllowFlight() + && player.getVehicle() == null; + } + + @Override + public void updateTick(long tick) { + while (!this.queuedPackets.isEmpty()) { + PacketInfo packetInfo = this.queuedPackets.poll(); + Player player = packetInfo.player; + UUID playerId = player.getUniqueId(); + boolean serverOnGround = GroundUtil.isOnGround(packetInfo.location); + boolean clientOnGround = packetInfo.onGround; + double velocityY = packetInfo.velocityY; + double playerY = packetInfo.playerY; + this.plugin.logger.logPlayerDebug(player, "(NoFall) Packet [onGround r:" + clientOnGround + "]"); + if (!serverOnGround && this.highestAirY.containsKey(playerId)) { + double startY = this.highestAirY.get(playerId); + if (startY - playerY > 3.0) { + if (velocityY < this.requiredVelocity) { + if (clientOnGround + && this.recordViolation( + playerId, + 1, + HackType.NOFALL, + player.getName() + " failed NoFall: Claimed to be on the ground midair" + ) + && this.dealDamage) { + this.pendingFallStartY.put(playerId, startY); + } + } else if (clientOnGround) { + this.pendingFallStartY.put(playerId, startY); + } + } + } + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + double deltaY = event.getTo().getY() - event.getFrom().getY(); + double toY = event.getTo().getY(); + if (toOnGround && deltaY >= 0.0 && this.pendingFallStartY.containsKey(playerId)) { + this.plugin.logger.logPlayerDebug(player, "(NoFall) " + player.getName() + " landed"); + float fallDamage = this.calculateFallDamage(this.pendingFallStartY.get(playerId), toY); + if (fallDamage >= 1.0) { + player.setFallDistance(fallDamage + 3.0F); + PacketContainer flyingPacket = ProtocolLibrary.getProtocolManager().createPacket(Client.FLYING); + flyingPacket.getBooleans().write(0, true); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ReplayPacketTask(event, flyingPacket), 1L); + this.plugin.logger.log("(NoFall) Dealing " + fallDamage + " damage to " + player.getName()); + this.pendingFallStartY.remove(playerId); + this.highestAirY.remove(playerId); + } + } + + if (toOnGround && deltaY == 0.0) { + this.stationaryGroundPlayers.add(playerId); + } else { + this.stationaryGroundPlayers.remove(playerId); + } + + if (!fromOnGround) { + if (this.highestAirY.containsKey(playerId)) { + if (toY > this.highestAirY.get(playerId)) { + this.highestAirY.put(playerId, toY); + this.plugin + .logger + .logPlayerDebug(player, "(NoFall) " + player.getName() + " New highestY for " + player.getName() + " [u:" + toY + "]"); + } + } else { + this.highestAirY.put(playerId, toY); + this.plugin + .logger + .logPlayerDebug(player, "(NoFall) " + player.getName() + " created highestY for " + player.getName() + " [u:" + toY + "]"); + } + } else { + this.highestAirY.remove(playerId); + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onBlockBreak(BlockBreakEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.highestAirY.put(playerId, event.getPlayer().getLocation().getY()); + this.pendingFallStartY.remove(playerId); + } + + private float calculateFallDamage(double startY, double endY) { + return (float) (startY - endY - 3.0); + } + + public boolean hasPendingFallDamage(Player player) { + return this.pendingFallStartY.containsKey(player.getUniqueId()); + } + + private static final class PacketInfo { + final Location location; + final boolean onGround; + final double playerY; + final double velocityY; + final Player player; + + PacketInfo(Location location, boolean onGround, double playerY, double velocityY, Player player) { + this.location = location; + this.onGround = onGround; + this.playerY = playerY; + this.velocityY = velocityY; + this.player = player; + } + } + + private class PacketListener extends PacketAdapter { + PacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + Player player = event.getPlayer(); + if (player.getGameMode() != GameMode.CREATIVE + && player.getGameMode() != GameMode.SPECTATOR + && !player.getAllowFlight() + && player.getVehicle() == null) { + PacketContainer packet = event.getPacket(); + Location location = player.getLocation(); + if (event.getPacketType() == Client.POSITION_LOOK || event.getPacketType() == Client.POSITION) { + location = new Location( + player.getWorld(), + packet.getDoubles().read(0), + packet.getDoubles().read(1), + packet.getDoubles().read(2) + ); + } + + NoFall.this.queuedPackets.add( + new PacketInfo( + location, + packet.getBooleans().read(0), + player.getLocation().getY(), + player.getVelocity().getY(), + player + ) + ); + if (NoFall.this.stationaryGroundPlayers.contains(player.getUniqueId())) { + packet.getBooleans().write(0, true); + } + } + } + } + + private class ReplayPacketTask implements Runnable { + private final PlayerMoveEvent moveEvent; + private final PacketContainer packet; + + ReplayPacketTask(PlayerMoveEvent moveEvent, PacketContainer packet) { + this.moveEvent = moveEvent; + this.packet = packet; + } + + @Override + public void run() { + try { + ProtocolLibrary.getProtocolManager().recieveClientPacket(this.moveEvent.getPlayer(), this.packet, false); + } catch (Exception ex) { + NoFall.this.plugin.logger.log("(NoFall) Failed to deal fall damage to player: " + ex.getMessage()); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/NormalMovements.java b/src/main/java/me/konsolas/aac/detectors/movement/NormalMovements.java new file mode 100644 index 0000000..8a21da0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/NormalMovements.java @@ -0,0 +1,291 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.general.NumberUtil; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerToggleFlightEvent; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +public class NormalMovements extends Detector implements MoveListener { + private static final double BASE_JUMP_HEIGHT = 0.42; + private final Map floatTicks = new HashMap<>(); + private final Map previousDeltaYByPlayer = new HashMap<>(); + private final Set graceExemptPlayers = new HashSet<>(); + private boolean fJump = true; + private boolean fStep = true; + private boolean fFloat = true; + private boolean fDy = true; + private boolean teleport = true; + + public NormalMovements(AAC plugin) { + super(plugin); + this.fJump = this.plugin.getConfig().getBoolean("normalmovements.f_jump", this.fJump); + this.fStep = this.plugin.getConfig().getBoolean("normalmovements.f_step", this.fStep); + this.fFloat = this.plugin.getConfig().getBoolean("normalmovements.f_float", this.fFloat); + this.fDy = this.plugin.getConfig().getBoolean("normalmovements.f_dy", this.fDy); + this.teleport = this.plugin.getConfig().getBoolean("normalmovements.teleport", this.teleport); + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 1L, 27L)); + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetExemptionsTask(), 22L, 19L)); + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.floatTicks.remove(playerId); + this.previousDeltaYByPlayer.remove(playerId); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + int jumpBoostLevel = 0; + + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.JUMP)) { + jumpBoostLevel = effect.getAmplifier() + 1; + } + } + + double deltaY = event.getTo().getY() - event.getFrom().getY(); + boolean nearSpecialBlock = isNearSpecialBlock(player); + + if (this.fStep && fromOnGround && toOnGround) { + if (jumpBoostLevel <= 1) { + if (deltaY > 0.5625) { + if (!this.graceExemptPlayers.contains(playerId)) { + this.graceExemptPlayers.add(playerId); + } else if (this.recordViolation( + playerId, + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:step:0 (dY:" + deltaY + ")" + )) { + this.applySetback(event, MovementViolationType.FLY); + } + } + } else if (deltaY > jumpBoostLevel / 10.0 + BASE_JUMP_HEIGHT) { + if (!this.graceExemptPlayers.contains(playerId)) { + this.graceExemptPlayers.add(playerId); + } else if (this.recordViolation( + playerId, + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:step:0 (dY:" + deltaY + ")" + )) { + this.applySetback(event, MovementViolationType.FLY); + } + } + } + + if (this.fFloat) { + if (!fromOnGround && !toOnGround && NumberUtil.approximatelyEqual(0.0, deltaY, 0.1) && !nearSpecialBlock) { + if (!this.floatTicks.containsKey(playerId)) { + this.floatTicks.put(playerId, 0); + } + + int currentFloatTicks = this.floatTicks.get(playerId); + this.floatTicks.put(playerId, currentFloatTicks + 1); + if (currentFloatTicks > 2) { + if (!this.graceExemptPlayers.contains(playerId)) { + this.graceExemptPlayers.add(playerId); + } else if (this.recordViolation( + playerId, + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:float:" + currentFloatTicks + " (dY:" + deltaY + ")" + )) { + if (currentFloatTicks < 4) { + this.applySetback(event, MovementViolationType.SPEED); + } else { + this.applySetback(event, MovementViolationType.GLIDE); + } + } + } + } else { + this.floatTicks.remove(playerId); + } + } + + if (this.fDy && this.previousDeltaYByPlayer.containsKey(playerId) && !nearSpecialBlock) { + double previousDeltaY = this.previousDeltaYByPlayer.get(playerId); + if (!fromOnGround && !toOnGround && deltaY == previousDeltaY) { + if (!this.graceExemptPlayers.contains(playerId)) { + this.graceExemptPlayers.add(playerId); + } else if (this.recordViolation( + playerId, + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:dy:= (dY:" + deltaY + ")" + )) { + this.applySetback(event, MovementViolationType.GLIDE); + } + } + + if (player.getVelocity().getY() > -0.4 && previousDeltaY > -0.2 && deltaY < -0.6) { + if (!this.graceExemptPlayers.contains(playerId)) { + this.graceExemptPlayers.add(playerId); + } else if (this.recordViolation( + playerId, + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:dy:- (dY:" + deltaY + ")" + )) { + this.applySetback(event, MovementViolationType.GLIDE); + } + } + } + + this.previousDeltaYByPlayer.put(playerId, deltaY); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + if (!player.isFlying() + && player.getGameMode() != GameMode.CREATIVE + && player.getGameMode() != GameMode.SPECTATOR + && player.getVehicle() == null) { + for (Entity nearby : player.getNearbyEntities(2.0, 2.0, 2.0)) { + if (nearby.getType() == EntityType.BOAT || nearby.getType() == EntityType.MINECART) { + return false; + } + } + + return !ElytraUtil.isGliding(player) + && !this.plugin.combatTracker.wasRecentlyDamaged(player) + && !this.plugin.playerStateTracker.hasActiveVelocity(player) + && player.getVelocity().getY() < 0.5 + && Math.abs(player.getVelocity().getX()) < 0.5 + && Math.abs(player.getVelocity().getZ()) < 0.5; + } else { + return false; + } + } + + private void applySetback(PlayerMoveEvent event, MovementViolationType violationType) { + if (this.teleport) { + Player player = event.getPlayer(); + switch (violationType) { + case FLY: + this.plugin.setbackManager.beginSetback(this, player); + player.teleport(this.plugin.setbackManager.getSafeLocation(player), TeleportCause.UNKNOWN); + break; + case SPEED: + Speed speedCheck = (Speed) this.plugin.checkManager.getCheck(HackType.SPEED); + if (speedCheck != null) { + event.setTo(speedCheck.getSetbackLocation(player)); + } else { + event.setTo(event.getFrom()); + } + break; + case GLIDE: + Glide.applyVerticalSetback(player, event, this, this.plugin); + break; + } + } + } + + public void clearCaches() { + this.floatTicks.clear(); + this.previousDeltaYByPlayer.clear(); + } + + public static boolean isAdjacentToLiquid(Player player) { + Block origin = player.getLocation().getBlock(); + + for (BlockFace face : BlockFace.values()) { + if (origin.getRelative(face).isLiquid()) { + return true; + } + } + + return false; + } + + public static boolean isStandingOnSlime(Player player) { + return player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() == Material.SLIME_BLOCK; + } + + public static boolean isNearSpecialBlock(Player player) { + Set blocks = new HashSet<>(); + BlockCache cache = new BlockCache(player.getLocation()); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, 0.0)); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.0)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, -0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.3, 0.1, 0.3)); + blocks.add(cache.getNegativeOffsetBlock(0.0, 0.1, 0.0)); + + for (Block block : blocks) { + if (isSpecialBlock(block)) { + return true; + } + + Block above = block.getRelative(BlockFace.UP); + if (above.getType() == Material.WEB || above.getRelative(BlockFace.UP).getType() == Material.WEB) { + return true; + } + } + + return false; + } + + private static boolean isSpecialBlock(Block block) { + Material type = block.getType(); + return type == Material.PISTON_BASE + || type == Material.PISTON_EXTENSION + || type == Material.PISTON_MOVING_PIECE + || type == Material.PISTON_STICKY_BASE + || type == Material.WEB + || type == Material.SNOW; + } + + private enum MovementViolationType { + SPEED, + FLY, + GLIDE + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (UUID playerId : NormalMovements.this.violationLevels.keySet()) { + NormalMovements.this.decreaseViolationLevel(playerId, 1); + } + } + } + + private class ResetExemptionsTask implements Runnable { + @Override + public void run() { + NormalMovements.this.graceExemptPlayers.clear(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Phase.java b/src/main/java/me/konsolas/aac/detectors/movement/Phase.java new file mode 100644 index 0000000..8781422 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Phase.java @@ -0,0 +1,352 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType.Play.Server; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerPosition; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerPosition.PlayerTeleportFlag; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Location; +import org.bukkit.block.Block; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.plugin.Plugin; + +public final class Phase extends Detector implements MoveListener { + private final Set exemptPlayers = new HashSet<>(); + private final Map lastValidLocations = new HashMap<>(); + private final ConcurrentMap frozenPlayers = new ConcurrentHashMap<>(); + private final Set pendingUnfreezeSetbacks = new HashSet<>(); + private final Map enclosedBlocks = new HashMap<>(); + private int freezeTime = 500; + private double maxDist = 3.0; + private boolean checkVclip = true; + + public Phase(AAC plugin) { + super(plugin); + this.freezeTime = this.plugin.getConfig().getInt("phase.freeze_time", this.freezeTime); + this.maxDist = this.plugin.getConfig().getDouble("phase.max_dist", this.maxDist); + this.checkVclip = this.plugin.getConfig().getBoolean("phase.check_vclip", this.checkVclip); + PacketListener packetListener = new PacketListener(this.plugin, Client.POSITION, Client.POSITION_LOOK, Client.LOOK, Server.POSITION); + this.packetListeners.add(packetListener); + ProtocolLibrary.getProtocolManager().addPacketListener(packetListener); + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 69L, 47L)); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + return player.getVehicle() == null + && player.getGameMode() != GameMode.SPECTATOR + && player.getGameMode() != GameMode.CREATIVE + && !this.exemptPlayers.contains(player.getUniqueId()) + && !ElytraUtil.isGliding(player); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (this.pendingUnfreezeSetbacks.contains(playerId)) { + event.setTo(this.lastValidLocations.get(playerId)); + this.pendingUnfreezeSetbacks.remove(playerId); + } else if (this.frozenPlayers.containsKey(playerId)) { + event.setTo(this.lastValidLocations.get(playerId)); + } else { + if (this.enclosedBlocks.containsKey(playerId)) { + Block enclosedBlock = this.enclosedBlocks.get(playerId); + if (isEnclosedInSolidBlocks(enclosedBlock.getLocation())) { + if (!player.getLocation().getBlock().equals(enclosedBlock) + && this.recordViolation( + playerId, + 1, + HackType.PHASE, + player.getName() + + " failed Phase: Moved out of " + + enclosedBlock.getType() + + " at " + + enclosedBlock.getLocation().toVector().toString() + )) { + event.setTo(enclosedBlock.getLocation().add(0.5, 0.0, 0.5)); + return; + } + } else { + this.enclosedBlocks.remove(playerId); + } + } + + if (!this.lastValidLocations.containsKey(playerId)) { + this.lastValidLocations.put(playerId, event.getFrom()); + } + + double deltaY = event.getTo().getY() - event.getFrom().getY(); + double horizontalDistance = Math.sqrt( + Math.pow(event.getTo().getX() - event.getFrom().getX(), 2.0) + + Math.pow(event.getTo().getZ() - event.getFrom().getZ(), 2.0) + ); + if (this.checkVclip && horizontalDistance < 0.9) { + if (deltaY < -1.0) { + Location cursor = event.getFrom().clone(); + int minY = (int) cursor.getY() - 10 > event.getTo().getY() ? (int) cursor.getY() - 10 : (int) event.getTo().getY(); + + for (Block block = cursor.subtract(0.0, 1.0, 0.0).getBlock(); + cursor.getY() > minY; + block = cursor.subtract(0.0, 1.0, 0.0).getBlock()) { + if (GroundUtil.isSolidFullBlock(block) + && this.recordViolation( + playerId, + 1, + HackType.PHASE, + player.getName() + + " failed Phase: clipped down through " + + block.getType() + + " at " + + block.getLocation().toVector().toString() + )) { + this.frozenPlayers.put(playerId, System.currentTimeMillis()); + this.enclosedBlocks.remove(playerId); + event.setTo(this.lastValidLocations.get(playerId)); + return; + } + } + } else if (deltaY > 1.0) { + Location cursor = event.getFrom().clone(); + int maxY = (int) cursor.getY() + 10 < event.getTo().getY() ? (int) cursor.getY() + 10 : (int) event.getTo().getY(); + + while (cursor.getY() < maxY) { + Block block = cursor.add(0.0, 1.0, 0.0).getBlock(); + if (GroundUtil.isSolidFullBlock(block) + && this.recordViolation( + playerId, + 1, + HackType.PHASE, + player.getName() + + " failed Phase: clipped up through " + + block.getType() + + " at " + + block.getLocation().toVector().toString() + )) { + this.frozenPlayers.put(playerId, System.currentTimeMillis()); + this.enclosedBlocks.remove(playerId); + event.setTo(this.lastValidLocations.get(playerId)); + return; + } + } + } + } + + boolean fromPassable = isLocationPassable(event.getFrom()); + if (isLocationPassable(event.getTo())) { + Location lastValid = this.lastValidLocations.get(playerId); + if (!isLocationClearOfStandableBlocks(event.getTo()) || !toOnGround) { + Location destination = event.getTo().clone(); + + double distanceSquared; + try { + distanceSquared = lastValid.distanceSquared(destination); + } catch (IllegalArgumentException ex) { + this.lastValidLocations.put(playerId, destination); + return; + } + + if (distanceSquared > this.maxDist * this.maxDist && !lastValid.equals(event.getFrom())) { + this.lastValidLocations.put(playerId, destination); + } + } else if (!lastValid.equals(event.getFrom())) { + this.lastValidLocations.put(playerId, event.getTo().clone()); + } + } else { + boolean fromEnclosed = isEnclosedInSolidBlocks(event.getFrom()); + if (fromPassable) { + if (this.recordViolation( + playerId, + 1, + HackType.PHASE, + player.getName() + + " failed Phase: moved into " + + event.getTo().getBlock().getType() + + " at " + + event.getTo().getBlock().getLocation().toVector().toString() + )) { + this.enclosedBlocks.remove(playerId); + event.setTo(this.lastValidLocations.get(playerId)); + this.frozenPlayers.put(playerId, System.currentTimeMillis()); + } + } else if (fromEnclosed) { + this.enclosedBlocks.put(playerId, player.getLocation().getBlock()); + } + } + } + } + + public static boolean isLocationPassable(Location location) { + BlockCache cache = new BlockCache(location); + return !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.0, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.0, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.0, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.0, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.0, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.0, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.0, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.0, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 1.68, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 1.68, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 1.68, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 1.68, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 1.68, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 1.68, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 1.68, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 1.68, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.9, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.9, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.9, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.9, 0.0)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.9, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.3, 0.9, 0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.9, -0.3)) + && !GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.3, 0.9, 0.3)); + } + + public static boolean isLocationClearOfStandableBlocks(Location location) { + BlockCache cache = new BlockCache(location); + return !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 0.0, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.0, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 0.0, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.0, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.0, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.0, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.0, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.0, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 1.68, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 1.68, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 1.68, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 1.68, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 1.68, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 1.68, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 1.68, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 1.68, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 0.9, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.9, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.0, 0.9, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.9, 0.0)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.9, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(-0.3, 0.9, 0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.9, -0.3)) + && !GroundUtil.isStandableBlock(cache.getOffsetBlock(0.3, 0.9, 0.3)); + } + + public static boolean isEnclosedInSolidBlocks(Location location) { + BlockCache cache = new BlockCache(location); + return GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.0, 0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 0.0, 0.0)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 0.0, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 0.0, 0.0)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 0.0, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 0.0, 0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 0.0, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 0.0, 0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 2.01, 0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 2.01, 0.0)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.0, 2.01, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 2.01, 0.0)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 2.01, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(-0.4, 2.01, 0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 2.01, -0.4)) + && GroundUtil.isSolidFullBlock(cache.getOffsetBlock(0.4, 2.01, 0.4)); + } + + @EventHandler + public void onPlayerTeleport(PlayerTeleportEvent event) { + if (!event.getCause().equals(TeleportCause.UNKNOWN)) { + this.resetPlayerLocation(event.getPlayer(), event.getTo()); + } + } + + @EventHandler + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.resetPlayerLocation(event.getPlayer(), event.getRespawnLocation()); + } + + private void resetPlayerLocation(Player player, Location location) { + UUID playerId = player.getUniqueId(); + this.frozenPlayers.remove(playerId); + this.lastValidLocations.put(playerId, location); + this.enclosedBlocks.remove(playerId); + } + + public void clearCaches() { + this.exemptPlayers.clear(); + this.lastValidLocations.clear(); + this.frozenPlayers.clear(); + this.enclosedBlocks.clear(); + } + + private class PacketListener extends PacketAdapter { + PacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + if (Phase.this.frozenPlayers.containsKey(playerId) && Phase.this.lastValidLocations.get(playerId) != null) { + event.setCancelled(true); + long frozenAt = Phase.this.frozenPlayers.get(playerId); + if (System.currentTimeMillis() > frozenAt + Phase.this.freezeTime) { + Phase.this.frozenPlayers.remove(playerId); + Phase.this.pendingUnfreezeSetbacks.add(playerId); + } + } + } + + @Override + public void onPacketSending(PacketEvent event) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (Phase.this.frozenPlayers.containsKey(playerId)) { + WrapperPlayServerPosition packet = new WrapperPlayServerPosition(event.getPacket()); + Set flags = packet.getFlags(); + Location current = player.getLocation(); + double x = flags.contains(PlayerTeleportFlag.X) ? current.getX() + packet.getX() : packet.getX(); + double y = flags.contains(PlayerTeleportFlag.Y) ? current.getY() + packet.getY() : packet.getY(); + double z = flags.contains(PlayerTeleportFlag.Z) ? current.getZ() + packet.getZ() : packet.getZ(); + float pitch = flags.contains(PlayerTeleportFlag.Y_ROT) ? current.getPitch() + packet.getPitch() : current.getPitch(); + float yaw = flags.contains(PlayerTeleportFlag.X_ROT) ? current.getYaw() + packet.getYaw() : current.getYaw(); + Location target = new Location(player.getWorld(), x, y, z, yaw, pitch); + Phase.this.lastValidLocations.put(playerId, target); + } + } + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Phase.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/movement/Speed.java b/src/main/java/me/konsolas/aac/detectors/movement/Speed.java new file mode 100644 index 0000000..515d9dc --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Speed.java @@ -0,0 +1,1153 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType.Play.Server; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; +import java.util.UUID; +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityVelocity; +import me.konsolas.aac.util.BlockCache; +import me.konsolas.aac.util.TPS; +import me.konsolas.aac.util.general.ElytraUtil; +import me.konsolas.aac.util.general.ItemUseUtil; +import me.konsolas.aac.util.general.NumberUtil; +import me.konsolas.aac.util.ground.GroundUtil; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.enchantments.Enchantment; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerToggleFlightEvent; +import org.bukkit.event.player.PlayerToggleSneakEvent; +import org.bukkit.event.vehicle.VehicleEnterEvent; +import org.bukkit.event.vehicle.VehicleExitEvent; +import org.bukkit.event.world.WorldUnloadEvent; +import org.bukkit.plugin.Plugin; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; +import org.bukkit.util.Vector; + +public final class Speed extends Detector implements MoveListener { + private final BlockingQueue movementQueue = new ArrayBlockingQueue<>(1200); + private final AsyncProcessor primaryAnalysisThread = new AsyncProcessor(); + private AsyncProcessor recoveryAnalysisThread = null; + private final Map diveTicks = new HashMap<>(); + private final Set completedDivePlayers = new HashSet<>(); + private final Set movementExemptions = new HashSet<>(); + private final ConcurrentMap moveCounts = new ConcurrentHashMap<>(); + private final ConcurrentMap customMoveCounts = new ConcurrentHashMap<>(); + private final Map sneakToggleCounts = new HashMap<>(); + private final Map itemUseCounts = new HashMap<>(); + private final Map airbornePhaseCounts = new HashMap<>(); + private final Map lastVerticalDisplacements = new HashMap<>(); + private final Map landingGraceTicks = new HashMap<>(); + private final ExpiringMap setbackViolationLevels; + private final ExpiringMap setbackLocations; + private final ConcurrentMap horizontalVelocity = new ConcurrentHashMap<>(); + private final ConcurrentMap lastVelocityTimes = new ConcurrentHashMap<>(); + private final Set recentSpeedViolators = new HashSet<>(); + private double sprintingSpeed = 0.7; + private double sneakingSpeed = 0.3; + private double surfaceSpeed = 0.2; + private double underwaterSpeed = 0.15; + private double cobwebSpeed = 0.1; + private double itemUseSpeed = 0.25; + private double soulSandSpeed = 0.35; + private double iceSpeed = 0.7; + private double jumpMultiplier = 1.5; + private boolean useMoveCounting = true; + private int maxMovesPerSecond = 22; + private double speedPotionMultiplier = 0.2; + private double slownessPotionMultiplier = 0.05; + private int maxSneakToggles = 15; + private int maxItemUseToggles = 15; + private int divePeriodTicks = 20; + private double diveSpeed = 0.5; + private int setbackViolationThreshold = 6; + private int clearViolationDelaySeconds = 20; + private double setbackViolationMultiplier = 3.0; + private boolean customMoveCountingEnabled = true; + private double customMaxMovesPerSecond = 20.5; + private int customMoveCountingWindowTicks = 100; + private boolean customImmediateSetback = false; + private boolean includeMovementFlags = true; + private double velocityMultiplier = 2.0; + + public Speed(AAC plugin) { + super(plugin); + this.sprintingSpeed = this.plugin.getConfig().getDouble("speed.sprinting_speed", this.sprintingSpeed); + this.sneakingSpeed = this.plugin.getConfig().getDouble("speed.sneaking_speed", this.sneakingSpeed); + this.surfaceSpeed = this.plugin.getConfig().getDouble("speed.surface_speed", this.surfaceSpeed); + this.underwaterSpeed = this.plugin.getConfig().getDouble("speed.underwater_speed", this.underwaterSpeed); + this.cobwebSpeed = this.plugin.getConfig().getDouble("speed.cobweb_speed", this.cobwebSpeed); + this.soulSandSpeed = this.plugin.getConfig().getDouble("speed.soul_sand_speed", this.soulSandSpeed); + this.itemUseSpeed = this.plugin.getConfig().getDouble("speed.item_speed", this.itemUseSpeed); + this.iceSpeed = this.plugin.getConfig().getDouble("speed.ice_speed", this.iceSpeed); + this.divePeriodTicks = this.plugin.getConfig().getInt("speed.dive_period", this.divePeriodTicks); + this.jumpMultiplier = this.plugin.getConfig().getDouble("speed.jump_multiplier", this.jumpMultiplier); + this.useMoveCounting = this.plugin.getConfig().getBoolean("speed.use_move_counting", this.useMoveCounting); + this.maxMovesPerSecond = this.plugin.getConfig().getInt("speed.max_moves", this.maxMovesPerSecond); + this.speedPotionMultiplier = this.plugin.getConfig().getDouble("speed.speed_multiplier", this.speedPotionMultiplier); + this.slownessPotionMultiplier = this.plugin.getConfig().getDouble("speed.slow_multiplier", this.slownessPotionMultiplier); + this.maxSneakToggles = this.plugin.getConfig().getInt("speed.max_sneak_toggles", this.maxSneakToggles); + this.maxItemUseToggles = this.plugin.getConfig().getInt("speed.max_use_toggles", this.maxItemUseToggles); + this.diveSpeed = this.plugin.getConfig().getDouble("speed.dive_speed", this.diveSpeed); + this.setbackViolationThreshold = this.plugin.getConfig().getInt("speed.vls_to_band", this.setbackViolationThreshold); + this.clearViolationDelaySeconds = this.plugin.getConfig().getInt("speed.clear_vl_delay", this.clearViolationDelaySeconds); + this.setbackViolationMultiplier = this.plugin.getConfig().getDouble("speed.band_multiplier", this.setbackViolationMultiplier); + this.customMoveCountingEnabled = this.plugin.getConfig().getBoolean("speed.custom.enabled", this.customMoveCountingEnabled); + this.customMaxMovesPerSecond = this.plugin.getConfig().getDouble("speed.custom.max_moves", this.customMaxMovesPerSecond); + this.customMoveCountingWindowTicks = this.plugin.getConfig().getInt("speed.custom.time", this.customMoveCountingWindowTicks); + this.customImmediateSetback = this.plugin.getConfig().getBoolean("speed.custom.bypass_band", this.customImmediateSetback); + this.includeMovementFlags = this.plugin.getConfig().getBoolean("speed.use_flags", this.includeMovementFlags); + this.velocityMultiplier = this.plugin.getConfig().getDouble("speed.vel_multiplier", this.velocityMultiplier); + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationDecayTask(), 20L, 23L)); + if (this.useMoveCounting) { + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetMoveCountTask(), 10L, 50L)); + } + + if (this.customMoveCountingEnabled) { + this.scheduledTaskIds + .add( + Bukkit.getServer() + .getScheduler() + .scheduleSyncRepeatingTask(this.plugin, new ResetTimerCountTask(), 10L, this.customMoveCountingWindowTicks) + ); + } + + this.scheduledTaskIds + .add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetInteractionCountsTask(), 6L, 20L)); + this.setbackViolationLevels = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.ACCESSED) + .expiration(this.clearViolationDelaySeconds, TimeUnit.SECONDS) + .build(); + this.setbackLocations = ExpiringMap.builder() + .expirationPolicy(ExpirationPolicy.ACCESSED) + .expiration(2L, TimeUnit.SECONDS) + .build(); + PacketListener packetListener = new PacketListener(this.plugin, Client.BLOCK_PLACE, Server.ENTITY_VELOCITY); + this.packetListeners.add(packetListener); + ProtocolLibrary.getProtocolManager().addPacketListener(packetListener); + this.primaryAnalysisThread.start(); + } + + @Override + public void updateTick(long tick) { + if (tick % 79L == 0L) { + this.recentSpeedViolators.clear(); + } + } + + public static boolean hasLowCeiling(Player player) { + return player.getLocation().add(0.0, 2.1, 0.5).getBlock().getType().isSolid() + || player.getLocation().add(0.5, 2.1, 0.0).getBlock().getType().isSolid() + || player.getLocation().add(0.0, 2.1, -0.5).getBlock().getType().isSolid() + || player.getLocation().add(-0.5, 2.1, 0.0).getBlock().getType().isSolid() + || player.getLocation().add(-0.5, 2.1, -0.5).getBlock().getType().isSolid() + || player.getLocation().add(-0.5, 2.1, 0.5).getBlock().getType().isSolid() + || player.getLocation().add(0.5, 2.1, -0.5).getBlock().getType().isSolid() + || player.getLocation().add(0.5, 2.1, 0.5).getBlock().getType().isSolid(); + } + + public static boolean isNearPartialHeightBlock(Player player) { + Block origin = player.getLocation().getBlock(); + + for (BlockFace face : BlockFace.values()) { + Material type = origin.getRelative(face).getType(); + if (GroundUtil.isStepOrStairs(type) || type == Material.TRAP_DOOR || type == Material.IRON_TRAPDOOR) { + return true; + } + } + + return false; + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onJoin(PlayerJoinEvent event) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + this.violationLevels.put(playerId, 0); + this.setbackLocations.put(playerId, player.getLocation()); + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onPlayerTeleport(PlayerTeleportEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.movementExemptions.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireMovementExemptionTask(playerId), 10L); + } + + @EventHandler(ignoreCancelled = true) + public void onPlayerRespawn(PlayerRespawnEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + this.movementExemptions.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireMovementExemptionTask(playerId), 20L); + } + + @EventHandler + public void onPlayerToggleSneak(PlayerToggleSneakEvent event) { + Player player = event.getPlayer(); + if (!this.plugin.checkManager.isBypassed(player)) { + UUID playerId = player.getUniqueId(); + if (!this.sneakToggleCounts.containsKey(playerId)) { + this.sneakToggleCounts.put(playerId, 1); + } else { + this.sneakToggleCounts.put(playerId, this.sneakToggleCounts.get(playerId) + 1); + if (this.sneakToggleCounts.get(playerId) > this.maxSneakToggles) { + if (this.hasFlySetbackCooldown(player)) { + return; + } + + if (this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + + " failed Speed: tried to toggle sneak too quickly (" + + this.sneakToggleCounts.get(playerId) + + " toggles/second)" + )) { + this.ensureSetbackLocation(player); + if (this.setbackViolationLevels.containsKey(playerId)) { + if (this.setbackViolationLevels.get(playerId) > this.setbackViolationThreshold) { + player.teleport(this.setbackLocations.get(playerId), TeleportCause.SPECTATE); + } + + this.setbackViolationLevels.put(playerId, this.setbackViolationLevels.get(playerId) + 1.0); + } else { + this.setbackViolationLevels.put(playerId, 1.3); + } + } + + return; + } + } + + this.plugin + .logger + .logPlayerDebug( + player, + "(Speed) PlayerToggleSneakEvent sneaks[m:" + this.maxSneakToggles + ",r:" + this.sneakToggleCounts.get(playerId) + "]" + ); + } + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + if (!event.isFlying()) { + UUID playerId = event.getPlayer().getUniqueId(); + this.movementExemptions.add(playerId); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireMovementExemptionTask(playerId), 50L); + } + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (this.movementExemptions.contains(playerId)) { + return false; + } + + if (!player.isDead() + && !player.isFlying() + && !player.getGameMode().equals(GameMode.SPECTATOR) + && player.getVehicle() == null) { + return !this.hasFlySetbackCooldown(player); + } + + this.diveTicks.put(playerId, 20); + return false; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + if (this.customMoveCountingEnabled) { + this.customMoveCounts.putIfAbsent(playerId, 0); + this.customMoveCounts.put(playerId, this.customMoveCounts.get(playerId) + 1); + if (this.customMoveCounts.get(playerId) + > this.customMaxMovesPerSecond * (20.0 / TPS.getTps()) * (this.customMoveCountingWindowTicks / 20.0)) { + if (this.includeMovementFlags) { + this.plugin + .logger + .logPlayerDebug( + player, + "(Speed) use_move_counting customMoveEvents[m:" + + this.maxMovesPerSecond * (20.0 / TPS.getTps()) + + ",r:" + + this.customMoveCounts.get(playerId) + + "]" + ); + } + + if (this.hasFlySetbackCooldown(player)) { + return; + } + + if (this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + + " failed Speed: tried to speed up time (" + + this.customMoveCounts.get(playerId) / (this.customMoveCountingWindowTicks / 20.0) + + " moves/second)" + )) { + if (this.hasFlySetbackCooldown(player)) { + return; + } + + this.ensureSetbackLocation(player); + if (this.customImmediateSetback) { + event.setTo(this.setbackLocations.get(playerId)); + } else if (this.setbackViolationLevels.containsKey(playerId)) { + if (this.setbackViolationLevels.get(playerId) > this.setbackViolationThreshold) { + event.setTo(event.getFrom()); + } + + this.setbackViolationLevels.put(playerId, this.setbackViolationLevels.get(playerId) + 1.0); + } else { + this.setbackViolationLevels.put(playerId, 1.0); + } + } + + return; + } + } + + if (this.useMoveCounting) { + this.moveCounts.putIfAbsent(playerId, 0); + this.moveCounts.put(playerId, this.moveCounts.get(playerId) + 1); + if (this.moveCounts.get(playerId) > this.maxMovesPerSecond * (20.0 / TPS.getTps()) * 2.5) { + if (this.includeMovementFlags) { + this.plugin + .logger + .logPlayerDebug( + player, + "(Speed) use_move_counting moveEvents[m:" + + this.maxMovesPerSecond * (20.0 / TPS.getTps()) + + ",r:" + + this.moveCounts.get(playerId) + + "]" + ); + } + + if (this.hasFlySetbackCooldown(player)) { + return; + } + + if (this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + " failed Speed: tried to speed up time (" + this.moveCounts.get(playerId) / 2.5 + " moves/second)" + )) { + if (this.hasFlySetbackCooldown(player)) { + return; + } + + this.ensureSetbackLocation(player); + if (this.setbackViolationLevels.containsKey(playerId)) { + if (this.setbackViolationLevels.get(playerId) > this.setbackViolationThreshold) { + event.setTo(this.setbackLocations.get(playerId)); + } + + this.setbackViolationLevels.put(playerId, this.setbackViolationLevels.get(playerId) + 1.0); + } else { + this.setbackViolationLevels.put(playerId, 1.0); + } + } + + return; + } + } + + int speedAmplifier = -1; + int slownessAmplifier = -1; + if (player.hasPotionEffect(PotionEffectType.SPEED) || player.hasPotionEffect(PotionEffectType.SLOW)) { + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.SPEED)) { + speedAmplifier = effect.getAmplifier(); + } else if (effect.getType().equals(PotionEffectType.SLOW)) { + slownessAmplifier = effect.getAmplifier(); + } + } + } + + boolean onSoulSand = player.getLocation().getBlock().getType() == Material.SOUL_SAND + || player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() == Material.SOUL_SAND; + boolean touchingLiquid = Jesus.isOverLiquid(player) || player.getLocation().getBlock().isLiquid(); + boolean nearPartialHeightBlock = isNearPartialHeightBlock(player); + boolean submerged = this.isSubmerged(player); + Block currentBlock = player.getLocation().getBlock(); + boolean lowCeiling = hasLowCeiling(player); + boolean inCobweb = this.isInCobweb(player); + boolean nearIce = isNearIce(player.getLocation()); + + try { + if (this.movementQueue.size() > 1024) { + this.plugin.getLogger().warning("Speed AsyncProcessor may not be emptying the queue quickly enough"); + this.plugin.getLogger().warning("Queue size is " + this.movementQueue.size()); + if (this.recoveryAnalysisThread == null) { + this.plugin.getLogger().severe("(Speed) Attempting to recover by starting new consumer."); + this.recoveryAnalysisThread = new AsyncProcessor(); + this.recoveryAnalysisThread.start(); + } else { + this.plugin.getLogger().severe("(Speed) No more consumers avaliable."); + } + + this.plugin.getLogger().warning("Resetting queue..."); + this.movementQueue.clear(); + } + + this.movementQueue.add( + new SpeedMovementSample( + event, + fromOnGround, + toOnGround, + speedAmplifier, + slownessAmplifier, + player.getVelocity(), + onSoulSand, + touchingLiquid, + nearPartialHeightBlock, + submerged, + currentBlock, + lowCeiling, + inCobweb, + nearIce + ) + ); + } catch (IllegalStateException ex) { + this.plugin.getLogger().severe("(Speed) Failed to queue movement. Fatal Speed error."); + this.plugin.getLogger().severe("(Speed) No more consumers avaliable"); + this.plugin.getLogger().severe("(Speed) Speed check has been disabled."); + this.plugin.checkManager.disableCheck(HackType.SPEED, false); + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onVehicleEnter(VehicleEnterEvent event) { + if (event.getEntered().getType() == EntityType.PLAYER) { + this.diveTicks.put(event.getEntered().getUniqueId(), 2); + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onVehicleExit(VehicleExitEvent event) { + if (event.getExited().getType() == EntityType.PLAYER) { + this.diveTicks.put(event.getExited().getUniqueId(), 2); + } + } + + @EventHandler + public void onWorldUnload(WorldUnloadEvent event) { + Set toRemove = new HashSet<>(); + + for (Entry entry : this.setbackLocations.entrySet()) { + if (entry.getValue().getWorld().equals(event.getWorld())) { + toRemove.add(entry.getKey()); + } + } + + for (UUID playerId : toRemove) { + this.setbackLocations.remove(playerId); + } + } + + private boolean isInCobweb(Player player) { + return player.getLocation().getBlock().getType().equals(Material.WEB) + || player.getLocation().add(0.0, 1.0, 0.0).getBlock().getType().equals(Material.WEB); + } + + private boolean isSubmerged(Player player) { + return player.getLocation().add(0.0, 1.0, 0.0).getBlock().isLiquid(); + } + + private boolean hasFlySetbackCooldown(Player player) { + return this.plugin.checkManager.getCheck(HackType.FLY) != null + && ((Fly) this.plugin.checkManager.getCheck(HackType.FLY)).hasSetbackCooldown(player); + } + + public void clearCaches() { + this.setbackViolationLevels.clear(); + this.setbackLocations.clear(); + this.movementQueue.clear(); + this.horizontalVelocity.clear(); + this.lastVelocityTimes.clear(); + } + + @Override + public void destroy() { + super.destroy(); + this.primaryAnalysisThread.stopAnalysis(); + } + + private void accumulateSetbackViolation(Player player, double actualDistance, double expectedDistance) { + UUID playerId = player.getUniqueId(); + if (this.setbackViolationLevels.containsKey(playerId)) { + this.setbackViolationLevels + .put(playerId, this.setbackViolationLevels.get(playerId) + (actualDistance - expectedDistance) * this.setbackViolationMultiplier); + } else { + this.setbackViolationLevels.put(playerId, (actualDistance - expectedDistance) * this.setbackViolationMultiplier); + } + + if (this.setbackViolationLevels.get(playerId) > this.setbackViolationThreshold) { + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new SetbackTask(player)); + } + } + + public static boolean isNearIce(Location location) { + BlockCache cache = new BlockCache(location); + return isIce(cache.getNegativeOffsetBlock(0.0, 0.6, 0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 0.6, 0.0)) + || isIce(cache.getNegativeOffsetBlock(0.0, 0.6, -0.3)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 0.6, 0.0)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 0.6, -0.3)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 0.6, 0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 0.6, -0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 0.6, 0.3)) + || isIce(cache.getNegativeOffsetBlock(0.0, 1.5, 0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 1.5, 0.0)) + || isIce(cache.getNegativeOffsetBlock(0.0, 1.5, -0.3)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 1.5, 0.0)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 1.5, -0.3)) + || isIce(cache.getNegativeOffsetBlock(-0.3, 1.5, 0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 1.5, -0.3)) + || isIce(cache.getNegativeOffsetBlock(0.3, 1.5, 0.3)); + } + + private static boolean isIce(Block block) { + return block.getType() == Material.ICE || block.getType() == Material.PACKED_ICE; + } + + public Location getSetbackLocation(Player player) { + this.ensureSetbackLocation(player); + return this.setbackLocations.get(player.getUniqueId()); + } + + private void ensureSetbackLocation(Player player) { + UUID playerId = player.getUniqueId(); + if (!this.setbackLocations.containsKey(playerId)) { + Location safeLocation = this.plugin.setbackManager.getSafeLocation(player); + double dx = Math.abs(player.getLocation().getX() - safeLocation.getX()); + double dz = Math.abs(player.getLocation().getZ() - safeLocation.getZ()); + if (Math.sqrt(Math.pow(dx, 2.0) + Math.pow(dz, 2.0)) < 7.0 && player.getLocation().getY() >= safeLocation.getY()) { + this.setbackLocations.put(playerId, safeLocation); + } else { + this.setbackLocations.put(playerId, player.getLocation()); + } + } + } + + private static final class SpeedMovementSample { + final PlayerMoveEvent moveEvent; + final boolean fromGround; + final boolean toGround; + final int speedAmplifier; + final int slownessAmplifier; + final Vector velocity; + final boolean onSoulSand; + final boolean touchingLiquid; + final boolean nearPartialHeightBlock; + final boolean submerged; + final Block currentBlock; + final boolean lowCeiling; + final boolean inCobweb; + boolean nearIce; + + SpeedMovementSample( + PlayerMoveEvent moveEvent, + boolean fromGround, + boolean toGround, + int speedAmplifier, + int slownessAmplifier, + Vector velocity, + boolean onSoulSand, + boolean touchingLiquid, + boolean nearPartialHeightBlock, + boolean submerged, + Block currentBlock, + boolean lowCeiling, + boolean inCobweb, + boolean nearIce + ) { + this.moveEvent = moveEvent; + this.fromGround = fromGround; + this.toGround = toGround; + this.speedAmplifier = speedAmplifier; + this.slownessAmplifier = slownessAmplifier; + this.velocity = velocity; + this.onSoulSand = onSoulSand; + this.touchingLiquid = touchingLiquid; + this.nearPartialHeightBlock = nearPartialHeightBlock; + this.submerged = submerged; + this.currentBlock = currentBlock; + this.lowCeiling = lowCeiling; + this.inCobweb = inCobweb; + } + } + + private final class AsyncProcessor extends Thread { + @Override + public void run() { + try { + while (true) { + SpeedMovementSample sample = Speed.this.movementQueue.take(); + PlayerMoveEvent event = sample.moveEvent; + if (!NumberUtil.approximatelyEqual(event.getFrom().getX(), event.getTo().getX(), 0.13) + || !NumberUtil.approximatelyEqual(event.getFrom().getZ(), event.getTo().getZ(), 0.13)) { + try { + Player player = event.getPlayer(); + UUID playerId = player.getUniqueId(); + double horizontalVelocityMag = Math.sqrt(Math.pow(sample.velocity.getX(), 2.0) + Math.pow(sample.velocity.getZ(), 2.0)); + double horizontalDistance = Math.sqrt( + Math.pow(event.getTo().getX() - event.getFrom().getX(), 2.0) + + Math.pow(event.getTo().getZ() - event.getFrom().getZ(), 2.0) + ); + boolean recentlyDamaged = Speed.this.plugin.combatTracker.wasRecentlyDamaged(player); + StringBuilder flags = new StringBuilder(); + Speed.this.airbornePhaseCounts.remove(playerId); + double expectedDistance = Speed.this.sprintingSpeed; + if (!NumberUtil.approximatelyEqual(event.getTo().getY() - event.getFrom().getY(), -0.04, 0.062) + && sample.currentBlock != null + && sample.currentBlock.getType() == Material.WEB + && player.getLocation().getY() % 1.0 != 0.0 + && Speed.this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + " failed Speed: moved wrongly in a web (" + (event.getTo().getY() - event.getFrom().getY()) + ")" + )) { + if (Speed.this.setbackViolationLevels.containsKey(playerId)) { + if (Speed.this.setbackViolationLevels.get(playerId) > Speed.this.setbackViolationThreshold) { + Speed.this.plugin + .getServer() + .getScheduler() + .scheduleSyncDelayedTask(Speed.this.plugin, new MovementSetbackTask(event)); + } + + Speed.this.setbackViolationLevels.put(playerId, Speed.this.setbackViolationLevels.get(playerId) + 1.0); + } else { + Speed.this.setbackViolationLevels.put(playerId, 1.3); + } + } + + if (Speed.this.landingGraceTicks.containsKey(playerId)) { + int remaining = Speed.this.landingGraceTicks.get(playerId) - 1; + Speed.this.landingGraceTicks.put(playerId, remaining); + if (remaining <= 0) { + Speed.this.landingGraceTicks.remove(playerId); + } + + expectedDistance *= 1.3; + } + + if (Speed.this.includeMovementFlags && player.isSprinting()) { + flags.append("sprinting "); + } + + if (player.isSneaking()) { + expectedDistance = Speed.this.sneakingSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("sneaking "); + } + } + + if (ItemUseUtil.isUsingItem(player)) { + expectedDistance = Speed.this.itemUseSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("item "); + } + } + + if (sample.nearIce) { + expectedDistance = Speed.this.iceSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("ice "); + } + } + + if (sample.onSoulSand) { + expectedDistance = Speed.this.soulSandSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("soulsand "); + } + } + + boolean touchingLiquid = sample.touchingLiquid; + boolean hasSurfaceDepthStrider = false; + if (touchingLiquid && sample.currentBlock != null && !sample.nearPartialHeightBlock && !recentlyDamaged) { + if (Speed.this.includeMovementFlags) { + flags.append("watersurface "); + } + + if (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER) > 0) { + hasSurfaceDepthStrider = true; + switch (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER)) { + case 1: + expectedDistance *= 0.5; + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider1 "); + } + break; + case 2: + expectedDistance *= 0.8; + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider2 "); + } + break; + default: + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider3 "); + } + } + } else { + expectedDistance = Speed.this.surfaceSpeed; + } + } else if (Speed.this.diveTicks.containsKey(playerId)) { + Speed.this.diveTicks.remove(playerId); + } + + if (sample.submerged && !hasSurfaceDepthStrider && !sample.nearPartialHeightBlock) { + if (Speed.this.includeMovementFlags) { + flags.append("underwater "); + } + + if (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER) > 0) { + switch (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER)) { + case 1: + expectedDistance *= 0.6; + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider1 "); + } + break; + case 2: + expectedDistance *= 0.8; + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider2 "); + } + break; + default: + if (Speed.this.includeMovementFlags) { + flags.append("depthstrider3 "); + } + } + } else { + expectedDistance = Speed.this.underwaterSpeed; + } + } + + if (Speed.this.diveTicks.containsKey(playerId)) { + if (Speed.this.diveTicks.get(playerId) >= Speed.this.divePeriodTicks) { + Speed.this.plugin.logger.logPlayerDebug(player, "(Speed) Finished dive"); + Speed.this.diveTicks.remove(playerId); + Speed.this.completedDivePlayers.add(playerId); + } else { + Speed.this.diveTicks.put(playerId, Speed.this.diveTicks.get(playerId) + 1); + expectedDistance = Speed.this.diveSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("diving "); + } + } + } else { + if (touchingLiquid && !Speed.this.completedDivePlayers.contains(playerId)) { + Speed.this.diveTicks.put(playerId, 0); + Speed.this.plugin.logger.logPlayerDebug(player, "(Speed) Started dive"); + expectedDistance = Speed.this.diveSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("diving "); + } + } + + if (touchingLiquid && Speed.this.completedDivePlayers.contains(playerId)) { + Speed.this.completedDivePlayers.remove(playerId); + if (Speed.this.includeMovementFlags) { + Speed.this.plugin.logger.logPlayerDebug(player, "(Speed) Left the water"); + } + } + } + + if (sample.inCobweb) { + expectedDistance = Speed.this.cobwebSpeed; + if (Speed.this.includeMovementFlags) { + flags.append("cobweb "); + } + } + + if (sample.speedAmplifier >= 0) { + expectedDistance += expectedDistance * (sample.speedAmplifier + 1) * Speed.this.speedPotionMultiplier; + if (Speed.this.includeMovementFlags) { + flags.append("speed").append(sample.speedAmplifier + 1).append(" "); + } + } + + if (sample.slownessAmplifier >= 0) { + expectedDistance -= expectedDistance * (sample.slownessAmplifier + 1) * Speed.this.slownessPotionMultiplier; + if (Speed.this.includeMovementFlags) { + flags.append("slow").append(sample.slownessAmplifier + 1).append(" "); + } + } + + expectedDistance = expectedDistance * 5.0 * player.getWalkSpeed(); + if (GroundUtil.isFenceOrWall(sample.currentBlock.getType()) + || sample.lowCeiling + || sample.nearPartialHeightBlock + || sample.currentBlock.getType() == Material.SNOW) { + if (Speed.this.includeMovementFlags) { + flags.append("boost "); + } + + expectedDistance *= Speed.this.jumpMultiplier; + } + + if (sample.toGround + && sample.fromGround + && !Speed.this.plugin.playerStateTracker.hasActiveVelocity(player) + && Speed.this.lastVelocityTimes.get(playerId) + 200L < System.currentTimeMillis()) { + String flagText = flags.toString(); + if (Speed.this.includeMovementFlags) { + Speed.this.plugin + .logger + .logPlayerDebug( + player, + "(Speed) PlayerMoveEvent distance[r:" + horizontalDistance + ",t:" + expectedDistance + ",f:" + flagText + "]" + ); + } + + if (horizontalDistance > expectedDistance) { + if (!Speed.this.recentSpeedViolators.contains(playerId) && !(horizontalDistance - expectedDistance > 0.8)) { + Speed.this.recentSpeedViolators.add(playerId); + } else if (Speed.this.recordViolation( + playerId, + 2, + HackType.SPEED, + player.getName() + + " failed Speed: tried to move too quickly (" + + horizontalDistance + + " blocks, expected " + + expectedDistance + + "), f:" + + flagText + ) + && !Speed.this.hasFlySetbackCooldown(player)) { + Speed.this.ensureSetbackLocation(player); + Speed.this.accumulateSetbackViolation(player, horizontalDistance, expectedDistance); + } + } + } else { + flags.append("hvel").append(horizontalVelocityMag).append(' '); + boolean hasActiveVelocity = Speed.this.plugin.playerStateTracker.hasActiveVelocity(player); + double deltaY = event.getTo().getY() - event.getFrom().getY(); + Speed.this.lastVerticalDisplacements.put(playerId, deltaY); + boolean applyAirPhase = true; + double packetHorizontalVelocity = Speed.this.horizontalVelocity.get(playerId); + Long lastVelocityTime = Speed.this.lastVelocityTimes.get(playerId); + long velocityAgeMillis = lastVelocityTime != null ? System.currentTimeMillis() - lastVelocityTime : Long.MAX_VALUE; + if (sample.fromGround && !hasActiveVelocity && velocityAgeMillis > 100L) { + flags.append("takeoff "); + double takeoffSpeed = expectedDistance; + takeoffSpeed += takeoffSpeed * (Speed.this.speedPotionMultiplier * (sample.speedAmplifier + 1)); + takeoffSpeed -= takeoffSpeed * (Speed.this.slownessPotionMultiplier * (sample.slownessAmplifier + 1)); + takeoffSpeed += player.getWalkSpeed() * 2.0F; + expectedDistance = takeoffSpeed; + if (horizontalDistance <= expectedDistance) { + applyAirPhase = false; + } + } else if (sample.toGround && !hasActiveVelocity && velocityAgeMillis > 100L) { + flags.append("landing "); + expectedDistance *= 1.2; + if (horizontalDistance <= expectedDistance) { + applyAirPhase = false; + } + + Speed.this.landingGraceTicks.put(playerId, 2); + } else if (hasActiveVelocity && !Speed.this.plugin.combatTracker.wasRecentlyDamaged(player)) { + flags.append("velocity "); + applyAirPhase = false; + expectedDistance = horizontalVelocityMag * Speed.this.velocityMultiplier > packetHorizontalVelocity + ? horizontalVelocityMag * Speed.this.velocityMultiplier + : packetHorizontalVelocity; + if (horizontalDistance <= expectedDistance) { + applyAirPhase = false; + } + } else if (Speed.this.plugin.combatTracker.wasRecentlyDamaged(player)) { + flags.append("damaged "); + applyAirPhase = false; + DamageCause damageCause = Speed.this.plugin.combatTracker.getLastDamageCause(player); + switch (damageCause) { + case ENTITY_ATTACK: + case PROJECTILE: + flags.append("attacked"); + expectedDistance = Speed.this.sprintingSpeed * Speed.this.jumpMultiplier + + Speed.this.horizontalVelocity.get(playerId) * Speed.this.velocityMultiplier; + break; + case ENTITY_EXPLOSION: + flags.append("blownup"); + expectedDistance = Speed.this.sprintingSpeed * Speed.this.jumpMultiplier + + horizontalVelocityMag * 1.5 * Speed.this.velocityMultiplier; + break; + default: + expectedDistance = Speed.this.sprintingSpeed * Speed.this.jumpMultiplier * 2.2; + } + } + + if (!hasActiveVelocity + && !Speed.this.plugin.combatTracker.wasRecentlyDamaged(player) + && GroundUtil.isNearBounceBlock(player)) { + expectedDistance = Speed.this.sprintingSpeed * Speed.this.jumpMultiplier; + } + + if (applyAirPhase) { + if (Speed.this.airbornePhaseCounts.containsKey(playerId)) { + Speed.this.airbornePhaseCounts.put(playerId, Speed.this.airbornePhaseCounts.get(playerId) + 1); + } else { + Speed.this.airbornePhaseCounts.put(playerId, 0); + } + + int airPhase = Speed.this.airbornePhaseCounts.get(playerId); + flags.append("phase").append(airPhase).append(' '); + double phaseMultiplier = NumberUtil.multiplyRepeatedly(2.2, 1.5, airPhase); + phaseMultiplier += phaseMultiplier * (Speed.this.speedPotionMultiplier * (sample.speedAmplifier + 1)); + phaseMultiplier -= phaseMultiplier * (Speed.this.slownessPotionMultiplier * (sample.slownessAmplifier + 1)); + phaseMultiplier += player.getWalkSpeed() * 2.0F; + phaseMultiplier += expectedDistance * 2.0; + expectedDistance = horizontalVelocityMag * phaseMultiplier; + } + + double minAirSpeed = Speed.this.sprintingSpeed * Speed.this.jumpMultiplier; + if (expectedDistance < minAirSpeed) { + expectedDistance = minAirSpeed; + } + + String flagText = flags.toString(); + if (ElytraUtil.isGliding(player)) { + expectedDistance = Double.MAX_VALUE; + } + + if (horizontalDistance > expectedDistance) { + if (!Speed.this.recentSpeedViolators.contains(playerId) && !(horizontalDistance - expectedDistance > 0.8)) { + Speed.this.recentSpeedViolators.add(playerId); + } else if (Speed.this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + + " failed Speed: moved too quickly midair (" + + horizontalDistance + + " blocks, expected " + + expectedDistance + + "), f:" + + flagText + )) { + if (Speed.this.hasFlySetbackCooldown(player)) { + continue; + } + + Speed.this.ensureSetbackLocation(player); + Speed.this.accumulateSetbackViolation(player, horizontalDistance, expectedDistance); + } + } + + if (sample.toGround) { + Speed.this.airbornePhaseCounts.put(playerId, 0); + } + } + } catch (NullPointerException ignored) { + } + } + } + } catch (InterruptedException ex) { + Speed.this.plugin.getLogger().info("Speed AsyncProcessor is exiting due to an interrupt"); + } catch (Exception ex) { + Speed.this.plugin.getLogger().warning("(Speed) (AsyncProcessor) WARNING: Automatically handled possible error"); + this.run(); + } + } + + public void stopAnalysis() { + this.interrupt(); + } + } + + private class PacketListener extends PacketAdapter { + PacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.BLOCK_PLACE) { + Player player = event.getPlayer(); + if (Speed.this.plugin.checkManager.isBypassed(player)) { + return; + } + + UUID playerId = player.getUniqueId(); + if (!Speed.this.itemUseCounts.containsKey(playerId)) { + Speed.this.itemUseCounts.put(playerId, 1); + } else { + Speed.this.itemUseCounts.put(playerId, Speed.this.itemUseCounts.get(playerId) + 1); + if (Speed.this.itemUseCounts.get(playerId) > Speed.this.maxItemUseToggles) { + if (Speed.this.hasFlySetbackCooldown(player)) { + return; + } + + if (Speed.this.recordViolation( + playerId, + 1, + HackType.SPEED, + player.getName() + + " failed Speed: tried to toggle use too quickly (" + + Speed.this.itemUseCounts.get(playerId) + + " toggles/second)" + )) { + Speed.this.ensureSetbackLocation(player); + if (Speed.this.setbackViolationLevels.containsKey(playerId)) { + if (Speed.this.setbackViolationLevels.get(playerId) > Speed.this.setbackViolationThreshold) { + player.teleport(Speed.this.setbackLocations.get(playerId), TeleportCause.SPECTATE); + } + + Speed.this.setbackViolationLevels.put(playerId, Speed.this.setbackViolationLevels.get(playerId) + 1.0); + } else { + Speed.this.setbackViolationLevels.put(playerId, 1.0); + } + } + } + } + } + } + + @Override + public void onPacketSending(PacketEvent event) { + WrapperPlayServerEntityVelocity packet = new WrapperPlayServerEntityVelocity(event.getPacket()); + Vector velocity = packet.getVelocity(); + double horizontalSpeed = Math.sqrt(Math.pow(velocity.getX(), 2.0) + Math.pow(velocity.getZ(), 2.0)); + if (packet.getEntityID() == event.getPlayer().getEntityId()) { + UUID playerId = event.getPlayer().getUniqueId(); + Speed.this.horizontalVelocity.put(playerId, horizontalSpeed); + Speed.this.lastVelocityTimes.put(playerId, System.currentTimeMillis()); + } + } + } + + private class ViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private class ResetMoveCountTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.this.moveCounts.put(player.getUniqueId(), 0); + } + } + } + + private class ResetTimerCountTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.this.customMoveCounts.put(player.getUniqueId(), 0); + } + } + } + + private class ResetInteractionCountsTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + UUID playerId = player.getUniqueId(); + Speed.this.sneakToggleCounts.put(playerId, 0); + Speed.this.itemUseCounts.put(playerId, 0); + Speed.this.decreaseViolationLevel(playerId, 1); + } + } + } + + private class ExpireMovementExemptionTask implements Runnable { + private final UUID playerId; + + ExpireMovementExemptionTask(UUID playerId) { + this.playerId = playerId; + } + + @Override + public void run() { + Speed.this.movementExemptions.remove(this.playerId); + } + } + + private class SetbackTask implements Runnable { + private final Player player; + + SetbackTask(Player player) { + this.player = player; + } + + @Override + public void run() { + if (this.player.isOnline() + && !this.player.isDead() + && !this.player.isFlying() + && Speed.this.getSetbackLocation(this.player) != null + && !Speed.this.hasFlySetbackCooldown(this.player)) { + Speed.this.plugin.setbackManager.beginSetback(Speed.this, this.player); + this.player.teleport(Speed.this.getSetbackLocation(this.player), TeleportCause.UNKNOWN); + } + } + } + + private class MovementSetbackTask implements Runnable { + private final PlayerMoveEvent moveEvent; + + MovementSetbackTask(PlayerMoveEvent moveEvent) { + this.moveEvent = moveEvent; + } + + @Override + public void run() { + Player player = this.moveEvent.getPlayer(); + player.teleport(Speed.this.setbackLocations.get(player.getUniqueId()), TeleportCause.UNKNOWN); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/FastBreak.java b/src/main/java/me/konsolas/aac/detectors/world/FastBreak.java new file mode 100644 index 0000000..4f4be97 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/FastBreak.java @@ -0,0 +1,109 @@ +package me.konsolas.aac.detectors.world; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.blocks.BlockUtil; +import org.bukkit.GameMode; +import org.bukkit.block.Block; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.block.Action; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.player.PlayerInteractEvent; + +public final class FastBreak extends Detector { + private int letTicks = 2; + private boolean cancelBreak = true; + private boolean checkDelay = true; + private final Map digStartTimes = new HashMap<>(); + private final Map targetBlocks = new HashMap<>(); + private final Map lastBreakTimes = new HashMap<>(); + + public FastBreak(AAC plugin) { + super(plugin); + this.letTicks = this.plugin.getConfig().getInt("fastbreak.let_ticks", this.letTicks); + this.cancelBreak = this.plugin.getConfig().getBoolean("fastbreak.cancel_break", this.cancelBreak); + this.checkDelay = this.plugin.getConfig().getBoolean("fastbreak.check_delay", this.checkDelay); + } + + @EventHandler + public void onPlayerInteract(PlayerInteractEvent event) { + if (event.getAction() == Action.LEFT_CLICK_BLOCK) { + UUID playerId = event.getPlayer().getUniqueId(); + if (event.getClickedBlock().equals(this.targetBlocks.get(playerId))) { + long now = System.currentTimeMillis(); + long digStart = this.digStartTimes.get(playerId); + if (now - digStart / 50L >= BlockUtil.calculateBreakTimeTicks(event.getClickedBlock().getType(), event.getPlayer())) { + this.digStartTimes.put(playerId, System.currentTimeMillis()); + } + } else { + this.targetBlocks.put(playerId, event.getClickedBlock()); + this.digStartTimes.put(playerId, System.currentTimeMillis()); + } + + if (this.checkDelay && this.lastBreakTimes.containsKey(playerId) && BlockUtil.getHasteLevel(event.getPlayer()) == 0) { + long lastBreakTime = this.lastBreakTimes.get(playerId); + long now = System.currentTimeMillis(); + if (now - lastBreakTime < 100L + && event.getClickedBlock() != null + && BlockUtil.calculateBreakTimeTicks(event.getClickedBlock().getType(), event.getPlayer()) >= 1L + && this.recordViolation( + playerId, + 2, + HackType.FASTBREAK, + event.getPlayer().getName() + " failed FastBreak: interacted too quickly after breaking a block" + ) + && this.cancelBreak) { + event.setCancelled(true); + } + } + } + } + + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + public void onBlockBreak(BlockBreakEvent event) { + if (event.getPlayer().getGameMode() != GameMode.CREATIVE && !this.plugin.checkManager.isBypassed(event.getPlayer())) { + UUID playerId = event.getPlayer().getUniqueId(); + if (!event.getBlock().equals(this.targetBlocks.get(playerId)) + && this.recordViolation(playerId, 1, HackType.FASTBREAK, event.getPlayer().getName() + " failed FastBreak: broke the wrong block") + && this.cancelBreak) { + event.setCancelled(true); + } + + if (this.digStartTimes.containsKey(playerId)) { + long now = System.currentTimeMillis(); + long digStart = this.digStartTimes.get(playerId); + long actualTicks = (now - digStart) / 50L; + long expectedTicks = BlockUtil.calculateBreakTimeTicks(event.getBlock().getType(), event.getPlayer()); + if (expectedTicks == 0L) { + return; + } + + if (actualTicks + this.letTicks < expectedTicks) { + if (this.recordViolation( + playerId, + 1, + HackType.FASTBREAK, + event.getPlayer().getName() + + " failed FastBreak: tried to break blocks too quickly (" + + actualTicks + + ", expected " + + expectedTicks + + ")" + ) + && this.cancelBreak) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(playerId, 1); + } + } + + this.lastBreakTimes.put(playerId, System.currentTimeMillis()); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/FastPlace.java b/src/main/java/me/konsolas/aac/detectors/world/FastPlace.java new file mode 100644 index 0000000..4f5c262 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/FastPlace.java @@ -0,0 +1,59 @@ +package me.konsolas.aac.detectors.world; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.GameMode; +import org.bukkit.Material; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.block.BlockPlaceEvent; +import org.bukkit.inventory.ItemStack; + +public final class FastPlace extends Detector { + private long minDelay = 200L; + private boolean cancelPlace = true; + private final Map lastPlaceTimes = new HashMap<>(); + + public FastPlace(AAC plugin) { + super(plugin); + this.minDelay = this.plugin.getConfig().getLong("fastplace.min_delay", this.minDelay); + this.cancelPlace = this.plugin.getConfig().getBoolean("fastplace.cancel_place", this.cancelPlace); + } + + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + public void onBlockPlace(BlockPlaceEvent event) { + if (event.getPlayer().getInventory().getItemInMainHand().getType() != Material.FLINT_AND_STEEL + && event.getPlayer().getInventory().getItemInOffHand().getType() != Material.FLINT_AND_STEEL + && event.getPlayer().getGameMode() != GameMode.CREATIVE + && !this.plugin.checkManager.isBypassed(event.getPlayer())) { + ItemStack boneMeal = new ItemStack(Material.INK_SACK, 1, (short)15); + if (!event.getPlayer().getInventory().getItemInMainHand().isSimilar(boneMeal) + && !event.getPlayer().getInventory().getItemInOffHand().isSimilar(boneMeal)) { + UUID playerId = event.getPlayer().getUniqueId(); + if (this.lastPlaceTimes.containsKey(playerId)) { + long now = System.currentTimeMillis(); + long lastPlaceTime = this.lastPlaceTimes.get(playerId); + if (now - lastPlaceTime < this.minDelay) { + if (this.recordViolation( + playerId, + 1, + HackType.FASTBREAK, + event.getPlayer().getName() + " failed FastPlace: tried to place blocks too quickly (" + (now - lastPlaceTime) + " ms)" + ) + && this.cancelPlace) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(playerId, 1); + } + } + + this.lastPlaceTimes.put(playerId, System.currentTimeMillis()); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/ImpossibleInteract.java b/src/main/java/me/konsolas/aac/detectors/world/ImpossibleInteract.java new file mode 100644 index 0000000..d21ed3b --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/ImpossibleInteract.java @@ -0,0 +1,299 @@ +package me.konsolas.aac.detectors.world; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.blocks.BlockUtil; +import me.konsolas.aac.util.ground.GroundUtil; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockState; +import org.bukkit.block.DoubleChest; +import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Minecart; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.block.Action; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.block.BlockPlaceEvent; +import org.bukkit.event.inventory.InventoryOpenEvent; +import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.util.BlockIterator; + +public class ImpossibleInteract extends Detector { + private boolean cancelLiquids = true; + private boolean cancelGhosthand = true; + + public ImpossibleInteract(AAC plugin) { + super(plugin); + this.cancelLiquids = this.plugin.getConfig().getBoolean("impossibleinteract.cancel_liquids", this.cancelLiquids); + this.cancelGhosthand = this.plugin.getConfig().getBoolean("impossibleinteract.cancel_ghosthand", this.cancelGhosthand); + } + + @EventHandler + public void onPlayerInteract(PlayerInteractEvent event) { + if (event.getClickedBlock() != null && event.getClickedBlock().getType() != Material.AIR) { + if (event.getAction() == Action.LEFT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_BLOCK) { + if (this.plugin.checkManager.isBypassed(event.getPlayer())) { + return; + } + + if (this.cancelGhosthand) { + if (BlockUtil.calculateBreakTimeTicks(event.getClickedBlock().getType(), event.getPlayer()) < 2L) { + return; + } + + BlockIterator raycast; + try { + raycast = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean clearLineOfSight = true; + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(event.getClickedBlock())) { + reachedTarget = true; + } + + if (GroundUtil.isSolidFullBlock(block) && !reachedTarget) { + clearLineOfSight = false; + } + } + + if (!clearLineOfSight && reachedTarget) { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new InteractionOcclusionTask(event)); + } + } + } + + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + if (event.getBlock() != null && event.getBlock().getType() != Material.AIR && !this.plugin.checkManager.isBypassed(event.getPlayer())) { + if (BlockUtil.calculateBreakTimeTicks(event.getBlock().getType(), event.getPlayer()) > 2L) { + if (this.cancelGhosthand) { + BlockIterator raycast; + try { + raycast = new BlockIterator(event.getPlayer(), 6); + } catch (IllegalStateException ex) { + return; + } + + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(event.getBlock())) { + reachedTarget = true; + break; + } + + if (GroundUtil.isSolidFullBlock(block)) { + break; + } + } + + if (!reachedTarget + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: broke through a block (GhostHand)" + )) { + event.setCancelled(true); + } + } + + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } + } + } + + @EventHandler + public void onBlockPlace(BlockPlaceEvent event) { + if (!this.plugin.checkManager.isBypassed(event.getPlayer())) { + Material againstType = event.getBlockAgainst().getType(); + if ((againstType == Material.LAVA || againstType == Material.WATER || againstType == Material.STATIONARY_LAVA || againstType == Material.STATIONARY_WATER) + && this.cancelLiquids + && event.getBlockPlaced().getType() != Material.WATER_LILY + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: Interacted with a liquid" + )) { + event.setCancelled(true); + } + + if (this.cancelGhosthand) { + BlockIterator raycast; + try { + raycast = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean clearLineOfSight = true; + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(event.getBlockAgainst())) { + reachedTarget = true; + } + + if (GroundUtil.isSolidFullBlock(block) && !block.equals(event.getBlock()) && !reachedTarget) { + clearLineOfSight = false; + } + } + + if (!clearLineOfSight) { + event.setCancelled(true); + } + } + } + } + + @EventHandler + public void onInventoryOpen(InventoryOpenEvent event) { + if (this.cancelGhosthand) { + try { + if (this.plugin.checkManager.isBypassed((Player)event.getPlayer())) { + return; + } + + if (event.getInventory() != null && event.getInventory().getHolder() != null) { + if (!(event.getInventory().getHolder() instanceof Minecart) && !(event.getInventory().getHolder() instanceof LivingEntity)) { + if (event.getInventory().getHolder() instanceof DoubleChest) { + DoubleChest doubleChest = (DoubleChest)event.getInventory().getHolder(); + + BlockIterator raycast; + try { + raycast = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean clearLineOfSight = true; + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(((BlockState)doubleChest.getLeftSide()).getBlock()) + || block.equals(((BlockState)doubleChest.getRightSide()).getBlock())) { + reachedTarget = true; + } + + if (GroundUtil.isSolidFullBlock(block) && !reachedTarget) { + clearLineOfSight = false; + } + } + + if (!clearLineOfSight + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)" + )) { + event.setCancelled(true); + return; + } + } else { + Block containerBlock; + try { + containerBlock = ((BlockState)event.getInventory().getHolder()).getBlock(); + } catch (Exception ex) { + return; + } + + BlockIterator raycast; + try { + raycast = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean clearLineOfSight = true; + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(containerBlock)) { + reachedTarget = true; + } + + if (GroundUtil.isSolidFullBlock(block) && !reachedTarget) { + clearLineOfSight = false; + } + } + + if (!clearLineOfSight + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)" + )) { + event.setCancelled(true); + return; + } + } + } + } + } catch (ClassCastException ignored) { + } + } + } + + private final class InteractionOcclusionTask implements Runnable { + private final PlayerInteractEvent interactEvent; + + private InteractionOcclusionTask(PlayerInteractEvent interactEvent) { + this.interactEvent = interactEvent; + } + + @Override + public void run() { + BlockIterator raycast; + try { + raycast = new BlockIterator(this.interactEvent.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean clearLineOfSight = true; + boolean reachedTarget = false; + + while (raycast.hasNext()) { + Block block = raycast.next(); + if (block.equals(this.interactEvent.getClickedBlock())) { + reachedTarget = true; + } + + if (GroundUtil.isSolidFullBlock(block) && !reachedTarget) { + clearLineOfSight = false; + } + } + + if (!clearLineOfSight + && reachedTarget + && ImpossibleInteract.this.recordViolation( + this.interactEvent.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + this.interactEvent.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)" + )) { + this.interactEvent.getPlayer().closeInventory(); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/NoSwing.java b/src/main/java/me/konsolas/aac/detectors/world/NoSwing.java new file mode 100644 index 0000000..c31f721 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/NoSwing.java @@ -0,0 +1,129 @@ +package me.konsolas.aac.detectors.world; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.general.NumberUtil; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.plugin.Plugin; + +public final class NoSwing extends Detector { + public NoSwing(AAC plugin) { + super(plugin); + NoSwingPacketListener listener = new NoSwingPacketListener(this.plugin, WrapperPlayClientUseEntity.TYPE); + this.packetListeners.add(listener); + ProtocolLibrary.getProtocolManager().addPacketListener(listener); + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + if (event.getPlayer().getGameMode() != GameMode.CREATIVE && !this.plugin.checkManager.isBypassed(event.getPlayer())) { + long breakTime = System.currentTimeMillis(); + Player player = event.getPlayer(); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new BlockSwingValidationTask(player, breakTime), 5L); + } + } + + private final class NoSwingPacketListener extends PacketAdapter { + private NoSwingPacketListener(Plugin plugin, PacketType... packetTypes) { + super(plugin, packetTypes); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (!NoSwing.this.plugin.checkManager.isBypassed(event.getPlayer())) { + if (event.getPacketType() != WrapperPlayClientUseEntity.TYPE + || new WrapperPlayClientUseEntity(event.getPacket()).getAction() == EntityUseAction.ATTACK) { + long attackTime = System.currentTimeMillis(); + Player player = event.getPlayer(); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new AttackSwingValidationTask(player, attackTime), 5L); + } + } + } + } + + private final class AttackSwingValidationTask implements Runnable { + private final Player player; + private final long attackTime; + + private AttackSwingValidationTask(Player player, long attackTime) { + this.player = player; + this.attackTime = attackTime; + } + + @Override + public void run() { + NoSwing.this.plugin + .logger + .logPlayerDebug( + this.player, + "(NoSwing) PlayClientUseEntity lastAnimated[e:" + + this.attackTime + + ",r:" + + NoSwing.this.plugin.playerStateTracker.getLastArmSwingTime(this.player) + + "]" + ); + + try { + if (!NumberUtil.approximatelyEqual( + this.attackTime, NoSwing.this.plugin.playerStateTracker.getLastArmSwingTime(this.player), 300 + Ping.getPing(this.player) + )) { + NoSwing.this.recordViolation( + this.player.getUniqueId(), 1, HackType.NOSWING, this.player.getName() + " failed NoSwing: didn't swing arm (attack)" + ); + } else { + NoSwing.this.decreaseViolationLevel(this.player.getUniqueId(), 2); + } + } catch (NullPointerException ignored) { + } + } + } + + private final class BlockSwingValidationTask implements Runnable { + private final Player player; + private final long breakTime; + + private BlockSwingValidationTask(Player player, long breakTime) { + this.player = player; + this.breakTime = breakTime; + } + + @Override + public void run() { + NoSwing.this.plugin + .logger + .logPlayerDebug( + this.player, + "(NoSwing) BlockBreakEvent lastAnimated[e:" + + this.breakTime + + ",r:" + + NoSwing.this.plugin.playerStateTracker.getLastArmSwingTime(this.player) + + "]" + ); + + try { + if (!NumberUtil.approximatelyEqual( + this.breakTime, NoSwing.this.plugin.playerStateTracker.getLastArmSwingTime(this.player), 299 + Ping.getPing(this.player) + )) { + NoSwing.this.recordViolation( + this.player.getUniqueId(), 1, HackType.NOSWING, this.player.getName() + " failed NoSwing: didn't swing arm (block break)" + ); + } else { + NoSwing.this.decreaseViolationLevel(this.player.getUniqueId(), 2); + } + } catch (NullPointerException ignored) { + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/Nuker.java b/src/main/java/me/konsolas/aac/detectors/world/Nuker.java new file mode 100644 index 0000000..d4d34d0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/Nuker.java @@ -0,0 +1,77 @@ +package me.konsolas.aac.detectors.world; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.detectors.Detector; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.util.Vector; + +public final class Nuker extends Detector { + private int maxBreaksPerSecond = 40; + private int vlDivisor = 41; + private final Map blockBreakCounts = new HashMap<>(); + private final Map lastBrokenPositions = new HashMap<>(); + + public Nuker(AAC plugin) { + super(plugin); + this.maxBreaksPerSecond = this.plugin.getConfig().getInt("nuker.max_breaks_per_second", this.maxBreaksPerSecond); + this.vlDivisor = this.plugin.getConfig().getInt("nuker.vl_divisor", this.vlDivisor); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetNukerBlockCountTask(), 6L, 20L)); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new NukerViolationDecayTask(), 6L, 50L)); + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + if (!this.plugin.checkManager.isBypassed(event.getPlayer())) { + UUID playerId = event.getPlayer().getUniqueId(); + Vector brokenPosition = event.getBlock().getLocation().toVector(); + if (!this.lastBrokenPositions.containsKey(playerId) || !this.lastBrokenPositions.get(playerId).equals(brokenPosition)) { + if (!this.blockBreakCounts.containsKey(playerId)) { + this.blockBreakCounts.put(playerId, 1); + } else { + int breakCount = this.blockBreakCounts.get(playerId) + 1; + this.blockBreakCounts.put(playerId, breakCount); + if (breakCount > this.maxBreaksPerSecond) { + if (breakCount % this.vlDivisor == 0 + && this.recordViolation( + playerId, + 1, + HackType.NUKER, + event.getPlayer().getName() + " failed Nuker: broke too many blocks (" + breakCount + " blocks/second)" + )) { + event.setCancelled(true); + } + + return; + } + } + + this.lastBrokenPositions.put(playerId, brokenPosition); + } + } + } + + private final class ResetNukerBlockCountTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Nuker.this.blockBreakCounts.put(player.getUniqueId(), 0); + } + } + } + + private final class NukerViolationDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Nuker.this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/world/PlayerRadar.java b/src/main/java/me/konsolas/aac/detectors/world/PlayerRadar.java new file mode 100644 index 0000000..8bd4bd9 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/PlayerRadar.java @@ -0,0 +1,159 @@ +package me.konsolas.aac.detectors.world; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.detectors.MoveListener; +import me.konsolas.aac.util.blocks.BlockUtil; +import org.bukkit.Bukkit; +import org.bukkit.block.Block; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.util.Vector; + +public final class PlayerRadar extends Detector implements MoveListener { + private double requiredDist = 15.0; + private double maxDist = 48.0; + + public PlayerRadar(AAC plugin) { + super(plugin); + this.requiredDist = this.plugin.getConfig().getDouble("playerradar.required_dist"); + this.maxDist = this.plugin.getConfig().getDouble("playerradar.max_dist"); + } + + @Override + public boolean shouldProcessMove(PlayerMoveEvent event) { + return event.getTo().getX() != event.getFrom().getX() + || event.getTo().getY() != event.getFrom().getY() + || event.getTo().getZ() != event.getFrom().getZ(); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean fromOnGround, boolean toOnGround) { + Player mover = event.getPlayer(); + + for (Player other : Bukkit.getServer().getOnlinePlayers()) { + if (other.getWorld().equals(mover.getWorld()) && !other.equals(mover)) { + double distanceSquared = mover.getLocation().distanceSquared(other.getLocation()); + if (!(distanceSquared < this.requiredDist * this.requiredDist) && !(distanceSquared > this.maxDist * this.maxDist)) { + Vector otherFeet = other.getLocation().toVector(); + Vector otherHead = other.getLocation().add(0.0, 1.9, 0.0).toVector(); + Vector moverFeet = mover.getLocation().toVector(); + Vector moverHead = mover.getLocation().add(0.0, 1.9, 0.0).toVector(); + int steps = (int)moverFeet.distance(otherFeet); + Vector feetToFeetStep = moverFeet.clone().subtract(otherFeet).normalize(); + Vector feetToHeadStep = moverHead.clone().subtract(otherFeet).normalize(); + Vector headToFeetStep = moverFeet.clone().subtract(otherHead).normalize(); + Vector headToHeadStep = moverHead.clone().subtract(otherHead).normalize(); + Vector rayPos = otherFeet.clone(); + boolean visible = true; + + for (int i = 0; i < steps; i++) { + Block block = mover.getWorld().getBlockAt(rayPos.toLocation(mover.getWorld())); + if (!BlockUtil.isTransparent(block.getType())) { + visible = false; + break; + } + + rayPos.add(feetToFeetStep); + } + + rayPos = otherFeet.clone(); + if (!visible) { + visible = true; + + for (int i = 0; i < steps; i++) { + Block block = mover.getWorld().getBlockAt(rayPos.toLocation(mover.getWorld())); + if (!BlockUtil.isTransparent(block.getType())) { + if (other.canSee(mover)) { + other.hidePlayer(mover); + } + + if (mover.canSee(other)) { + mover.hidePlayer(other); + } + + visible = false; + break; + } + + rayPos.add(feetToHeadStep); + } + } + + rayPos = otherHead.clone(); + if (!visible) { + visible = true; + + for (int i = 0; i < steps; i++) { + Block block = mover.getWorld().getBlockAt(rayPos.toLocation(mover.getWorld())); + if (!BlockUtil.isTransparent(block.getType())) { + if (other.canSee(mover)) { + other.hidePlayer(mover); + } + + if (mover.canSee(other)) { + mover.hidePlayer(other); + } + + visible = false; + break; + } + + rayPos.add(headToFeetStep); + } + } + + rayPos = otherHead.clone(); + if (!visible) { + visible = true; + + for (int i = 0; i < steps; i++) { + Block block = mover.getWorld().getBlockAt(rayPos.toLocation(mover.getWorld())); + if (!BlockUtil.isTransparent(block.getType())) { + if (other.canSee(mover)) { + other.hidePlayer(mover); + } + + if (mover.canSee(other)) { + mover.hidePlayer(other); + } + + visible = false; + break; + } + + rayPos.add(headToHeadStep); + } + } + + if (visible && !other.canSee(mover)) { + other.showPlayer(mover); + } + + if (visible && !mover.canSee(other)) { + mover.showPlayer(other); + } + } else { + if (!other.canSee(mover)) { + other.showPlayer(mover); + } + + if (!mover.canSee(other)) { + mover.showPlayer(other); + } + } + } + } + } + + @Override + public void destroy() { + super.destroy(); + + for (Player viewer : Bukkit.getServer().getOnlinePlayers()) { + for (Player target : Bukkit.getServer().getOnlinePlayers()) { + viewer.showPlayer(target); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/gui/GUIBase.java b/src/main/java/me/konsolas/aac/gui/GUIBase.java new file mode 100644 index 0000000..22a4db9 --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/GUIBase.java @@ -0,0 +1,76 @@ +package me.konsolas.aac.gui; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import me.konsolas.aac.AAC; +import me.konsolas.aac.internal.Destroyable; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.enchantments.Enchantment; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.HandlerList; +import org.bukkit.event.Listener; +import org.bukkit.event.inventory.InventoryClickEvent; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.ItemFlag; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.ItemMeta; + +public abstract class GUIBase implements Destroyable, Listener { + protected AAC plugin; + protected Inventory inventory; + private final Player player; + + public GUIBase(Player player, AAC plugin, int size, String title) { + this.player = player; + this.plugin = plugin; + player.closeInventory(); + this.inventory = Bukkit.createInventory(null, size, title); + Bukkit.getServer().getPluginManager().registerEvents(this, plugin); + } + + protected void setSlotItem(int slot, ItemStack item, int actionId, String displayName, List lore) { + ItemStack copy = new ItemStack(item); + ItemMeta meta = copy.getItemMeta(); + meta.setLore(lore); + meta.addItemFlags(ItemFlag.HIDE_ENCHANTS); + meta.addEnchant(Enchantment.DURABILITY, actionId, true); + meta.setDisplayName(displayName); + copy.setItemMeta(meta); + this.inventory.setItem(slot, copy); + } + + protected List createLore(String text, String delimiter) { + List lines = new ArrayList<>(); + String[] parts = text.split(delimiter); + Collections.addAll(lines, parts); + return lines; + } + + @EventHandler + public void onInventoryClick(InventoryClickEvent event) { + if (event.getInventory().getName().equals(this.inventory.getName()) + && event.getWhoClicked().getUniqueId().equals(this.getPlayer().getUniqueId()) + && event.getCurrentItem() != null + && event.getCurrentItem().getType() != Material.AIR) { + event.setCancelled(true); + this.destroy(); + int actionId = event.getCurrentItem().getEnchantmentLevel(Enchantment.DURABILITY); + this.onSlotClick(actionId); + } + } + + @Override + public void destroy() { + HandlerList.unregisterAll(this); + this.player.closeInventory(); + } + + public Player getPlayer() { + return this.player; + } + + protected abstract void onSlotClick(int actionId); +} diff --git a/src/main/java/me/konsolas/aac/gui/admin/CheckGUI.java b/src/main/java/me/konsolas/aac/gui/admin/CheckGUI.java new file mode 100644 index 0000000..6f06252 --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/admin/CheckGUI.java @@ -0,0 +1,62 @@ +package me.konsolas.aac.gui.admin; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.gui.GUIBase; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; + +public class CheckGUI extends GUIBase { + public CheckGUI(AAC plugin, Player player) { + super(player, plugin, calculateInventorySize(HackType.values().length), "§6AAC: Manage checks"); + + for (HackType hackType : HackType.values()) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + this.setSlotItem( + hackType.getId(), + new ItemStack(Material.EMERALD_BLOCK), + hackType.getId(), + hackType.toString(), + this.createLore("Click to disable the /" + hackType.getName() + " check.", "/") + ); + } else { + this.setSlotItem( + hackType.getId(), + new ItemStack(Material.REDSTONE_BLOCK), + hackType.getId(), + hackType.toString(), + this.createLore("Click to enable the /" + hackType.getName() + " check.", "/") + ); + } + } + + player.openInventory(this.inventory); + } + + private static int calculateInventorySize(int itemCount) { + if (itemCount <= 0) { + return 9; + } + + int rows = (int) Math.ceil(itemCount / 9.0); + return rows > 5 ? 54 : rows * 9; + } + + @Override + protected void onSlotClick(int actionId) { + for (HackType hackType : HackType.values()) { + if (hackType.getId() == actionId) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + this.plugin.checkManager.disableCheck(hackType, false); + this.plugin.logger.log("Check " + hackType + " was disabled by " + this.getPlayer().getName()); + } else { + this.plugin.checkManager.enableCheck(hackType, false); + this.plugin.logger.log("Check " + hackType + " was enabled by " + this.getPlayer().getName()); + } + + return; + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/gui/admin/HomeGUI.java b/src/main/java/me/konsolas/aac/gui/admin/HomeGUI.java new file mode 100644 index 0000000..50498f2 --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/admin/HomeGUI.java @@ -0,0 +1,78 @@ +package me.konsolas.aac.gui.admin; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.gui.GUIBase; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; + +public class HomeGUI extends GUIBase { + public HomeGUI(AAC plugin, Player player) { + super(player, plugin, 27, "§6AAC: Admin home"); + this.setSlotItem( + 10, + new ItemStack(Material.BED), + 1, + "Reload AAC", + this.createLore("Use this when you make changes/to the configuration file", "/") + ); + this.setSlotItem( + 16, + new ItemStack(Material.REDSTONE_COMPARATOR), + 2, + "Manage Checks", + this.createLore("Enable or disable checks in /AAC", "/") + ); + this.setSlotItem( + 12, + new ItemStack(Material.BOOK), + 3, + "List possible hackers", + this.createLore("List players in order of their /violations", "/") + ); + this.setSlotItem( + 14, + new ItemStack(Material.REDSTONE), + 4, + "Toggle verbose output", + this.createLore("Toggle verbose output generated /by AAC for yourself", "/") + ); + player.openInventory(this.inventory); + } + + @Override + protected void onSlotClick(int actionId) { + switch (actionId) { + case 1: + this.getPlayer().sendMessage(AAC.messagePrefix + "Reload request has been registered."); + this.plugin.logger.log("Reload requested by " + this.getPlayer().getName()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ReloadTask(), 1L); + break; + case 2: + new CheckGUI(this.plugin, this.getPlayer()); + break; + case 3: + new PlayerViolationsGUI(this.plugin, this.getPlayer()); + break; + case 4: + if (this.plugin.logger.verbosePlayerIds.contains(this.getPlayer().getUniqueId())) { + this.plugin.logger.verbosePlayerIds.remove(this.getPlayer().getUniqueId()); + this.getPlayer().sendMessage(AAC.messagePrefix + "AAC will now give you verbose output."); + } else { + this.plugin.logger.verbosePlayerIds.add(this.getPlayer().getUniqueId()); + this.getPlayer().sendMessage(AAC.messagePrefix + "AAC will no longer give you verbose output."); + } + break; + default: + break; + } + } + + private final class ReloadTask implements Runnable { + @Override + public void run() { + HomeGUI.this.plugin.reloadPlugin(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/gui/admin/PlayerViolationsGUI.java b/src/main/java/me/konsolas/aac/gui/admin/PlayerViolationsGUI.java new file mode 100644 index 0000000..9703f6d --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/admin/PlayerViolationsGUI.java @@ -0,0 +1,67 @@ +package me.konsolas.aac.gui.admin; + +import java.util.HashMap; +import java.util.Map; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.gui.GUIBase; +import me.konsolas.aac.util.general.MapUtil; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.SkullType; +import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.meta.SkullMeta; + +public class PlayerViolationsGUI extends GUIBase { + public PlayerViolationsGUI(AAC plugin, Player player) { + super(player, plugin, 54, "§6AAC: Manage player"); + Map violationTotals = new HashMap<>(); + int count = 0; + + for (Player online : Bukkit.getServer().getOnlinePlayers()) { + if (++count >= 54) { + break; + } + + violationTotals.put(online.getName(), 0); + + for (HackType hackType : HackType.values()) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + violationTotals.put( + online.getName(), + violationTotals.get(online.getName()) + this.plugin.checkManager.getCheck(hackType).getRecentViolationCount(online) + ); + } + } + } + + Map sortedViolations = MapUtil.sortByValueDescending(violationTotals); + int slot = 0; + + for (Map.Entry entry : sortedViolations.entrySet()) { + this.setSlotItem( + slot++, + createPlayerHead(Bukkit.getPlayer(entry.getKey()), entry.getKey()), + slot, + entry.getKey(), + this.createLore("VL: " + entry.getValue(), "/") + ); + } + + player.openInventory(this.inventory); + } + + private static ItemStack createPlayerHead(Player player, String displayName) { + ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal()); + SkullMeta meta = (SkullMeta) item.getItemMeta(); + meta.setOwner(player.getName()); + meta.setDisplayName(displayName); + item.setItemMeta(meta); + return item; + } + + @Override + protected void onSlotClick(int actionId) { + } +} diff --git a/src/main/java/me/konsolas/aac/heuristics/base/Heuristic.java b/src/main/java/me/konsolas/aac/heuristics/base/Heuristic.java new file mode 100644 index 0000000..ff82c97 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/base/Heuristic.java @@ -0,0 +1,68 @@ +package me.konsolas.aac.heuristics.base; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.internal.Destroyable; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.HandlerList; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; + +public abstract class Heuristic implements Listener, Destroyable { + protected AAC plugin; + private final Map scores = new HashMap<>(); + + public Heuristic(AAC plugin) { + this.plugin = plugin; + Bukkit.getServer().getPluginManager().registerEvents(this, this.plugin); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.scores.put(player.getUniqueId(), 0); + } + } + + protected void setRawScore(Player player, int score) { + this.scores.put(player.getUniqueId(), score > 0 ? score : 0); + } + + public int getRawScore(Player player) { + try { + this.updateScore(player); + return this.scores.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0; + } + } + + public abstract int getProbability(Player player); + + protected void updateScore(Player player) { + } + + @Override + public void destroy() { + HandlerList.unregisterAll(this); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerJoin(PlayerJoinEvent event) { + this.scores.put(event.getPlayer().getUniqueId(), 0); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerQuit(PlayerQuitEvent event) { + this.scores.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerKick(PlayerKickEvent event) { + this.scores.remove(event.getPlayer().getUniqueId()); + } +} diff --git a/src/main/java/me/konsolas/aac/heuristics/combat/AccuracyHeuristic.java b/src/main/java/me/konsolas/aac/heuristics/combat/AccuracyHeuristic.java new file mode 100644 index 0000000..9f2e10d --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/AccuracyHeuristic.java @@ -0,0 +1,83 @@ +package me.konsolas.aac.heuristics.combat; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.events.PacketListener; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.heuristics.base.Heuristic; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.entity.Player; +import org.bukkit.plugin.Plugin; + +public class AccuracyHeuristic extends Heuristic { + private final PacketListener packetListener; + private final ExpiringMap recentMovementPackets = ExpiringMap.builder() + .expiration(8L, TimeUnit.MILLISECONDS) + .expirationPolicy(ExpirationPolicy.CREATED) + .build(); + + public AccuracyHeuristic(AAC plugin) { + super(plugin); + this.packetListener = new AttackTimingPacketListener( + this.plugin, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.USE_ENTITY, Client.LOOK + ); + ProtocolLibrary.getProtocolManager().addPacketListener(this.packetListener); + } + + @Override + public void destroy() { + super.destroy(); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + } + + @Override + public int getProbability(Player player) { + int probability = (int) (Math.pow(this.getRawScore(player), 0.8) / 2.0); + return probability >= 100 ? 99 : probability; + } + + private final class AttackTimingPacketListener extends PacketAdapter { + private AttackTimingPacketListener(Plugin plugin, PacketType... types) { + super(plugin, types); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.USE_ENTITY) { + if (new WrapperPlayClientUseEntity(event.getPacket()).getAction() == EntityUseAction.ATTACK) { + if (AccuracyHeuristic.this.recentMovementPackets.containsKey(event.getPlayer().getUniqueId())) { + AccuracyHeuristic.this.plugin + .getServer() + .getScheduler() + .scheduleSyncDelayedTask(AccuracyHeuristic.this.plugin, new AttackTimingViolationTask(event.getPlayer()), 150L); + } else { + AccuracyHeuristic.this.setRawScore(event.getPlayer(), (int) (AccuracyHeuristic.this.getRawScore(event.getPlayer()) * 0.85)); + } + } + } else { + AccuracyHeuristic.this.recentMovementPackets.put(event.getPlayer().getUniqueId(), false); + } + } + } + + private final class AttackTimingViolationTask implements Runnable { + private final Player player; + + private AttackTimingViolationTask(Player player) { + this.player = player; + } + + @Override + public void run() { + AccuracyHeuristic.this.setRawScore(this.player, AccuracyHeuristic.this.getRawScore(this.player) + 50); + } + } +} diff --git a/src/main/java/me/konsolas/aac/heuristics/combat/AimbotHeuristic.java b/src/main/java/me/konsolas/aac/heuristics/combat/AimbotHeuristic.java new file mode 100644 index 0000000..4eaa162 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/AimbotHeuristic.java @@ -0,0 +1,221 @@ +package me.konsolas.aac.heuristics.combat; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.events.PacketListener; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.heuristics.base.Heuristic; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.Plugin; + +public class AimbotHeuristic extends Heuristic { + private final Map aimHistory = new HashMap<>(); + private final PacketListener packetListener; + private final int scoreDecayTaskId; + private final ExpiringMap recentAttackPackets; + private final Map previousPacketYaw = new HashMap<>(); + private final Map postAttackYaw = new HashMap<>(); + + public AimbotHeuristic(AAC plugin) { + super(plugin); + this.recentAttackPackets = ExpiringMap.builder() + .expiration(12L, TimeUnit.MILLISECONDS) + .expirationPolicy(ExpirationPolicy.CREATED) + .build(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.aimHistory.put(player.getUniqueId(), new AimHistory(player)); + } + + this.packetListener = new AimPacketListener(this.plugin, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.USE_ENTITY, Client.LOOK); + ProtocolLibrary.getProtocolManager().addPacketListener(this.packetListener); + this.scoreDecayTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new AimScoreDecayTask(), 50L, 73L); + } + + @EventHandler(priority = EventPriority.LOWEST) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + try { + if (event.getDamager().getType() == EntityType.PLAYER && !this.plugin.checkManager.isBypassed((Player) event.getDamager())) { + AimHistory history = this.aimHistory.get(event.getDamager().getUniqueId()); + Player attacker = (Player) event.getDamager(); + double currentYaw = attacker.getEyeLocation().getYaw(); + double currentPitch = attacker.getEyeLocation().getPitch(); + double yawDelta = Math.abs(history.lastYaw - currentYaw); + double pitchDelta = history.lastPitch - currentPitch; + long attackInterval = System.currentTimeMillis() - history.lastAttackTime; + if (attackInterval < 650L) { + if (pitchDelta >= 13.0) { + if (attackInterval <= 510L) { + this.setRawScore(attacker, this.getRawScore(attacker) + 70); + } + + this.setRawScore(attacker, this.getRawScore(attacker) + 101); + } else if (pitchDelta >= 10.0) { + if (attackInterval <= 510L) { + this.setRawScore(attacker, this.getRawScore(attacker) + 55); + } + + this.setRawScore(attacker, this.getRawScore(attacker) + 74); + } + + try { + if (history.lastTarget != null && history.lastTarget.equals(event.getEntity())) { + double targetMoved = history.lastTargetLocation.distance(event.getEntity().getLocation()); + if (targetMoved <= 0.05 && attacker.getLocation().distanceSquared(event.getEntity().getLocation()) <= 1.0) { + this.setRawScore(attacker, this.getRawScore(attacker) - 27); + return; + } + } + } catch (Exception ex) { + history.lastTarget = null; + return; + } + + if (yawDelta > 100.0 && yawDelta < 270.0) { + this.setRawScore(attacker, this.getRawScore(attacker) + 109); + if (attackInterval <= 510L) { + this.setRawScore(attacker, this.getRawScore(attacker) + 79); + } + + if (yawDelta > 150.0) { + this.setRawScore(attacker, this.getRawScore(attacker) + 89); + } + } else { + this.setRawScore(attacker, this.getRawScore(attacker) - 60); + } + } + + history.lastYaw = attacker.getLocation().getYaw(); + history.lastPitch = attacker.getLocation().getPitch(); + history.lastAttackTime = System.currentTimeMillis(); + history.lastTargetLocation = event.getEntity().getLocation(); + history.lastTarget = event.getEntity(); + } + } catch (NullPointerException ignored) { + } + } + + @Override + public void destroy() { + super.destroy(); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + Bukkit.getServer().getScheduler().cancelTask(this.scoreDecayTaskId); + } + + @Override + public int getProbability(Player player) { + double probability = Math.pow(this.getRawScore(player), 0.9) / 400.0; + return (int) Math.round(probability * 100.0 > 99.0 ? 99.0 : probability * 100.0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.aimHistory.put(event.getPlayer().getUniqueId(), new AimHistory(event.getPlayer())); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.aimHistory.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.aimHistory.remove(event.getPlayer().getUniqueId()); + } + + private static final class AimHistory { + private double lastYaw; + private double lastPitch; + private long lastAttackTime; + private Location lastTargetLocation; + private Entity lastTarget; + + private AimHistory(Player player) { + this.lastYaw = player.getLocation().getYaw(); + this.lastPitch = player.getLocation().getPitch(); + this.lastAttackTime = System.currentTimeMillis(); + this.lastTargetLocation = null; + this.lastTarget = null; + } + } + + private final class AimPacketListener extends PacketAdapter { + private AimPacketListener(Plugin plugin, PacketType... types) { + super(plugin, types); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + UUID playerId = event.getPlayer().getUniqueId(); + PacketType packetType = event.getPacketType(); + if (packetType == Client.USE_ENTITY) { + WrapperPlayClientUseEntity wrapper = new WrapperPlayClientUseEntity(event.getPacket()); + if (wrapper.getAction() == EntityUseAction.ATTACK) { + AimbotHeuristic.this.recentAttackPackets.put(playerId, false); + } + } else if (AimbotHeuristic.this.recentAttackPackets.containsKey(playerId)) { + if (packetType != Client.POSITION && packetType != Client.FLYING) { + AimbotHeuristic.this.postAttackYaw.put(playerId, event.getPacket().getFloat().read(0)); + AimbotHeuristic.this.recentAttackPackets.remove(playerId); + } else { + AimbotHeuristic.this.recentAttackPackets.remove(playerId); + } + } else if (AimbotHeuristic.this.postAttackYaw.containsKey(playerId)) { + if (packetType != Client.POSITION && packetType != Client.FLYING) { + Float previousYaw = AimbotHeuristic.this.previousPacketYaw.get(playerId); + if (previousYaw != null) { + float currentYaw = event.getPacket().getFloat().read(0); + int diffFromPrevious = (int) Math.abs((double) currentYaw - previousYaw); + int diffFromPostAttack = (int) Math.abs((double) currentYaw - AimbotHeuristic.this.postAttackYaw.get(playerId)); + if (diffFromPrevious < diffFromPostAttack - 5) { + AimbotHeuristic.this.setRawScore(event.getPlayer(), AimbotHeuristic.this.getRawScore(event.getPlayer()) + 91); + } + } + } else { + AimbotHeuristic.this.setRawScore(event.getPlayer(), AimbotHeuristic.this.getRawScore(event.getPlayer()) + 49); + } + + AimbotHeuristic.this.postAttackYaw.remove(playerId); + } else if (packetType == Client.LOOK || packetType == Client.POSITION_LOOK) { + float yaw = event.getPacket().getFloat().read(0); + AimbotHeuristic.this.previousPacketYaw.put(playerId, yaw); + } + } + } + + private final class AimScoreDecayTask implements Runnable { + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + AimbotHeuristic.this.setRawScore(player, (int) (AimbotHeuristic.this.getRawScore(player) * 0.99)); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/heuristics/combat/ReachHeuristic.java b/src/main/java/me/konsolas/aac/heuristics/combat/ReachHeuristic.java new file mode 100644 index 0000000..6a3b37d --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/ReachHeuristic.java @@ -0,0 +1,117 @@ +package me.konsolas.aac.heuristics.combat; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.heuristics.base.Heuristic; +import me.konsolas.aac.heuristics.util.SampleData; +import me.konsolas.aac.util.EntityTargetCategories; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerKickEvent; +import org.bukkit.event.player.PlayerQuitEvent; + +public class ReachHeuristic extends Heuristic { + private final Map reachHistory = new HashMap<>(); + + public ReachHeuristic(AAC plugin) { + super(plugin); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.reachHistory.put(player.getUniqueId(), new ReachHistory()); + } + } + + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (event.getCause() != DamageCause.ENTITY_ATTACK) { + return; + } + + try { + if (!EntityTargetCategories.isReachTarget(event.getEntity().getType())) { + return; + } + + if (event.getDamager().getType() == EntityType.PLAYER && !this.plugin.checkManager.isBypassed((Player) event.getDamager())) { + ReachHistory history = this.reachHistory.get(event.getDamager().getUniqueId()); + if (System.currentTimeMillis() - history.lastAttackTime > 1200L) { + history.lastAttackTime = System.currentTimeMillis(); + return; + } + + Player attacker = (Player) event.getDamager(); + + try { + if (history.lastTarget != null && history.lastTarget.equals(event.getEntity())) { + double targetMoved = history.lastTargetLocation.distance(event.getEntity().getLocation()); + if (targetMoved <= 0.1 || attacker.getLocation().distanceSquared(event.getEntity().getLocation()) <= 1.2) { + return; + } + } + } catch (Exception ex) { + return; + } + + history.distances.add(attacker.getLocation().distance(event.getEntity().getLocation())); + if (history.distances.getSamples().size() > 12) { + double averageDistance = history.distances.getAverage(); + this.setRawScore(attacker, (int) ((averageDistance - 2.9) * 1000.0)); + } + + history.lastAttackTime = System.currentTimeMillis(); + history.lastTargetLocation = event.getEntity().getLocation(); + history.lastTarget = event.getEntity(); + } + } catch (NullPointerException ex) { + this.plugin.logger.log("(ReachHeuristic) caught an NPE"); + } + } + + @Override + protected void updateScore(Player player) { + } + + @Override + public int getProbability(Player player) { + double probability = Math.pow(this.getRawScore(player), 0.9) / 440.0; + return (int) Math.round(probability * 100.0 > 99.0 ? 99.0 : probability * 100.0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.reachHistory.put(event.getPlayer().getUniqueId(), new ReachHistory()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.reachHistory.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.reachHistory.remove(event.getPlayer().getUniqueId()); + } + + private static final class ReachHistory { + private final SampleData distances = new SampleData<>(16); + private long lastAttackTime = System.currentTimeMillis(); + private Location lastTargetLocation = null; + private Entity lastTarget = null; + } +} diff --git a/src/main/java/me/konsolas/aac/heuristics/util/SampleData.java b/src/main/java/me/konsolas/aac/heuristics/util/SampleData.java new file mode 100644 index 0000000..d5dd0c1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/util/SampleData.java @@ -0,0 +1,41 @@ +package me.konsolas.aac.heuristics.util; + +import java.util.ArrayDeque; +import java.util.Collection; +import java.util.Deque; + +public class SampleData { + private final Deque samples; + private final int capacity; + + public SampleData(int capacity) { + this.capacity = capacity; + this.samples = new ArrayDeque<>(capacity); + } + + public void add(T sample) { + if (this.samples.size() >= this.capacity) { + this.samples.poll(); + } + + this.samples.add(sample); + } + + public Collection getSamples() { + return this.samples; + } + + public double getAverage() { + double sum = 0.0; + + for (T sample : this.samples) { + sum += sample.doubleValue(); + } + + return sum / this.samples.size(); + } + + public void clear() { + this.samples.clear(); + } +} diff --git a/src/main/java/me/konsolas/aac/hooks/Hook.java b/src/main/java/me/konsolas/aac/hooks/Hook.java new file mode 100644 index 0000000..979ae97 --- /dev/null +++ b/src/main/java/me/konsolas/aac/hooks/Hook.java @@ -0,0 +1,12 @@ +package me.konsolas.aac.hooks; + +import me.konsolas.aac.AAC; +import org.bukkit.event.Listener; + +public abstract class Hook implements Listener { + protected AAC plugin; + + public Hook(AAC plugin) { + this.plugin = plugin; + } +} diff --git a/src/main/java/me/konsolas/aac/hooks/McMMO.java b/src/main/java/me/konsolas/aac/hooks/McMMO.java new file mode 100644 index 0000000..b3f2aee --- /dev/null +++ b/src/main/java/me/konsolas/aac/hooks/McMMO.java @@ -0,0 +1,60 @@ +package me.konsolas.aac.hooks; + +import com.gmail.nossr50.api.AbilityAPI; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.PlayerViolationEvent; +import org.bukkit.entity.Entity; +import org.bukkit.entity.LivingEntity; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; + +public class McMMO extends Hook { + public McMMO(AAC plugin) { + super(plugin); + } + + @EventHandler(priority = EventPriority.LOWEST) + public void onPlayerViolation(PlayerViolationEvent event) { + try { + if (event.getPlayer() == null || !event.getPlayer().isOnline()) { + return; + } + + switch (event.getHackType()) { + case ANGLE: + case REACH: + case KILLAURA: + if (AbilityAPI.serratedStrikesEnabled(event.getPlayer()) || AbilityAPI.skullSplitterEnabled(event.getPlayer())) { + event.setCancelled(true); + } + + for (Entity nearby : event.getPlayer().getNearbyEntities(7.0, 7.0, 7.0)) { + if (nearby instanceof LivingEntity && AbilityAPI.isBleeding((LivingEntity) nearby)) { + event.setCancelled(true); + return; + } + } + break; + case NOSWING: + if (AbilityAPI.isAnyAbilityEnabled(event.getPlayer())) { + event.setCancelled(true); + } + break; + case FASTBREAK: + case NUKER: + case IMPOSSIBLEINTERACT: + case PHASE: + if (AbilityAPI.berserkEnabled(event.getPlayer()) + || AbilityAPI.gigaDrillBreakerEnabled(event.getPlayer()) + || AbilityAPI.superBreakerEnabled(event.getPlayer()) + || AbilityAPI.treeFellerEnabled(event.getPlayer())) { + event.setCancelled(true); + } + break; + default: + break; + } + } catch (Exception ignored) { + } + } +} diff --git a/src/main/java/me/konsolas/aac/internal/Destroyable.java b/src/main/java/me/konsolas/aac/internal/Destroyable.java new file mode 100644 index 0000000..42f572b --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/Destroyable.java @@ -0,0 +1,5 @@ +package me.konsolas.aac.internal; + +public interface Destroyable { + void destroy(); +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/AbstractPacket.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/AbstractPacket.java new file mode 100644 index 0000000..7d66490 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/AbstractPacket.java @@ -0,0 +1,44 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketContainer; +import com.google.common.base.Objects; +import java.lang.reflect.InvocationTargetException; +import org.bukkit.entity.Player; + +public abstract class AbstractPacket { + protected PacketContainer handle; + + protected AbstractPacket(PacketContainer handle, PacketType type) { + if (handle == null) { + throw new IllegalArgumentException("Packet handle cannot be NULL."); + } + + if (!Objects.equal(handle.getType(), type)) { + throw new IllegalArgumentException(handle.getHandle() + " is not a packet of type " + type); + } + + this.handle = handle; + } + + public PacketContainer getHandle() { + return this.handle; + } + + public void sendPacket(Player receiver) { + try { + ProtocolLibrary.getProtocolManager().sendServerPacket(receiver, this.getHandle()); + } catch (InvocationTargetException e) { + throw new RuntimeException("Cannot send packet.", e); + } + } + + public void receivePacket(Player sender) { + try { + ProtocolLibrary.getProtocolManager().recieveClientPacket(sender, this.getHandle()); + } catch (Exception e) { + throw new RuntimeException("Cannot recieve packet.", e); + } + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayClientUseEntity.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayClientUseEntity.java new file mode 100644 index 0000000..28fef65 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayClientUseEntity.java @@ -0,0 +1,43 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import org.bukkit.util.Vector; + +public class WrapperPlayClientUseEntity extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Client.USE_ENTITY; + + public WrapperPlayClientUseEntity() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayClientUseEntity(PacketContainer packet) { + super(packet, TYPE); + } + + public int getTargetID() { + return this.handle.getIntegers().read(0); + } + + public void setTargetID(int value) { + this.handle.getIntegers().write(0, value); + } + + public EntityUseAction getAction() { + return this.handle.getEntityUseActions().read(0); + } + + public void setAction(EntityUseAction value) { + this.handle.getEntityUseActions().write(0, value); + } + + public Vector getTargetVector() { + return this.handle.getVectors().read(0); + } + + public void setTargetVector(Vector value) { + this.handle.getVectors().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerAnimation.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerAnimation.java new file mode 100644 index 0000000..d121410 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerAnimation.java @@ -0,0 +1,44 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import org.bukkit.World; +import org.bukkit.entity.Entity; + +public class WrapperPlayServerAnimation extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ANIMATION; + + public WrapperPlayServerAnimation() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerAnimation(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public int getAnimation() { + return this.handle.getIntegers().read(1); + } + + public void setAnimation(int value) { + this.handle.getIntegers().write(1, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityDestroy.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityDestroy.java new file mode 100644 index 0000000..f88c7d1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityDestroy.java @@ -0,0 +1,29 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; + +public class WrapperPlayServerEntityDestroy extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_DESTROY; + + public WrapperPlayServerEntityDestroy() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityDestroy(PacketContainer packet) { + super(packet, TYPE); + } + + public int getCount() { + return this.handle.getIntegerArrays().read(0).length; + } + + public int[] getEntityIds() { + return this.handle.getIntegerArrays().read(0); + } + + public void setEntityIds(int[] value) { + this.handle.getIntegerArrays().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityEquipment.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityEquipment.java new file mode 100644 index 0000000..f1d5c10 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityEquipment.java @@ -0,0 +1,42 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import org.bukkit.inventory.ItemStack; + +public class WrapperPlayServerEntityEquipment extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_EQUIPMENT; + + public WrapperPlayServerEntityEquipment() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityEquipment(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public int getSlot() { + return this.handle.getIntegers().read(1); + } + + public void setSlot(int value) { + this.handle.getIntegers().write(1, value); + } + + public ItemStack getItem() { + return this.handle.getItemModifier().read(0); + } + + public void setItem(ItemStack value) { + this.handle.getItemModifier().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMetadata.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMetadata.java new file mode 100644 index 0000000..81346cf --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMetadata.java @@ -0,0 +1,46 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.wrappers.WrappedWatchableObject; +import java.util.List; +import org.bukkit.World; +import org.bukkit.entity.Entity; + +public class WrapperPlayServerEntityMetadata extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_METADATA; + + public WrapperPlayServerEntityMetadata() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityMetadata(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public List getMetadata() { + return this.handle.getWatchableCollectionModifier().read(0); + } + + public void setMetadata(List value) { + this.handle.getWatchableCollectionModifier().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMoveLook.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMoveLook.java new file mode 100644 index 0000000..754644a --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMoveLook.java @@ -0,0 +1,73 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; + +public class WrapperPlayServerEntityMoveLook extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_MOVE_LOOK; + + public WrapperPlayServerEntityMoveLook() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityMoveLook(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public double getDx() { + return this.handle.getBytes().read(0) / 32.0; + } + + public void setDx(double value) { + this.handle.getBytes().write(0, (byte) (value * 32.0)); + } + + public double getDy() { + return this.handle.getBytes().read(0) / 32.0; + } + + public void setDy(double value) { + this.handle.getBytes().write(0, (byte) (value * 32.0)); + } + + public double getDz() { + return this.handle.getBytes().read(0) / 32.0; + } + + public void setDz(double value) { + this.handle.getBytes().write(0, (byte) (value * 32.0)); + } + + public float getYaw() { + return this.handle.getBytes().read(0) * 360.0F / 256.0F; + } + + public void setYaw(float value) { + this.handle.getBytes().write(0, (byte) (value * 256.0F / 360.0F)); + } + + public float getPitch() { + return this.handle.getBytes().read(1) * 360.0F / 256.0F; + } + + public void setPitch(float value) { + this.handle.getBytes().write(1, (byte) (value * 256.0F / 360.0F)); + } + + public boolean getOnGround() { + return this.handle.getSpecificModifier(boolean.class).read(0); + } + + public void setOnGround(boolean value) { + this.handle.getSpecificModifier(boolean.class).write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityStatus.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityStatus.java new file mode 100644 index 0000000..87106c0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityStatus.java @@ -0,0 +1,44 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import org.bukkit.World; +import org.bukkit.entity.Entity; + +public class WrapperPlayServerEntityStatus extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_STATUS; + + public WrapperPlayServerEntityStatus() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityStatus(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public byte getEntityStatus() { + return this.handle.getBytes().read(0); + } + + public void setEntityStatus(byte value) { + this.handle.getBytes().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityTeleport.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityTeleport.java new file mode 100644 index 0000000..f77b84f --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityTeleport.java @@ -0,0 +1,76 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import org.bukkit.World; +import org.bukkit.entity.Entity; + +public class WrapperPlayServerEntityTeleport extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_TELEPORT; + + public WrapperPlayServerEntityTeleport() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityTeleport(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public double getX() { + return this.handle.getDoubles().read(0); + } + + public void setX(double value) { + this.handle.getDoubles().write(0, value); + } + + public double getY() { + return this.handle.getDoubles().read(1); + } + + public void setY(double value) { + this.handle.getDoubles().write(1, value); + } + + public double getZ() { + return this.handle.getDoubles().read(2); + } + + public void setZ(double value) { + this.handle.getDoubles().write(2, value); + } + + public float getYaw() { + return this.handle.getBytes().read(0) * 360.0F / 256.0F; + } + + public void setYaw(float value) { + this.handle.getBytes().write(0, (byte) (value * 256.0F / 360.0F)); + } + + public float getPitch() { + return this.handle.getBytes().read(1) * 360.0F / 256.0F; + } + + public void setPitch(float value) { + this.handle.getBytes().write(1, (byte) (value * 256.0F / 360.0F)); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityVelocity.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityVelocity.java new file mode 100644 index 0000000..d163c97 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityVelocity.java @@ -0,0 +1,65 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import org.bukkit.World; +import org.bukkit.entity.Entity; +import org.bukkit.util.Vector; + +public class WrapperPlayServerEntityVelocity extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.ENTITY_VELOCITY; + + public WrapperPlayServerEntityVelocity() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerEntityVelocity(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public double getVelocityX() { + return this.handle.getIntegers().read(1) / 8000.0; + } + + public void setVelocityX(double value) { + this.handle.getIntegers().write(1, (int) (value * 8000.0)); + } + + public double getVelocityY() { + return this.handle.getIntegers().read(2) / 8000.0; + } + + public void setVelocityY(double value) { + this.handle.getIntegers().write(2, (int) (value * 8000.0)); + } + + public double getVelocityZ() { + return this.handle.getIntegers().read(3) / 8000.0; + } + + public void setVelocityZ(double value) { + this.handle.getIntegers().write(3, (int) (value * 8000.0)); + } + + public Vector getVelocity() { + return new Vector(this.getVelocityX(), this.getVelocityY(), this.getVelocityZ()); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerNamedEntitySpawn.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerNamedEntitySpawn.java new file mode 100644 index 0000000..1cbb779 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerNamedEntitySpawn.java @@ -0,0 +1,94 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.wrappers.WrappedDataWatcher; +import java.util.UUID; +import org.bukkit.util.Vector; + +public class WrapperPlayServerNamedEntitySpawn extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.NAMED_ENTITY_SPAWN; + + public WrapperPlayServerNamedEntitySpawn() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerNamedEntitySpawn(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public UUID getPlayerUUID() { + return this.handle.getSpecificModifier(UUID.class).read(0); + } + + public void setPlayerUUID(UUID value) { + this.handle.getSpecificModifier(UUID.class).write(0, value); + } + + public Vector getPosition() { + return new Vector(this.getX(), this.getY(), this.getZ()); + } + + public void setPosition(Vector position) { + this.setX(position.getX()); + this.setY(position.getY()); + this.setZ(position.getZ()); + } + + public double getX() { + return this.handle.getDoubles().read(0); + } + + public void setX(double value) { + this.handle.getDoubles().write(0, value); + } + + public double getY() { + return this.handle.getDoubles().read(1); + } + + public void setY(double value) { + this.handle.getDoubles().write(1, value); + } + + public double getZ() { + return this.handle.getDoubles().read(2); + } + + public void setZ(double value) { + this.handle.getDoubles().write(2, value); + } + + public float getYaw() { + return this.handle.getBytes().read(0) * 360.0F / 256.0F; + } + + public void setYaw(float value) { + this.handle.getBytes().write(0, (byte) (value * 256.0F / 360.0F)); + } + + public float getPitch() { + return this.handle.getBytes().read(1) * 360.0F / 256.0F; + } + + public void setPitch(float value) { + this.handle.getBytes().write(1, (byte) (value * 256.0F / 360.0F)); + } + + public WrappedDataWatcher getMetadata() { + return this.handle.getDataWatcherModifier().read(0); + } + + public void setMetadata(WrappedDataWatcher value) { + this.handle.getDataWatcherModifier().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPlayerInfo.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPlayerInfo.java new file mode 100644 index 0000000..b9060a1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPlayerInfo.java @@ -0,0 +1,36 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; +import com.comphenix.protocol.wrappers.PlayerInfoData; +import java.util.List; + +public class WrapperPlayServerPlayerInfo extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.PLAYER_INFO; + + public WrapperPlayServerPlayerInfo() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerPlayerInfo(PacketContainer packet) { + super(packet, TYPE); + } + + public PlayerInfoAction getAction() { + return this.handle.getPlayerInfoAction().read(0); + } + + public void setAction(PlayerInfoAction value) { + this.handle.getPlayerInfoAction().write(0, value); + } + + public List getData() { + return this.handle.getPlayerInfoDataLists().read(0); + } + + public void setData(List value) { + this.handle.getPlayerInfoDataLists().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPosition.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPosition.java new file mode 100644 index 0000000..8e31561 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPosition.java @@ -0,0 +1,89 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.reflect.StructureModifier; +import com.comphenix.protocol.utility.MinecraftReflection; +import com.comphenix.protocol.wrappers.BukkitConverters; +import com.comphenix.protocol.wrappers.EnumWrappers; +import java.util.Set; + +public class WrapperPlayServerPosition extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.POSITION; + private static final Class FLAGS_CLASS = MinecraftReflection.getMinecraftClass( + "EnumPlayerTeleportFlags", "PacketPlayOutPosition$EnumPlayerTeleportFlags" + ); + + public WrapperPlayServerPosition() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerPosition(PacketContainer packet) { + super(packet, TYPE); + } + + public double getX() { + return this.handle.getDoubles().read(0); + } + + public void setX(double value) { + this.handle.getDoubles().write(0, value); + } + + public double getY() { + return this.handle.getDoubles().read(1); + } + + public void setY(double value) { + this.handle.getDoubles().write(1, value); + } + + public double getZ() { + return this.handle.getDoubles().read(2); + } + + public void setZ(double value) { + this.handle.getDoubles().write(2, value); + } + + public float getYaw() { + return this.handle.getFloat().read(0); + } + + public void setYaw(float value) { + this.handle.getFloat().write(0, value); + } + + public float getPitch() { + return this.handle.getFloat().read(1); + } + + public void setPitch(float value) { + this.handle.getFloat().write(1, value); + } + + @SuppressWarnings("deprecation") + private StructureModifier> getFlagsModifier() { + return this.handle.getModifier().withType( + Set.class, + BukkitConverters.getSetConverter(FLAGS_CLASS, EnumWrappers.getGenericConverter(PlayerTeleportFlag.class)) + ); + } + + public Set getFlags() { + return this.getFlagsModifier().read(0); + } + + public void setFlags(Set value) { + this.getFlagsModifier().write(0, value); + } + + public enum PlayerTeleportFlag { + X, + Y, + Z, + Y_ROT, + X_ROT + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerRelEntityMove.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerRelEntityMove.java new file mode 100644 index 0000000..b6aa984 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerRelEntityMove.java @@ -0,0 +1,57 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; + +public class WrapperPlayServerRelEntityMove extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.REL_ENTITY_MOVE; + + public WrapperPlayServerRelEntityMove() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerRelEntityMove(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + public double getDx() { + return this.handle.getShorts().read(0) / 4096.0; + } + + public void setDx(double value) { + this.handle.getShorts().write(0, (short) (value * 32.0 * 128.0)); + } + + public double getDy() { + return this.handle.getShorts().read(1) / 4096.0; + } + + public void setDy(double value) { + this.handle.getShorts().write(1, (short) (value * 32.0 * 128.0)); + } + + public double getDz() { + return this.handle.getShorts().read(2) / 4096.0; + } + + public void setDz(double value) { + this.handle.getShorts().write(2, (short) (value * 32.0 * 128.0)); + } + + public boolean getOnGround() { + return this.handle.getSpecificModifier(boolean.class).read(0); + } + + public void setOnGround(boolean value) { + this.handle.getSpecificModifier(boolean.class).write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerSpawnEntityLiving.java b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerSpawnEntityLiving.java new file mode 100644 index 0000000..340cef3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerSpawnEntityLiving.java @@ -0,0 +1,143 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketContainer; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.injector.PacketConstructor; +import com.comphenix.protocol.wrappers.WrappedDataWatcher; +import org.bukkit.World; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; + +public class WrapperPlayServerSpawnEntityLiving extends AbstractPacket { + public static final PacketType TYPE = PacketType.Play.Server.SPAWN_ENTITY_LIVING; + private static PacketConstructor entityConstructor; + + public WrapperPlayServerSpawnEntityLiving() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerSpawnEntityLiving(PacketContainer packet) { + super(packet, TYPE); + } + + public WrapperPlayServerSpawnEntityLiving(Entity entity) { + super(fromEntity(entity), TYPE); + } + + private static PacketContainer fromEntity(Entity entity) { + if (entityConstructor == null) { + entityConstructor = ProtocolLibrary.getProtocolManager().createPacketConstructor(TYPE, entity); + } + + return entityConstructor.createPacket(entity); + } + + public int getEntityID() { + return this.handle.getIntegers().read(0); + } + + public Entity getEntity(World world) { + return this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public void setEntityID(int value) { + this.handle.getIntegers().write(0, value); + } + + @SuppressWarnings("deprecation") + public EntityType getType() { + return EntityType.fromId(this.handle.getIntegers().read(1)); + } + + @SuppressWarnings("deprecation") + public void setType(EntityType value) { + this.handle.getIntegers().write(1, (int) value.getTypeId()); + } + + public double getX() { + return this.handle.getDoubles().read(0); + } + + public void setX(double value) { + this.handle.getDoubles().write(0, value); + } + + public double getY() { + return this.handle.getDoubles().read(1); + } + + public void setY(double value) { + this.handle.getDoubles().write(1, value); + } + + public double getZ() { + return this.handle.getDoubles().read(2); + } + + public void setZ(double value) { + this.handle.getDoubles().write(2, value); + } + + public float getYaw() { + return this.handle.getBytes().read(0) * 360.0F / 256.0F; + } + + public void setYaw(float value) { + this.handle.getBytes().write(0, (byte) (value * 256.0F / 360.0F)); + } + + public float getPitch() { + return this.handle.getBytes().read(1) * 360.0F / 256.0F; + } + + public void setPitch(float value) { + this.handle.getBytes().write(1, (byte) (value * 256.0F / 360.0F)); + } + + public float getHeadPitch() { + return this.handle.getBytes().read(2) * 360.0F / 256.0F; + } + + public void setHeadPitch(float value) { + this.handle.getBytes().write(2, (byte) (value * 256.0F / 360.0F)); + } + + public double getVelocityX() { + return this.handle.getIntegers().read(5) / 8000.0; + } + + public void setVelocityX(double value) { + this.handle.getIntegers().write(5, (int) (value * 8000.0)); + } + + public double getVelocityY() { + return this.handle.getIntegers().read(6) / 8000.0; + } + + public void setVelocityY(double value) { + this.handle.getIntegers().write(6, (int) (value * 8000.0)); + } + + public double getVelocityZ() { + return this.handle.getIntegers().read(7) / 8000.0; + } + + public void setVelocityZ(double value) { + this.handle.getIntegers().write(7, (int) (value * 8000.0)); + } + + public WrappedDataWatcher getMetadata() { + return this.handle.getDataWatcherModifier().read(0); + } + + public void setMetadata(WrappedDataWatcher value) { + this.handle.getDataWatcherModifier().write(0, value); + } +} diff --git a/src/main/java/me/konsolas/aac/lang/Messages.java b/src/main/java/me/konsolas/aac/lang/Messages.java new file mode 100644 index 0000000..4d16113 --- /dev/null +++ b/src/main/java/me/konsolas/aac/lang/Messages.java @@ -0,0 +1,56 @@ +package me.konsolas.aac.lang; + +import java.io.File; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import me.konsolas.aac.AAC; +import org.bukkit.configuration.file.FileConfiguration; +import org.bukkit.configuration.file.YamlConfiguration; + +public class Messages { + private final AAC plugin; + private FileConfiguration configuration = null; + private File configurationFile = null; + + public Messages(AAC plugin) { + this.plugin = plugin; + this.saveDefaultConfig(); + } + + public String getMessage(String key) { + return this.getConfig().getString(key); + } + + public FileConfiguration getConfig() { + if (this.configuration == null) { + this.reloadConfig(); + } + + return this.configuration; + } + + public void reloadConfig() { + if (this.configurationFile == null) { + this.configurationFile = new File(this.plugin.getDataFolder(), "language.yml"); + } + + this.configuration = YamlConfiguration.loadConfiguration(this.configurationFile); + InputStream defaultStream = this.plugin.getResource("language.yml"); + if (defaultStream != null) { + InputStreamReader reader = new InputStreamReader(defaultStream, StandardCharsets.UTF_8); + YamlConfiguration defaultConfig = YamlConfiguration.loadConfiguration(reader); + this.configuration.setDefaults(defaultConfig); + } + } + + public void saveDefaultConfig() { + if (this.configurationFile == null) { + this.configurationFile = new File(this.plugin.getDataFolder(), "language.yml"); + } + + if (!this.configurationFile.exists()) { + this.plugin.saveResource("language.yml", false); + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/BlockCache.java b/src/main/java/me/konsolas/aac/util/BlockCache.java new file mode 100644 index 0000000..5e8adce --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/BlockCache.java @@ -0,0 +1,97 @@ +package me.konsolas.aac.util; + +import java.util.HashMap; +import java.util.Map; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.World; +import org.bukkit.block.Block; + +public class BlockCache { + private final double originX; + private final double originY; + private final double originZ; + private final World world; + private final Map cachedBlocks = new HashMap<>(); + + public BlockCache(Location location) { + this.originX = location.getX(); + this.originY = location.getY(); + this.originZ = location.getZ(); + this.world = location.getWorld(); + } + + public Block getOffsetBlock(double dx, double dy, double dz) { + return this.getBlockAt( + (int) Math.floor(this.originX + dx), + (int) Math.floor(this.originY + dy), + (int) Math.floor(this.originZ + dz) + ); + } + + public Block getNegativeOffsetBlock(double dx, double dy, double dz) { + return this.getBlockAt( + (int) Math.floor(this.originX - dx), + (int) Math.floor(this.originY - dy), + (int) Math.floor(this.originZ - dz) + ); + } + + public Material getOffsetMaterial(double dx, double dy, double dz) { + return this.getOffsetBlock(dx, dy, dz).getType(); + } + + public Material getNegativeOffsetMaterial(double dx, double dy, double dz) { + return this.getNegativeOffsetBlock(dx, dy, dz).getType(); + } + + private Block getBlockAt(int x, int y, int z) { + BlockPosition position = new BlockPosition(x, y, z); + Block cached = this.cachedBlocks.get(position); + if (cached != null) { + return cached; + } + + Block block = this.world.getBlockAt(x, y, z); + this.cachedBlocks.put(position, block); + return block; + } + + public Block getOriginBlock() { + return this.getBlockAt((int) this.originX, (int) this.originY, (int) this.originZ); + } + + private static final class BlockPosition { + private final int x; + private final int y; + private final int z; + + private BlockPosition(int x, int y, int z) { + this.x = x; + this.y = y; + this.z = z; + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + + if (!(other instanceof BlockPosition)) { + return false; + } + + BlockPosition position = (BlockPosition) other; + return position.x == this.x && position.y == this.y && position.z == this.z; + } + + @Override + public int hashCode() { + int result = 17; + result = 31 * result + this.x; + result = 31 * result + this.y; + return 31 * result + this.z; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/CombatDecoyPair.java b/src/main/java/me/konsolas/aac/util/CombatDecoyPair.java new file mode 100644 index 0000000..77f0862 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/CombatDecoyPair.java @@ -0,0 +1,378 @@ +package me.konsolas.aac.util; + +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketAdapter; +import com.comphenix.protocol.events.PacketEvent; +import com.comphenix.protocol.events.PacketListener; +import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction; +import com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode; +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; +import com.comphenix.protocol.wrappers.PlayerInfoData; +import com.comphenix.protocol.wrappers.WrappedChatComponent; +import com.comphenix.protocol.wrappers.WrappedDataWatcher; +import com.comphenix.protocol.wrappers.WrappedDataWatcher.Registry; +import com.comphenix.protocol.wrappers.WrappedDataWatcher.WrappedDataWatcherObject; +import com.comphenix.protocol.wrappers.WrappedGameProfile; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ThreadLocalRandom; +import me.konsolas.aac.AAC; +import me.konsolas.aac.detectors.combat.Angle; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayClientUseEntity; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityDestroy; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityTeleport; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerNamedEntitySpawn; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerPlayerInfo; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerSpawnEntityLiving; +import me.konsolas.aac.util.general.NumberUtil; +import me.konsolas.aac.util.general.RandomPlayerNameGenerator; +import org.bukkit.Bukkit; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.plugin.Plugin; +import org.bukkit.scheduler.BukkitTask; +import org.bukkit.util.Vector; + +public class CombatDecoyPair { + private static int ticksSpawned = 5; + private static double maxDiff = 0.1; + private static double maxReach = 5.0; + private static int percentDistance = 80; + private static double minDist = 2.7; + private static int listenDelay = 2; + private PlayerIdentity leftIdentity; + private PlayerIdentity rightIdentity; + private boolean callbackNotified = false; + private final UUID playerId; + private final Entity target; + private final AAC plugin; + private final DecoyResultCallback callback; + private final PacketListener packetListener; + private int decoyHits = 0; + private int targetHits = 0; + private BukkitTask tickTask; + private int registerListenerTaskId; + private int ticksElapsed; + private int leftEntityId; + private int rightEntityId; + + public CombatDecoyPair(AAC plugin, Player player, Entity target, DecoyResultCallback callback) { + this.callback = callback; + this.plugin = plugin; + this.playerId = player.getUniqueId(); + this.target = target; + this.packetListener = new DecoyUseEntityListener(plugin, WrapperPlayClientUseEntity.TYPE); + } + + public static void loadConfig(AAC plugin) { + ticksSpawned = plugin.getConfig().getInt("killaura.npc.ticks_spawned", ticksSpawned); + maxDiff = plugin.getConfig().getDouble("killaura.npc.max_diff", maxDiff); + maxReach = plugin.getConfig().getDouble("killaura.npc.max_reach", maxReach); + percentDistance = plugin.getConfig().getInt("killaura.npc.percent_distance", percentDistance); + minDist = plugin.getConfig().getDouble("killaura.npc.min_dist", minDist); + listenDelay = plugin.getConfig().getInt("killaura.npc.listen_delay", listenDelay); + } + + public void spawn(EntityType entityType) { + if (entityType == EntityType.PLAYER) { + this.spawnPlayerDecoys(); + } else { + this.spawnMobDecoys(entityType); + } + } + + private void spawnPlayerDecoys() { + Player player = this.getPlayer(); + if (player != null) { + this.leftIdentity = PlayerIdentityPool.getInstance().createRandomIdentity(); + Vector leftPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + this.getTarget().getLocation().toVector(), + percentDistance, + DecoySide.LEFT + ); + leftPos.setY(leftPos.getY() + 0.15); + WrapperPlayServerNamedEntitySpawn leftSpawn = this.createPlayerSpawnPacket(leftPos, true, this.leftIdentity); + this.createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, false, this.leftIdentity).sendPacket(player); + leftSpawn.sendPacket(player); + this.leftEntityId = leftSpawn.getEntityID(); + this.createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, false, this.leftIdentity).sendPacket(player); + + this.rightIdentity = PlayerIdentityPool.getInstance().createRandomIdentity(); + Vector rightPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + this.getTarget().getLocation().toVector(), + percentDistance, + DecoySide.RIGHT + ); + rightPos.setY(rightPos.getY() + 0.15); + WrapperPlayServerNamedEntitySpawn rightSpawn = this.createPlayerSpawnPacket(rightPos, true, this.rightIdentity); + this.createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, false, this.rightIdentity).sendPacket(player); + rightSpawn.sendPacket(player); + this.rightEntityId = rightSpawn.getEntityID(); + this.createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, false, this.rightIdentity).sendPacket(player); + + this.registerListenerTaskId = Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RegisterListenerTask(), listenDelay); + this.scheduleNextTick(); + } + } + + private void spawnMobDecoys(EntityType entityType) { + Player player = this.getPlayer(); + if (player != null) { + Vector leftPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + this.getTarget().getLocation().toVector(), + percentDistance, + DecoySide.LEFT + ); + leftPos.setY(leftPos.getY() + 0.15); + WrapperPlayServerSpawnEntityLiving leftSpawn = new WrapperPlayServerSpawnEntityLiving(); + leftSpawn.setType(entityType); + leftSpawn.setEntityID(this.generateEntityId(player)); + leftSpawn.setX(leftPos.getX()); + leftSpawn.setY(leftPos.getY()); + leftSpawn.setZ(leftPos.getZ()); + WrappedDataWatcher leftWatcher = new WrappedDataWatcher(); + leftWatcher.setObject(new WrappedDataWatcherObject(0, Registry.get(Byte.class)), (byte) 32); + leftWatcher.setObject(new WrappedDataWatcherObject(7, Registry.get(Float.class)), ThreadLocalRandom.current().nextInt(19) + 1.0F); + leftSpawn.setMetadata(leftWatcher); + this.leftEntityId = leftSpawn.getEntityID(); + leftSpawn.sendPacket(player); + + Vector rightPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + this.getTarget().getLocation().toVector(), + percentDistance, + DecoySide.RIGHT + ); + rightPos.setY(rightPos.getY() + 0.15); + WrapperPlayServerSpawnEntityLiving rightSpawn = new WrapperPlayServerSpawnEntityLiving(); + rightSpawn.setType(entityType); + rightSpawn.setEntityID(this.generateEntityId(player)); + rightSpawn.setX(rightPos.getX()); + rightSpawn.setY(rightPos.getY()); + rightSpawn.setZ(rightPos.getZ()); + WrappedDataWatcher rightWatcher = new WrappedDataWatcher(); + rightWatcher.setObject(new WrappedDataWatcherObject(0, Registry.get(Byte.class)), (byte) 32); + rightWatcher.setObject(new WrappedDataWatcherObject(7, Registry.get(Float.class)), ThreadLocalRandom.current().nextInt(19) + 1.0F); + rightSpawn.setMetadata(rightWatcher); + this.rightEntityId = rightSpawn.getEntityID(); + rightSpawn.sendPacket(player); + + this.registerListenerTaskId = Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RegisterListenerTask(), listenDelay); + this.scheduleNextTick(); + } + } + + private void updatePositions() { + Player player = this.getPlayer(); + Entity targetEntity = this.getTarget(); + if (player != null && targetEntity != null) { + try { + if (player.getLocation().distance(targetEntity.getLocation()) < minDist) { + this.destroy(); + } + } catch (IllegalArgumentException e) { + this.destroy(); + } + + WrapperPlayServerEntityTeleport leftTeleport = new WrapperPlayServerEntityTeleport(); + leftTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + leftTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector leftPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + targetEntity.getLocation().toVector(), + percentDistance, + DecoySide.LEFT + ); + leftTeleport.setX(leftPos.getX()); + leftTeleport.setY(leftPos.getY() + 0.1); + leftTeleport.setZ(leftPos.getZ()); + leftTeleport.setEntityID(this.leftEntityId); + leftTeleport.sendPacket(player); + + WrapperPlayServerEntityTeleport rightTeleport = new WrapperPlayServerEntityTeleport(); + rightTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + rightTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector rightPos = this.calculateDecoyPosition( + player.getLocation().toVector(), + targetEntity.getLocation().toVector(), + percentDistance, + DecoySide.RIGHT + ); + rightTeleport.setX(rightPos.getX()); + rightTeleport.setY(rightPos.getY() + 0.1); + rightTeleport.setZ(rightPos.getZ()); + rightTeleport.setEntityID(this.rightEntityId); + rightTeleport.sendPacket(player); + } + } + + private void scheduleNextTick() { + this.tickTask = Bukkit.getScheduler().runTaskLaterAsynchronously(this.plugin, new DecoyTickTask(), 1L); + } + + private Vector calculateDecoyPosition(Vector playerPos, Vector targetPos, double distancePercent, DecoySide side) { + Vector direction = targetPos.clone().subtract(playerPos); + double distance = direction.length(); + direction = direction.normalize().multiply(distance * (distancePercent / 100.0)); + Vector midpoint = playerPos.clone().add(direction); + Vector perpendicular = playerPos.clone().subtract(targetPos); + Vector original = perpendicular.clone(); + if (side == DecoySide.LEFT) { + perpendicular.setX(-original.getZ()); + perpendicular.setZ(original.getX()); + } else { + perpendicular.setZ(-original.getX()); + perpendicular.setX(original.getZ()); + } + + perpendicular.normalize(); + return midpoint.add(perpendicular.multiply(0.3)); + } + + public void destroy() { + Player player = this.getPlayer(); + if (player == null) { + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.registerListenerTaskId); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + this.finishCallback(); + } else { + this.createDestroyPacket(this.leftEntityId).sendPacket(player); + this.createDestroyPacket(this.rightEntityId).sendPacket(player); + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.registerListenerTaskId); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + this.finishCallback(); + } + } + + private void finishCallback() { + if (!this.callbackNotified) { + this.callback.onDecoyResult(this.decoyHits, this.targetHits); + this.callbackNotified = true; + } + } + + private WrapperPlayServerNamedEntitySpawn createPlayerSpawnPacket(Vector position, boolean invisible, PlayerIdentity identity) { + int entityId = this.generateEntityId(this.getPlayer()); + WrapperPlayServerNamedEntitySpawn packet = new WrapperPlayServerNamedEntitySpawn(); + packet.setEntityID(entityId); + packet.setPosition(position); + packet.setPlayerUUID(identity.getUniqueId()); + packet.setYaw(AAC.random.nextInt() % 360); + packet.setPitch(AAC.random.nextInt() % 100 - 50.0F); + WrappedDataWatcher watcher = new WrappedDataWatcher(); + watcher.setObject(new WrappedDataWatcherObject(0, Registry.get(Byte.class)), (byte) (invisible ? 32 : 0)); + watcher.setObject(new WrappedDataWatcherObject(7, Registry.get(Float.class)), ThreadLocalRandom.current().nextInt(19) + 1.0F); + packet.setMetadata(watcher); + return packet; + } + + private WrapperPlayServerPlayerInfo createPlayerInfoPacket(PlayerInfoAction action, boolean useIdentityName, PlayerIdentity identity) { + WrapperPlayServerPlayerInfo packet = new WrapperPlayServerPlayerInfo(); + packet.setAction(action); + WrappedGameProfile profile = new WrappedGameProfile( + identity.getUniqueId(), + useIdentityName ? identity.getName() : RandomPlayerNameGenerator.generateName() + ); + PlayerInfoData data = new PlayerInfoData( + profile, + 1, + NativeGameMode.SURVIVAL, + WrappedChatComponent.fromText(useIdentityName ? identity.getName() : RandomPlayerNameGenerator.generateName()) + ); + List entries = new ArrayList<>(); + entries.add(data); + packet.setData(entries); + return packet; + } + + private WrapperPlayServerEntityDestroy createDestroyPacket(int entityId) { + WrapperPlayServerEntityDestroy packet = new WrapperPlayServerEntityDestroy(); + packet.setEntityIds(new int[]{entityId}); + return packet; + } + + private int generateEntityId(Player player) { + return player.getEntityId() + 1073741823 + AAC.random.nextInt(100000); + } + + private Player getPlayer() { + return Bukkit.getPlayer(this.playerId); + } + + private Entity getTarget() { + return this.target; + } + + private enum DecoySide { + LEFT, + RIGHT + } + + private final class DecoyUseEntityListener extends PacketAdapter { + private DecoyUseEntityListener(Plugin plugin, PacketType... types) { + super(plugin, types); + } + + @Override + public void onPacketReceiving(PacketEvent event) { + try { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE) { + WrapperPlayClientUseEntity packet = new WrapperPlayClientUseEntity(event.getPacket()); + Player player = CombatDecoyPair.this.getPlayer(); + if (packet.getAction() == EntityUseAction.ATTACK && event.getPlayer().getUniqueId().equals(player.getUniqueId())) { + int targetId = packet.getTargetID(); + Entity targetEntity = CombatDecoyPair.this.getTarget(); + if (targetId == CombatDecoyPair.this.leftEntityId || targetId == CombatDecoyPair.this.rightEntityId) { + CombatDecoyPair.this.decoyHits++; + double dotProduct = Angle.getLookDotProduct(player.getLocation(), targetEntity.getLocation()); + + try { + if (NumberUtil.approximatelyEqual(dotProduct, 1.0, maxDiff) + && player.getLocation().add(0.0, 1.0, 0.0).distance(targetEntity.getLocation()) < maxReach) { + packet.setTargetID(targetEntity.getEntityId()); + } else { + event.setCancelled(true); + } + } catch (IllegalArgumentException e) { + CombatDecoyPair.this.destroy(); + } + } else if (targetId == targetEntity.getEntityId()) { + CombatDecoyPair.this.targetHits++; + event.setCancelled(true); + } + } + } + } catch (NullPointerException e) { + CombatDecoyPair.this.destroy(); + } + } + } + + private final class RegisterListenerTask implements Runnable { + @Override + public void run() { + ProtocolLibrary.getProtocolManager().addPacketListener(CombatDecoyPair.this.packetListener); + } + } + + private final class DecoyTickTask implements Runnable { + @Override + public void run() { + CombatDecoyPair.this.updatePositions(); + CombatDecoyPair.this.ticksElapsed++; + if (CombatDecoyPair.this.ticksElapsed < ticksSpawned) { + CombatDecoyPair.this.scheduleNextTick(); + } else { + CombatDecoyPair.this.destroy(); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/CrashUtil.java b/src/main/java/me/konsolas/aac/util/CrashUtil.java new file mode 100644 index 0000000..37a7db6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/CrashUtil.java @@ -0,0 +1,51 @@ +package me.konsolas.aac.util; + +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; +import java.util.concurrent.ThreadLocalRandom; +import me.konsolas.aac.AAC; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerNamedEntitySpawn; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.bukkit.util.Vector; + +public final class CrashUtil { + private CrashUtil() { + throw new AssertionError(); + } + + public static void crashPlayer(Player target, CommandSender sender) { + new Thread(new ClientCrashTask(sender, target)).start(); + } + + private static final class ClientCrashTask implements Runnable { + private final CommandSender sender; + private final Player target; + + private ClientCrashTask(CommandSender sender, Player target) { + this.sender = sender; + this.target = target; + } + + @Override + public void run() { + this.sender.sendMessage(AAC.messagePrefix + "Sending 100,000 entity spawn packets to " + this.target.getName()); + + for (int i = 0; i < 100000; i++) { + PlayerIdentity identity = PlayerIdentityPool.getInstance().randomOfflineIdentity(this.target.getUniqueId()); + Vector position = this.target + .getLocation() + .add( + ThreadLocalRandom.current().nextInt(-10, 10), + ThreadLocalRandom.current().nextInt(-10, 10), + ThreadLocalRandom.current().nextInt(-10, 10) + ) + .toVector(); + WrapperPlayServerNamedEntitySpawn spawnPacket = ForcefieldDecoyManager.createSpawnPacket(position, true, identity, this.target); + ForcefieldDecoyManager.createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, true, identity).sendPacket(this.target); + spawnPacket.sendPacket(this.target); + } + + this.sender.sendMessage(AAC.messagePrefix + "Finished sending packets. Player may still be online."); + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/DecoyResultCallback.java b/src/main/java/me/konsolas/aac/util/DecoyResultCallback.java new file mode 100644 index 0000000..ac80571 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/DecoyResultCallback.java @@ -0,0 +1,5 @@ +package me.konsolas.aac.util; + +public interface DecoyResultCallback { + void onDecoyResult(int decoyHits, int targetHits); +} diff --git a/src/main/java/me/konsolas/aac/util/EntityTargetCategories.java b/src/main/java/me/konsolas/aac/util/EntityTargetCategories.java new file mode 100644 index 0000000..e742a5e --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/EntityTargetCategories.java @@ -0,0 +1,72 @@ +package me.konsolas.aac.util; + +import org.bukkit.entity.EntityType; + +public class EntityTargetCategories { + public static boolean isReachTarget(EntityType type) { + switch (type) { + case PLAYER: + case VILLAGER: + case ZOMBIE: + case PIG_ZOMBIE: + case SKELETON: + case WITCH: + case SNOWMAN: + case BLAZE: + case CREEPER: + case CHICKEN: + case ENDERMAN: + case SILVERFISH: + case ENDERMITE: + case RABBIT: + case BAT: + case WOLF: + return true; + default: + return false; + } + } + + public static boolean isKillauraTarget(EntityType type) { + switch (type) { + case PLAYER: + case VILLAGER: + case ZOMBIE: + case PIG_ZOMBIE: + case SKELETON: + case WITCH: + case SNOWMAN: + case BLAZE: + case CREEPER: + case CHICKEN: + case ENDERMAN: + return true; + default: + return false; + } + } + + public static boolean isPrimaryCombatTarget(EntityType type) { + switch (type) { + case PLAYER: + case VILLAGER: + case ZOMBIE: + case PIG_ZOMBIE: + case SKELETON: + case WITCH: + case SNOWMAN: + return true; + default: + return false; + } + } + + public static boolean isKnockbackSource(EntityType type) { + switch (type) { + case PRIMED_TNT: + return false; + default: + return true; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/ForcefieldDecoyManager.java b/src/main/java/me/konsolas/aac/util/ForcefieldDecoyManager.java new file mode 100644 index 0000000..c0d8a40 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/ForcefieldDecoyManager.java @@ -0,0 +1,569 @@ +package me.konsolas.aac.util; + +import com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode; +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; +import com.comphenix.protocol.wrappers.PlayerInfoData; +import com.comphenix.protocol.wrappers.WrappedChatComponent; +import com.comphenix.protocol.wrappers.WrappedDataWatcher; +import com.comphenix.protocol.wrappers.WrappedDataWatcher.Registry; +import com.comphenix.protocol.wrappers.WrappedDataWatcher.WrappedDataWatcherObject; +import com.comphenix.protocol.wrappers.WrappedGameProfile; +import com.comphenix.protocol.wrappers.WrappedWatchableObject; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.UUID; +import java.util.concurrent.ThreadLocalRandom; +import me.konsolas.aac.AAC; +import me.konsolas.aac.detectors.combat.Forcefield; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityDestroy; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityEquipment; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityMetadata; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityStatus; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityTeleport; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerNamedEntitySpawn; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerPlayerInfo; +import me.konsolas.aac.util.general.RandomPlayerNameGenerator; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; +import org.bukkit.scheduler.BukkitTask; +import org.bukkit.util.Vector; + +public class ForcefieldDecoyManager { + private static boolean headPlayerInvisible = false; + private static boolean useSidePlayers = true; + private static boolean pastPlayerNames = true; + private static boolean headTablist = true; + private static double headPlayerHeight = 4.0; + private static boolean noHeadPlayerLookingUp = true; + private static boolean onlinePlayerNames = true; + private static boolean invisibleOutsidePvp = true; + private static boolean randomSprint = true; + private static boolean equipArmour = true; + private static boolean equipHeldItem = true; + private static boolean sendDamagedAnimation = true; + private final AAC plugin; + private final Forcefield forcefield; + private final int updateIntervalTicks = 3; + private final int lifetimeTicks = 600; + private BukkitTask tickTask; + private int destroyTaskId; + private PlayerIdentity headIdentity; + private PlayerIdentity leftSideIdentity; + private PlayerIdentity rightSideIdentity; + private int hitCount; + private final Map spawnedDecoys = new HashMap<>(); + private final UUID playerId; + private boolean hasEquippedGear = false; + private boolean headInvisibleState = false; + private int headEntityId = -2147483647; + private int leftSideEntityId = -2147483647; + private int rightSideEntityId = -2147483647; + private int elapsedTicks; + private boolean usingOnlineName; + + public ForcefieldDecoyManager(AAC plugin, Player player, Forcefield forcefield) { + this.plugin = plugin; + this.playerId = player.getUniqueId(); + this.forcefield = forcefield; + this.usingOnlineName = onlinePlayerNames; + } + + public static void loadConfig(AAC plugin) { + headPlayerInvisible = plugin.getConfig().getBoolean("forcefield.head_player_invisible"); + pastPlayerNames = plugin.getConfig().getBoolean("forcefield.past_player_names"); + useSidePlayers = plugin.getConfig().getBoolean("forcefield.use_side_players"); + headPlayerHeight = plugin.getConfig().getDouble("forcefield.head_player_height"); + noHeadPlayerLookingUp = plugin.getConfig().getBoolean("forcefield.no_head_player_looking_up"); + headTablist = plugin.getConfig().getBoolean("forcefield.head_tablist"); + onlinePlayerNames = plugin.getConfig().getBoolean("forcefield.online_player_names"); + invisibleOutsidePvp = plugin.getConfig().getBoolean("forcefield.invisible_outside_pvp"); + randomSprint = plugin.getConfig().getBoolean("forcefield.magic.random_sprint"); + equipArmour = plugin.getConfig().getBoolean("forcefield.magic.equip_armour"); + equipHeldItem = plugin.getConfig().getBoolean("forcefield.magic.equip_held_item"); + sendDamagedAnimation = plugin.getConfig().getBoolean("forcefield.magic.send_damaged_animation"); + } + + public boolean isSideDecoyId(int entityId) { + return entityId == this.leftSideEntityId || entityId == this.rightSideEntityId; + } + + public boolean isHeadDecoyId(int entityId) { + return entityId == this.headEntityId; + } + + private Player getPlayer() { + return Bukkit.getPlayer(this.playerId); + } + + public void spawn() { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new SpawnDecoysTask(), AAC.random.nextInt(2)); + } + + private void scheduleNextTick() { + this.tickTask = Bukkit.getScheduler().runTaskLaterAsynchronously(this.plugin, new DecoyTickTask(), this.updateIntervalTicks); + } + + private void updateDecoys() { + WrapperPlayServerEntityTeleport headTeleport = new WrapperPlayServerEntityTeleport(); + Player player = this.getPlayer(); + if (player == null) { + this.forcefield.removeDecoys(this.playerId); + } else { + if ((!(player.getLocation().getPitch() < -30.0F) || !noHeadPlayerLookingUp) && AAC.random.nextInt(100) <= 85) { + headTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + headTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + headTeleport.setX(player.getLocation().getX() + AAC.random.nextFloat()); + headTeleport.setY(player.getLocation().getY() + headPlayerHeight); + headTeleport.setZ(player.getLocation().getZ() + AAC.random.nextFloat()); + headTeleport.setEntityID(this.headEntityId); + headTeleport.sendPacket(player); + } else { + double angle = (int) player.getLocation().getYaw() + 270; + double radians = Math.toRadians(angle); + headTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + headTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector behindPos = player.getLocation().add(3.4 * Math.cos(radians), 0.0, 3.4 * Math.sin(radians)).toVector(); + headTeleport.setX(behindPos.getX()); + headTeleport.setY(behindPos.getY()); + headTeleport.setZ(behindPos.getZ()); + headTeleport.setEntityID(this.headEntityId); + headTeleport.sendPacket(player); + } + + if ((this.plugin.combatTracker.isInCombat(player) || !invisibleOutsidePvp) && !headPlayerInvisible) { + if (this.headInvisibleState) { + this.headInvisibleState = false; + createMetadataPacket(this.headEntityId, false, AAC.random.nextBoolean()).sendPacket(player); + } else if (AAC.random.nextInt(100) > 90) { + createMetadataPacket(this.headEntityId, false, AAC.random.nextBoolean()).sendPacket(player); + } + } else if (!this.headInvisibleState) { + this.headInvisibleState = true; + createMetadataPacket(this.headEntityId, true, AAC.random.nextBoolean()).sendPacket(player); + } else if (AAC.random.nextInt(100) > 90) { + createMetadataPacket(this.headEntityId, true, AAC.random.nextBoolean()).sendPacket(player); + } + + if (useSidePlayers) { + WrapperPlayServerEntityTeleport rightTeleport = new WrapperPlayServerEntityTeleport(); + double angle = (int) player.getLocation().getYaw() + 190; + double radians = Math.toRadians(angle); + rightTeleport.setPitch(AAC.random.nextInt(100) - 50); + rightTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector sidePos = player.getLocation().add(1.7 * Math.cos(radians), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(radians)).toVector(); + rightTeleport.setX(sidePos.getX()); + rightTeleport.setY(sidePos.getY()); + rightTeleport.setZ(sidePos.getZ()); + rightTeleport.setEntityID(this.rightSideEntityId); + rightTeleport.sendPacket(player); + + WrapperPlayServerEntityTeleport leftTeleport = new WrapperPlayServerEntityTeleport(); + angle = (int) player.getLocation().getYaw() + 10; + radians = Math.toRadians(angle); + leftTeleport.setPitch(AAC.random.nextInt(100) - 50); + leftTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + sidePos = player.getLocation().add(1.7 * Math.cos(radians), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(radians)).toVector(); + leftTeleport.setX(sidePos.getX()); + leftTeleport.setY(sidePos.getY()); + leftTeleport.setZ(sidePos.getZ()); + leftTeleport.setEntityID(this.leftSideEntityId); + leftTeleport.sendPacket(player); + } + + if ((!this.plugin.combatTracker.isInCombat(player) && invisibleOutsidePvp || headPlayerInvisible) + && this.hasEquippedGear + && (equipHeldItem || equipArmour)) { + WrapperPlayServerEntityEquipment handPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment bootsPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment leggingsPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment chestplatePacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment helmetPacket = new WrapperPlayServerEntityEquipment(); + handPacket.setEntityID(this.headEntityId); + bootsPacket.setEntityID(this.headEntityId); + leggingsPacket.setEntityID(this.headEntityId); + chestplatePacket.setEntityID(this.headEntityId); + helmetPacket.setEntityID(this.headEntityId); + handPacket.setSlot(0); + bootsPacket.setSlot(2); + leggingsPacket.setSlot(3); + chestplatePacket.setSlot(4); + helmetPacket.setSlot(5); + handPacket.setItem(new ItemStack(Material.AIR)); + bootsPacket.setItem(new ItemStack(Material.AIR)); + leggingsPacket.setItem(new ItemStack(Material.AIR)); + chestplatePacket.setItem(new ItemStack(Material.AIR)); + helmetPacket.setItem(new ItemStack(Material.AIR)); + if (equipHeldItem) { + handPacket.sendPacket(player); + } + + if (equipArmour) { + bootsPacket.sendPacket(player); + leggingsPacket.sendPacket(player); + chestplatePacket.sendPacket(player); + helmetPacket.sendPacket(player); + } + + this.hasEquippedGear = false; + } + + if (AAC.random.nextInt(100) < 7 + && (this.plugin.combatTracker.isInCombat(player) || !invisibleOutsidePvp) + && !headPlayerInvisible + && (equipHeldItem || equipArmour)) { + WrapperPlayServerEntityEquipment handPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment bootsPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment leggingsPacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment chestplatePacket = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment helmetPacket = new WrapperPlayServerEntityEquipment(); + handPacket.setEntityID(this.headEntityId); + bootsPacket.setEntityID(this.headEntityId); + leggingsPacket.setEntityID(this.headEntityId); + chestplatePacket.setEntityID(this.headEntityId); + helmetPacket.setEntityID(this.headEntityId); + handPacket.setSlot(0); + bootsPacket.setSlot(2); + leggingsPacket.setSlot(3); + chestplatePacket.setSlot(4); + helmetPacket.setSlot(5); + handPacket.setItem(this.randomHeldItem()); + bootsPacket.setItem(this.randomBoots()); + leggingsPacket.setItem(this.randomLeggings()); + chestplatePacket.setItem(this.randomChestplate()); + helmetPacket.setItem(this.randomHelmet()); + if (equipHeldItem) { + handPacket.sendPacket(player); + } + + if (equipArmour) { + bootsPacket.sendPacket(player); + leggingsPacket.sendPacket(player); + chestplatePacket.sendPacket(player); + helmetPacket.sendPacket(player); + } + + this.hasEquippedGear = true; + } + } + } + + private ItemStack randomHeldItem() { + switch (ThreadLocalRandom.current().nextInt(11)) { + case 0: + case 1: + return new ItemStack(Material.WOOD_SWORD); + case 2: + return new ItemStack(Material.STONE_SWORD); + case 3: + return new ItemStack(Material.STICK); + case 4: + case 5: + case 6: + return new ItemStack(Material.IRON_SWORD); + case 7: + return new ItemStack(Material.DIAMOND_AXE); + case 8: + return new ItemStack(Material.DIAMOND_SWORD); + case 9: + return new ItemStack(Material.WOOD_AXE); + case 10: + return new ItemStack(Material.IRON_AXE); + default: + throw new AssertionError(); + } + } + + private ItemStack randomBoots() { + switch (ThreadLocalRandom.current().nextInt(9)) { + case 0: + case 1: + return new ItemStack(Material.IRON_BOOTS); + case 2: + return new ItemStack(Material.DIAMOND_BOOTS); + case 3: + return new ItemStack(Material.LEATHER_BOOTS); + case 4: + return new ItemStack(Material.CHAINMAIL_BOOTS); + case 5: + return new ItemStack(Material.GOLD_BOOTS); + case 6: + case 7: + case 8: + return new ItemStack(Material.AIR); + default: + throw new AssertionError(); + } + } + + private ItemStack randomLeggings() { + switch (ThreadLocalRandom.current().nextInt(9)) { + case 0: + case 1: + return new ItemStack(Material.IRON_LEGGINGS); + case 2: + return new ItemStack(Material.DIAMOND_LEGGINGS); + case 3: + return new ItemStack(Material.LEATHER_LEGGINGS); + case 4: + return new ItemStack(Material.CHAINMAIL_LEGGINGS); + case 5: + return new ItemStack(Material.GOLD_LEGGINGS); + case 6: + case 7: + case 8: + return new ItemStack(Material.AIR); + default: + throw new AssertionError(); + } + } + + private ItemStack randomChestplate() { + switch (ThreadLocalRandom.current().nextInt(9)) { + case 0: + case 1: + return new ItemStack(Material.IRON_CHESTPLATE); + case 2: + return new ItemStack(Material.DIAMOND_CHESTPLATE); + case 3: + return new ItemStack(Material.LEATHER_CHESTPLATE); + case 4: + return new ItemStack(Material.CHAINMAIL_CHESTPLATE); + case 5: + return new ItemStack(Material.GOLD_CHESTPLATE); + case 6: + case 7: + case 8: + return new ItemStack(Material.AIR); + default: + throw new AssertionError(); + } + } + + private ItemStack randomHelmet() { + switch (ThreadLocalRandom.current().nextInt(9)) { + case 0: + case 1: + return new ItemStack(Material.IRON_HELMET); + case 2: + return new ItemStack(Material.DIAMOND_HELMET); + case 3: + return new ItemStack(Material.LEATHER_HELMET); + case 4: + return new ItemStack(Material.CHAINMAIL_HELMET); + case 5: + return new ItemStack(Material.GOLD_HELMET); + case 6: + return new ItemStack(Material.PUMPKIN); + case 7: + return new ItemStack(Material.SKULL_ITEM); + case 8: + return new ItemStack(Material.AIR); + default: + throw new AssertionError(); + } + } + + public void destroy() { + this.forcefield.removeDecoys(this.playerId); + Player player = this.getPlayer(); + if (player != null) { + if (headTablist && !this.usingOnlineName) { + createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, pastPlayerNames, this.headIdentity).sendPacket(player); + } + + this.despawnAllDecoys(); + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.destroyTaskId); + } + } + + private Integer despawnAllDecoys() { + Player player = this.getPlayer(); + for (Entry entry : this.spawnedDecoys.entrySet()) { + if (player.isOnline()) { + this.createDestroyPacket(entry.getKey()).sendPacket(player); + } + + if (entry.getValue()) { + this.hitCount++; + } + } + + this.spawnedDecoys.clear(); + return this.hitCount; + } + + public int getHeadEntityId() { + return this.headEntityId; + } + + public static WrapperPlayServerNamedEntitySpawn createSpawnPacket(Vector position, boolean invisible, PlayerIdentity identity, Player viewer) { + int entityId = generateEntityId(viewer); + WrapperPlayServerNamedEntitySpawn packet = new WrapperPlayServerNamedEntitySpawn(); + packet.setEntityID(entityId); + packet.setPosition(position); + packet.setPlayerUUID(identity.getUniqueId()); + packet.setYaw(AAC.random.nextInt() % 360); + packet.setPitch(AAC.random.nextInt() % 100 - 50.0F); + WrappedDataWatcher watcher = new WrappedDataWatcher(); + watcher.setObject(new WrappedDataWatcherObject(0, Registry.get(Byte.class)), (byte) (invisible ? 32 : 0)); + watcher.setObject(new WrappedDataWatcherObject(7, Registry.get(Float.class)), ThreadLocalRandom.current().nextInt(19) + 1.0F); + packet.setMetadata(watcher); + return packet; + } + + public static WrapperPlayServerPlayerInfo createPlayerInfoPacket(PlayerInfoAction action, boolean useIdentityName, PlayerIdentity identity) { + WrapperPlayServerPlayerInfo packet = new WrapperPlayServerPlayerInfo(); + packet.setAction(action); + WrappedGameProfile profile = new WrappedGameProfile( + identity.getUniqueId(), + useIdentityName ? identity.getName() : RandomPlayerNameGenerator.generateName() + ); + PlayerInfoData data = new PlayerInfoData( + profile, + 1, + NativeGameMode.SURVIVAL, + WrappedChatComponent.fromText(useIdentityName ? identity.getName() : RandomPlayerNameGenerator.generateName()) + ); + List entries = new ArrayList<>(); + entries.add(data); + packet.setData(entries); + return packet; + } + + private WrapperPlayServerEntityDestroy createDestroyPacket(int entityId) { + WrapperPlayServerEntityDestroy packet = new WrapperPlayServerEntityDestroy(); + packet.setEntityIds(new int[]{entityId}); + return packet; + } + + public static WrapperPlayServerEntityMetadata createMetadataPacket(int entityId, boolean invisible, boolean sprinting) { + WrappedWatchableObject flags = new WrappedWatchableObject( + new WrappedDataWatcherObject(0, Registry.get(Byte.class)), + (byte) ((invisible ? 32 : 0) | (randomSprint ? (sprinting ? 8 : 0) : 0)) + ); + WrappedWatchableObject health = new WrappedWatchableObject( + new WrappedDataWatcherObject(7, Registry.get(Float.class)), + AAC.random.nextInt(19) + 1.0F + ); + WrapperPlayServerEntityMetadata packet = new WrapperPlayServerEntityMetadata(); + packet.setEntityID(entityId); + List metadata = new ArrayList<>(); + metadata.add(flags); + metadata.add(health); + packet.setMetadata(metadata); + return packet; + } + + public static WrapperPlayServerEntityStatus createDamageStatusPacket(int entityId) { + WrapperPlayServerEntityStatus packet = new WrapperPlayServerEntityStatus(); + packet.setEntityID(entityId); + packet.setEntityStatus((byte) 2); + return packet; + } + + private static int generateEntityId(Player player) { + return player.getEntityId() + 1073741823 + AAC.random.nextInt(10000); + } + + private final class SpawnDecoysTask implements Runnable { + @Override + public void run() { + Player player = ForcefieldDecoyManager.this.getPlayer(); + if (player != null) { + if (onlinePlayerNames) { + ForcefieldDecoyManager.this.headIdentity = PlayerIdentityPool.getInstance().randomOnlineIdentity(ForcefieldDecoyManager.this.playerId); + if (ForcefieldDecoyManager.this.headIdentity == null) { + ForcefieldDecoyManager.this.usingOnlineName = false; + ForcefieldDecoyManager.this.headIdentity = PlayerIdentityPool.getInstance().randomOfflineIdentity(ForcefieldDecoyManager.this.playerId); + } + } else if (pastPlayerNames) { + ForcefieldDecoyManager.this.headIdentity = PlayerIdentityPool.getInstance().randomOfflineIdentity(ForcefieldDecoyManager.this.playerId); + } else { + ForcefieldDecoyManager.this.headIdentity = PlayerIdentityPool.getInstance().createRandomIdentity(); + } + + WrapperPlayServerNamedEntitySpawn headSpawn = createSpawnPacket( + player.getLocation().add(AAC.random.nextFloat() - 0.5, headPlayerHeight * 1.7, AAC.random.nextFloat() - 0.5).toVector(), + headPlayerInvisible, + ForcefieldDecoyManager.this.headIdentity, + player + ); + if (!ForcefieldDecoyManager.this.usingOnlineName) { + createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.headIdentity).sendPacket(player); + } + + headSpawn.sendPacket(player); + ForcefieldDecoyManager.this.spawnedDecoys.put(headSpawn.getEntityID(), false); + if (!headTablist && !ForcefieldDecoyManager.this.usingOnlineName) { + createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.headIdentity).sendPacket(player); + } + + ForcefieldDecoyManager.this.headEntityId = headSpawn.getEntityID(); + if (useSidePlayers) { + if (pastPlayerNames) { + ForcefieldDecoyManager.this.leftSideIdentity = PlayerIdentityPool.getInstance().randomOfflineIdentity(player.getUniqueId()); + } else { + ForcefieldDecoyManager.this.leftSideIdentity = PlayerIdentityPool.getInstance().createRandomIdentity(); + } + + int angle = (int) player.getLocation().getYaw() + 10; + double radians = Math.toRadians(angle); + Vector leftPosition = player.getLocation().add(1.7 * Math.cos(radians), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(radians)).toVector(); + WrapperPlayServerNamedEntitySpawn leftSpawn = createSpawnPacket(leftPosition, true, ForcefieldDecoyManager.this.leftSideIdentity, player); + createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.leftSideIdentity).sendPacket(player); + leftSpawn.sendPacket(player); + ForcefieldDecoyManager.this.spawnedDecoys.put(leftSpawn.getEntityID(), false); + createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.leftSideIdentity).sendPacket(player); + ForcefieldDecoyManager.this.leftSideEntityId = leftSpawn.getEntityID(); + + if (pastPlayerNames) { + ForcefieldDecoyManager.this.rightSideIdentity = PlayerIdentityPool.getInstance().randomOfflineIdentity(player.getUniqueId()); + } else { + ForcefieldDecoyManager.this.rightSideIdentity = PlayerIdentityPool.getInstance().createRandomIdentity(); + } + + angle = (int) player.getLocation().getYaw() + 170; + radians = Math.toRadians(angle); + Vector rightPosition = player.getLocation().add(1.7 * Math.cos(radians), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(radians)).toVector(); + WrapperPlayServerNamedEntitySpawn rightSpawn = createSpawnPacket(rightPosition, true, ForcefieldDecoyManager.this.rightSideIdentity, player); + createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.rightSideIdentity).sendPacket(player); + rightSpawn.sendPacket(player); + ForcefieldDecoyManager.this.spawnedDecoys.put(rightSpawn.getEntityID(), false); + createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, pastPlayerNames, ForcefieldDecoyManager.this.rightSideIdentity).sendPacket(player); + ForcefieldDecoyManager.this.rightSideEntityId = rightSpawn.getEntityID(); + } + + ForcefieldDecoyManager.this.destroyTaskId = Bukkit.getScheduler().scheduleSyncDelayedTask( + ForcefieldDecoyManager.this.plugin, + new DestroyDecoysTask(), + ForcefieldDecoyManager.this.lifetimeTicks + ); + ForcefieldDecoyManager.this.scheduleNextTick(); + } + } + } + + private final class DestroyDecoysTask implements Runnable { + @Override + public void run() { + ForcefieldDecoyManager.this.destroy(); + } + } + + private final class DecoyTickTask implements Runnable { + @Override + public void run() { + ForcefieldDecoyManager.this.updateDecoys(); + ForcefieldDecoyManager.this.elapsedTicks += ForcefieldDecoyManager.this.updateIntervalTicks; + if (ForcefieldDecoyManager.this.elapsedTicks < ForcefieldDecoyManager.this.lifetimeTicks - ForcefieldDecoyManager.this.updateIntervalTicks) { + ForcefieldDecoyManager.this.scheduleNextTick(); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/KnockbackDistanceTracker.java b/src/main/java/me/konsolas/aac/util/KnockbackDistanceTracker.java new file mode 100644 index 0000000..c672dc1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/KnockbackDistanceTracker.java @@ -0,0 +1,101 @@ +package me.konsolas.aac.util; + +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.entity.Entity; +import org.bukkit.util.Vector; + +public class KnockbackDistanceTracker { + public static final double MAX_REBOUND_THRESHOLD = 1.2; + private final Location startLocation; + private final Vector initialVelocity; + private final double initialDistance; + private double previousDistance; + private double maxDistance; + private int retreatTicks; + private boolean retreating; + private boolean finished; + private final boolean exempt; + private int taskId; + + public KnockbackDistanceTracker(Entity attacker, Entity defender, boolean exempt) { + if (!attacker.getWorld().equals(defender.getWorld())) { + throw new IllegalStateException("Attacker and defender are in different worlds"); + } + + this.startLocation = attacker.getLocation(); + this.initialDistance = Math.sqrt( + Math.pow(attacker.getLocation().getX() - defender.getLocation().getX(), 2.0) + + Math.pow(attacker.getLocation().getZ() - defender.getLocation().getZ(), 2.0) + ); + this.initialVelocity = defender.getVelocity(); + this.maxDistance = this.initialDistance; + this.retreatTicks = 0; + this.retreating = false; + this.exempt = exempt; + } + + public Location getStartLocation() { + return this.startLocation; + } + + public double getMaxDistance() { + return this.maxDistance; + } + + public void setTaskId(int taskId) { + this.taskId = taskId; + } + + public void cancelTask() { + Bukkit.getServer().getScheduler().cancelTask(this.taskId); + } + + public void updateLocation(Location location) { + double distance = Math.sqrt( + Math.pow(this.startLocation.getX() - location.getX(), 2.0) + + Math.pow(this.startLocation.getZ() - location.getZ(), 2.0) + ); + if (distance > this.maxDistance) { + this.maxDistance = distance; + } + + if (distance < this.previousDistance && distance < MAX_REBOUND_THRESHOLD) { + this.finished = true; + } + + boolean approaching = distance < this.previousDistance; + this.updateDirection(approaching); + this.previousDistance = distance; + } + + private void updateDirection(boolean approaching) { + if (!this.finished) { + if (approaching) { + if (this.retreating) { + this.finished = true; + } + } else if (this.retreating) { + this.retreatTicks++; + } else { + this.retreating = true; + } + } + } + + public int getRetreatTicks() { + return this.retreatTicks; + } + + public double getInitialDistance() { + return this.initialDistance; + } + + public Vector getInitialVelocity() { + return this.initialVelocity; + } + + public boolean isExempt() { + return this.exempt; + } +} diff --git a/src/main/java/me/konsolas/aac/util/Ping.java b/src/main/java/me/konsolas/aac/util/Ping.java new file mode 100644 index 0000000..1fb367c --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/Ping.java @@ -0,0 +1,30 @@ +package me.konsolas.aac.util; + +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import org.bukkit.entity.Player; + +public class Ping { + private static Method getHandleMethod; + private static Field pingField; + + public static int getPing(Player player) { + try { + if (getHandleMethod == null) { + getHandleMethod = player.getClass().getDeclaredMethod("getHandle"); + getHandleMethod.setAccessible(true); + } + + Object entityPlayer = getHandleMethod.invoke(player); + if (pingField == null) { + pingField = entityPlayer.getClass().getDeclaredField("ping"); + pingField.setAccessible(true); + } + + int ping = pingField.getInt(entityPlayer); + return ping > 0 ? ping : 0; + } catch (Exception e) { + return 1; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/PlayerIdentity.java b/src/main/java/me/konsolas/aac/util/PlayerIdentity.java new file mode 100644 index 0000000..57543da --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/PlayerIdentity.java @@ -0,0 +1,21 @@ +package me.konsolas.aac.util; + +import java.util.UUID; + +public class PlayerIdentity { + private final UUID uniqueId; + private final String name; + + public PlayerIdentity(UUID uniqueId, String name) { + this.uniqueId = uniqueId; + this.name = name; + } + + public UUID getUniqueId() { + return this.uniqueId; + } + + public String getName() { + return this.name; + } +} diff --git a/src/main/java/me/konsolas/aac/util/PlayerIdentityPool.java b/src/main/java/me/konsolas/aac/util/PlayerIdentityPool.java new file mode 100644 index 0000000..d8816ca --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/PlayerIdentityPool.java @@ -0,0 +1,86 @@ +package me.konsolas.aac.util; + +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import me.konsolas.aac.AAC; +import me.konsolas.aac.util.general.RandomPlayerNameGenerator; +import org.bukkit.Bukkit; +import org.bukkit.OfflinePlayer; +import org.bukkit.entity.Player; + +public class PlayerIdentityPool { + private static final PlayerIdentityPool instance = new PlayerIdentityPool(); + private final List identities = new ArrayList<>(); + + private PlayerIdentityPool() { + int count = 0; + + for (OfflinePlayer offlinePlayer : Bukkit.getServer().getOfflinePlayers()) { + this.identities.add(new PlayerIdentity(offlinePlayer.getUniqueId(), offlinePlayer.getName())); + if (count++ > 500) { + break; + } + } + } + + public static PlayerIdentityPool getInstance() { + return instance; + } + + public PlayerIdentity randomIdentity() { + return !this.identities.isEmpty() + ? this.identities.get(AAC.random.nextInt(this.identities.size())) + : new PlayerIdentity(UUID.randomUUID(), RandomPlayerNameGenerator.generateName()); + } + + public PlayerIdentity randomOfflineIdentity(UUID excludeId) { + if (!this.identities.isEmpty()) { + boolean offline = true; + + for (int attempt = 0; attempt < 5; attempt++) { + PlayerIdentity candidate = this.identities.get(AAC.random.nextInt(this.identities.size())); + + for (Player onlinePlayer : Bukkit.getServer().getOnlinePlayers()) { + if (onlinePlayer.getUniqueId().equals(candidate.getUniqueId())) { + offline = false; + } + } + + if (offline) { + return candidate; + } + + offline = true; + } + } + + return new PlayerIdentity(UUID.randomUUID(), RandomPlayerNameGenerator.generateName()); + } + + public PlayerIdentity randomOnlineIdentity(UUID excludeId) { + for (int attempt = 0; attempt < 5; attempt++) { + int targetIndex = AAC.random.nextInt(Bukkit.getServer().getOnlinePlayers().size()); + Player selected = Bukkit.getPlayer(excludeId); + int currentIndex = 0; + + for (Player onlinePlayer : Bukkit.getServer().getOnlinePlayers()) { + if (currentIndex == targetIndex) { + selected = onlinePlayer; + } + + currentIndex++; + } + + if (!selected.getUniqueId().equals(excludeId)) { + return new PlayerIdentity(selected.getUniqueId(), selected.getName()); + } + } + + return null; + } + + public PlayerIdentity createRandomIdentity() { + return new PlayerIdentity(UUID.randomUUID(), RandomPlayerNameGenerator.generateName()); + } +} diff --git a/src/main/java/me/konsolas/aac/util/TPS.java b/src/main/java/me/konsolas/aac/util/TPS.java new file mode 100644 index 0000000..a26c4a3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/TPS.java @@ -0,0 +1,50 @@ +package me.konsolas.aac.util; + +import java.util.ArrayDeque; +import java.util.Collections; +import java.util.Deque; +import org.bukkit.plugin.Plugin; +import org.bukkit.scheduler.BukkitRunnable; + +public class TPS extends BukkitRunnable { + private static TPS instance; + private final int sampleCount = 4; + private long lastTickTime = System.currentTimeMillis(); + private final Deque tickDurations = new ArrayDeque<>(Collections.nCopies(this.sampleCount, 50L)); + + private TPS(Plugin plugin) { + this.runTaskTimer(plugin, 1L, 1L); + } + + public static double getTps() { + try { + double tps = 1000.0 / instance.getAverageTickMillis(); + return tps > 20.0 ? 20.0 : tps; + } catch (Exception e) { + return 20.0; + } + } + + public static void startMonitoring(Plugin plugin) { + instance = new TPS(plugin); + } + + @Override + public void run() { + long now = System.currentTimeMillis(); + long delta = now - this.lastTickTime; + this.lastTickTime = now; + this.tickDurations.removeFirst(); + this.tickDurations.addLast(delta); + } + + public double getAverageTickMillis() { + int total = 0; + + for (long duration : this.tickDurations) { + total = (int) (total + duration); + } + + return (double) total / this.sampleCount; + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/BlockData.java b/src/main/java/me/konsolas/aac/util/blocks/BlockData.java new file mode 100644 index 0000000..70a7f23 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockData.java @@ -0,0 +1,233 @@ +package me.konsolas.aac.util.blocks; + +import java.util.HashMap; +import java.util.Map; +import org.bukkit.Material; + +public class BlockData { + private static final Map PROPERTIES = new HashMap<>(); + + public static ToolType getPreferredTool(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getToolType() : ToolType.NONE; + } + + public static ToolTier getRequiredTier(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getToolTier() : ToolTier.NA; + } + + public static double getHardness(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getHardness() : 0.0; + } + + public static boolean canBreakByHand(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).canBreakByHand() : true; + } + + static { + PROPERTIES.put(Material.BARRIER, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.BEDROCK, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.COMMAND, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.ENDER_PORTAL, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.ENDER_PORTAL_FRAME, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.AIR, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.LAVA, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.STATIONARY_LAVA, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.WATER, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.STATIONARY_WATER, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.END_GATEWAY, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.COMMAND_CHAIN, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.COMMAND_REPEATING, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.STRUCTURE_BLOCK, new BlockMiningProperties(Double.POSITIVE_INFINITY, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.OBSIDIAN, new BlockMiningProperties(50.0, ToolType.PICKAXE, ToolTier.DIAMOND)); + PROPERTIES.put(Material.ENDER_CHEST, new BlockMiningProperties(22.5, ToolType.PICKAXE, ToolTier.DIAMOND)); + PROPERTIES.put(Material.ANVIL, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.COAL_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.DIAMOND_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.EMERALD_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.IRON_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.STONE)); + PROPERTIES.put(Material.REDSTONE_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.ENCHANTMENT_TABLE, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.IRON_FENCE, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.IRON_DOOR_BLOCK, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.IRON_TRAPDOOR, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.MOB_SPAWNER, new BlockMiningProperties(5.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.WEB, new BlockMiningProperties(4.0, ToolType.SHEARS, ToolTier.NA)); + PROPERTIES.put(Material.DISPENSER, new BlockMiningProperties(3.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.DROPPER, new BlockMiningProperties(3.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.FURNACE, new BlockMiningProperties(3.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.BEACON, new BlockMiningProperties(3.0, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.GOLD_BLOCK, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.COAL_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.DRAGON_EGG, new BlockMiningProperties(3.0, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.DIAMOND_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.EMERALD_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.ENDER_STONE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.GOLD_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.HOPPER, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.IRON_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.STONE)); + PROPERTIES.put(Material.LAPIS_BLOCK, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.STONE)); + PROPERTIES.put(Material.LAPIS_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.STONE)); + PROPERTIES.put(Material.QUARTZ_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.REDSTONE_ORE, new BlockMiningProperties(3.0, ToolType.PICKAXE, ToolTier.IRON)); + PROPERTIES.put(Material.TRAP_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WOODEN_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.ACACIA_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.BIRCH_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_DOOR, new BlockMiningProperties(3.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.CHEST, new BlockMiningProperties(2.5, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.TRAPPED_CHEST, new BlockMiningProperties(2.5, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WORKBENCH, new BlockMiningProperties(2.5, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.BRICK_STAIRS, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.BRICK, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.CAULDRON, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.COBBLESTONE, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.COBBLESTONE_STAIRS, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.COBBLE_WALL, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.ACACIA_FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.BIRCH_FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_FENCE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.ACACIA_FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.BIRCH_FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_FENCE_GATE, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JUKEBOX, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.MOSSY_COBBLESTONE, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.NETHER_BRICK, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.NETHER_BRICK_STAIRS, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.NETHER_FENCE, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.STEP, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.LOG, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.LOG_2, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WOOD, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.STONE_SLAB2, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.DOUBLE_STONE_SLAB2, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.DOUBLE_STEP, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.WOOD_STEP, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WOOD_DOUBLE_STEP, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WOOD_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.ACACIA_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_WOOD_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.BIRCH_WOOD_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_WOOD_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_STAIRS, new BlockMiningProperties(2.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.STONE, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.PRISMARINE, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.SMOOTH_BRICK, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.SMOOTH_STAIRS, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.HARD_CLAY, new BlockMiningProperties(1.25, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.STAINED_CLAY, new BlockMiningProperties(1.25, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.BANNER, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.JACK_O_LANTERN, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.MELON_BLOCK, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SKULL, new BlockMiningProperties(1.0, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PUMPKIN, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SIGN_POST, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.WALL_SIGN, new BlockMiningProperties(1.0, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.QUARTZ_BLOCK, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.NOTE_BLOCK, new BlockMiningProperties(0.8, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.QUARTZ_STAIRS, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.RED_SANDSTONE, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.RED_SANDSTONE_STAIRS, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.SANDSTONE, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.SANDSTONE_STAIRS, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.WOOL, new BlockMiningProperties(0.8, ToolType.SHEARS, ToolTier.NA, true)); + PROPERTIES.put(Material.MONSTER_EGG, new BlockMiningProperties(0.75, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.RAILS, new BlockMiningProperties(0.7, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.ACTIVATOR_RAIL, new BlockMiningProperties(0.7, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DETECTOR_RAIL, new BlockMiningProperties(0.7, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.POWERED_RAIL, new BlockMiningProperties(0.7, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.CLAY, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SOIL, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.GRASS, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.GRAVEL, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.MYCEL, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SPONGE, new BlockMiningProperties(0.6, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.BREWING_STAND, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.STONE_BUTTON, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.CAKE, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.DIRT, new BlockMiningProperties(0.5, ToolType.SHOVEL, ToolTier.NA, true)); + PROPERTIES.put(Material.HAY_BLOCK, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.ICE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.LEVER, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PACKED_ICE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.PISTON_BASE, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PISTON_EXTENSION, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PISTON_MOVING_PIECE, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PISTON_STICKY_BASE, new BlockMiningProperties(0.5, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.SAND, new BlockMiningProperties(0.5, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SOUL_SAND, new BlockMiningProperties(0.5, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.GOLD_PLATE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.IRON_PLATE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.STONE_PLATE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.WOOD_PLATE, new BlockMiningProperties(0.5, ToolType.AXE, ToolTier.WOOD)); + PROPERTIES.put(Material.CACTUS, new BlockMiningProperties(0.4, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.LADDER, new BlockMiningProperties(0.4, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.NETHERRACK, new BlockMiningProperties(0.4, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.GLASS, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.STAINED_GLASS_PANE, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.STAINED_GLASS, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.THIN_GLASS, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA)); + PROPERTIES.put(Material.GLOWSTONE, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.REDSTONE_LAMP_ON, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.REDSTONE_LAMP_OFF, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.SEA_LANTERN, new BlockMiningProperties(0.3, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.BED, new BlockMiningProperties(0.2, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.COCOA, new BlockMiningProperties(0.2, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DAYLIGHT_DETECTOR, new BlockMiningProperties(0.2, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.DAYLIGHT_DETECTOR_INVERTED, new BlockMiningProperties(0.2, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.HUGE_MUSHROOM_1, new BlockMiningProperties(0.1, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.HUGE_MUSHROOM_2, new BlockMiningProperties(0.1, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.SNOW_BLOCK, new BlockMiningProperties(0.1, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.VINE, new BlockMiningProperties(0.1, ToolType.AXE, ToolTier.WOOD, true)); + PROPERTIES.put(Material.CARPET, new BlockMiningProperties(0.1, ToolType.NONE, ToolTier.NA, true)); + PROPERTIES.put(Material.PURPUR_BLOCK, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD, false)); + PROPERTIES.put(Material.PURPUR_PILLAR, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD, false)); + PROPERTIES.put(Material.PURPUR_STAIRS, new BlockMiningProperties(1.5, ToolType.PICKAXE, ToolTier.WOOD, false)); + PROPERTIES.put(Material.PURPUR_DOUBLE_SLAB, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.PURPUR_SLAB, new BlockMiningProperties(2.0, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.END_BRICKS, new BlockMiningProperties(0.8, ToolType.PICKAXE, ToolTier.WOOD)); + PROPERTIES.put(Material.GRASS_PATH, new BlockMiningProperties(0.6, ToolType.SHOVEL, ToolTier.WOOD, true)); + PROPERTIES.put(Material.FROSTED_ICE, new BlockMiningProperties(0.5, ToolType.PICKAXE, ToolTier.WOOD, true)); + } + + private static final class BlockMiningProperties { + private final double hardness; + private final ToolType toolType; + private final ToolTier toolTier; + private final boolean breakableByHand; + + private BlockMiningProperties(double hardness, ToolType toolType, ToolTier toolTier, boolean breakableByHand) { + this.hardness = hardness; + this.toolType = toolType; + this.toolTier = toolTier; + this.breakableByHand = breakableByHand; + } + + private BlockMiningProperties(double hardness, ToolType toolType, ToolTier toolTier) { + this(hardness, toolType, toolTier, false); + } + + private double getHardness() { + return this.hardness; + } + + private ToolType getToolType() { + return this.toolType; + } + + private ToolTier getToolTier() { + return this.toolTier; + } + + private boolean canBreakByHand() { + return this.breakableByHand; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/BlockUtil.java b/src/main/java/me/konsolas/aac/util/blocks/BlockUtil.java new file mode 100644 index 0000000..351a3cc --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockUtil.java @@ -0,0 +1,214 @@ +package me.konsolas.aac.util.blocks; + +import org.bukkit.Material; +import org.bukkit.entity.Player; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +public class BlockUtil { + public static long calculateBreakTimeTicks(Material material, Player player) { + int hasteLevel = 0; + int miningFatigueLevel = 0; + + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.SLOW_DIGGING)) { + miningFatigueLevel = effect.getAmplifier() + 1; + } else if (effect.getType().equals(PotionEffectType.FAST_DIGGING)) { + hasteLevel = effect.getAmplifier() + 1; + } + } + + try { + return calculateBreakTimeTicks( + material, + new MiningTool(player.getInventory().getItemInMainHand()), + new MiningPotionEffects(hasteLevel, miningFatigueLevel), + false + ); + } catch (NullPointerException e) { + return 0L; + } + } + + public static int getHasteLevel(Player player) { + for (PotionEffect effect : player.getActivePotionEffects()) { + if (effect.getType().equals(PotionEffectType.FAST_DIGGING)) { + return effect.getAmplifier() + 1; + } + } + + return 0; + } + + public static long calculateBreakTimeTicks(Material material, MiningTool tool, MiningPotionEffects effects, boolean underwaterOrAirborne) { + if (BlockData.getHardness(material) == Double.POSITIVE_INFINITY) { + return 2147483647L; + } + + double baseTicks = BlockData.getHardness(material) * (canHarvest(material, tool) ? 30 : 100); + double speed = 1.0; + if (isEffectiveTool(material, tool)) { + switch (tool.getToolTier()) { + case WOOD: + speed = 2.0; + break; + case GOLD: + speed = 12.0; + break; + case STONE: + speed = 4.0; + break; + case IRON: + speed = 6.0; + break; + case DIAMOND: + speed = 8.0; + break; + case NA: + speed = 1.0; + break; + } + + if (tool.getToolType() == ToolType.SHEARS) { + speed = 15.0; + } + + if (tool.getEfficiencyLevel() != 0) { + speed += Math.pow(tool.getEfficiencyLevel(), 2.0) + 1.0; + } + + if (underwaterOrAirborne) { + speed /= 5.0; + } + } else { + speed = 1.0; + } + + if (effects.getHasteLevel() > 0) { + speed += speed * (effects.getHasteLevel() * 0.2); + } + + if (effects.getMiningFatigueLevel() > 0) { + switch (effects.getMiningFatigueLevel()) { + case 1: + speed *= 0.3; + break; + case 2: + speed *= 0.09; + break; + case 3: + speed *= 0.0027; + break; + default: + speed *= 8.1E-4; + } + } + + return (int) (baseTicks / speed); + } + + public static boolean canHarvest(Material material, MiningTool tool) { + return BlockData.getPreferredTool(material) == tool.getToolType() + && ToolTier.isRightLevel(BlockData.getRequiredTier(material), tool.getToolTier()) + ? true + : BlockData.getRequiredTier(material) == ToolTier.NA || BlockData.canBreakByHand(material); + } + + public static boolean isEffectiveTool(Material material, MiningTool tool) { + return canHarvest(material, tool); + } + + public static boolean isTransparent(Material material) { + if (!material.isBlock()) { + throw new IllegalArgumentException("Tried to check transparency of non-block"); + } + + if (!material.toString().contains("DOOR") && !material.toString().contains("FENCE") && !material.toString().contains("STAIRS")) { + switch (material) { + case AIR: + case SAPLING: + case POWERED_RAIL: + case DETECTOR_RAIL: + case LONG_GRASS: + case DEAD_BUSH: + case YELLOW_FLOWER: + case RED_ROSE: + case BROWN_MUSHROOM: + case RED_MUSHROOM: + case TORCH: + case FIRE: + case REDSTONE_WIRE: + case CROPS: + case LADDER: + case RAILS: + case LEVER: + case REDSTONE_TORCH_OFF: + case REDSTONE_TORCH_ON: + case STONE_BUTTON: + case SNOW: + case SUGAR_CANE_BLOCK: + case PORTAL: + case DIODE_BLOCK_OFF: + case DIODE_BLOCK_ON: + case PUMPKIN_STEM: + case MELON_STEM: + case VINE: + case WATER_LILY: + case NETHER_WARTS: + case ENDER_PORTAL: + case COCOA: + case TRIPWIRE_HOOK: + case TRIPWIRE: + case FLOWER_POT: + case CARROT: + case POTATO: + case WOOD_BUTTON: + case SKULL: + case REDSTONE_COMPARATOR_OFF: + case REDSTONE_COMPARATOR_ON: + case ACTIVATOR_RAIL: + case CARPET: + case DOUBLE_PLANT: + case LEAVES: + case LEAVES_2: + case WATER: + case STATIONARY_WATER: + case LAVA: + case STATIONARY_LAVA: + case COBBLE_WALL: + case DAYLIGHT_DETECTOR: + case DAYLIGHT_DETECTOR_INVERTED: + case ENCHANTMENT_TABLE: + case ENDER_CHEST: + case CHEST: + case TRAPPED_CHEST: + case GLASS: + case STAINED_GLASS_PANE: + case STAINED_GLASS: + case THIN_GLASS: + case HOPPER: + case STEP: + case STONE_SLAB2: + case WOOD_STEP: + case TRAP_DOOR: + case IRON_TRAPDOOR: + case GOLD_PLATE: + case IRON_PLATE: + case STONE_PLATE: + case WOOD_PLATE: + case ENDER_PORTAL_FRAME: + case SIGN_POST: + case SIGN: + case WALL_SIGN: + case CACTUS: + case MOB_SPAWNER: + case SLIME_BLOCK: + return true; + default: + return false; + } + } else { + return true; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/MiningPotionEffects.java b/src/main/java/me/konsolas/aac/util/blocks/MiningPotionEffects.java new file mode 100644 index 0000000..40c7e2e --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/MiningPotionEffects.java @@ -0,0 +1,19 @@ +package me.konsolas.aac.util.blocks; + +public class MiningPotionEffects { + private final int hasteLevel; + private final int miningFatigueLevel; + + public MiningPotionEffects(int hasteLevel, int miningFatigueLevel) { + this.hasteLevel = hasteLevel; + this.miningFatigueLevel = miningFatigueLevel; + } + + public int getHasteLevel() { + return this.hasteLevel; + } + + public int getMiningFatigueLevel() { + return this.miningFatigueLevel; + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/MiningTool.java b/src/main/java/me/konsolas/aac/util/blocks/MiningTool.java new file mode 100644 index 0000000..dd66aa2 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/MiningTool.java @@ -0,0 +1,106 @@ +package me.konsolas.aac.util.blocks; + +import org.bukkit.Material; +import org.bukkit.enchantments.Enchantment; +import org.bukkit.inventory.ItemStack; + +public class MiningTool { + private final ToolType toolType; + private final ToolTier toolTier; + private final int efficiencyLevel; + + public MiningTool(ToolType toolType, ToolTier toolTier, int efficiencyLevel) { + this.toolType = toolType; + this.toolTier = toolTier; + this.efficiencyLevel = efficiencyLevel; + } + + public MiningTool(ItemStack itemStack) { + if (itemStack == null) { + itemStack = new ItemStack(Material.AIR); + } + + switch (itemStack.getType()) { + case WOOD_PICKAXE: + case GOLD_PICKAXE: + case STONE_PICKAXE: + case IRON_PICKAXE: + case DIAMOND_PICKAXE: + this.toolType = ToolType.PICKAXE; + break; + case WOOD_AXE: + case GOLD_AXE: + case STONE_AXE: + case IRON_AXE: + case DIAMOND_AXE: + this.toolType = ToolType.AXE; + break; + case WOOD_SPADE: + case GOLD_SPADE: + case STONE_SPADE: + case IRON_SPADE: + case DIAMOND_SPADE: + this.toolType = ToolType.SHOVEL; + break; + case WOOD_SWORD: + case GOLD_SWORD: + case STONE_SWORD: + case IRON_SWORD: + case DIAMOND_SWORD: + case SHEARS: + this.toolType = ToolType.SHEARS; + break; + default: + this.toolType = ToolType.NONE; + } + + switch (itemStack.getType()) { + case WOOD_PICKAXE: + case WOOD_AXE: + case WOOD_SPADE: + case WOOD_SWORD: + this.toolTier = ToolTier.WOOD; + break; + case GOLD_PICKAXE: + case GOLD_AXE: + case GOLD_SPADE: + case GOLD_SWORD: + this.toolTier = ToolTier.GOLD; + break; + case STONE_PICKAXE: + case STONE_AXE: + case STONE_SPADE: + case STONE_SWORD: + this.toolTier = ToolTier.STONE; + break; + case IRON_PICKAXE: + case IRON_AXE: + case IRON_SPADE: + case IRON_SWORD: + this.toolTier = ToolTier.IRON; + break; + case DIAMOND_PICKAXE: + case DIAMOND_AXE: + case DIAMOND_SPADE: + case DIAMOND_SWORD: + this.toolTier = ToolTier.DIAMOND; + break; + default: + this.toolTier = ToolTier.NA; + } + + this.efficiencyLevel = itemStack.getEnchantmentLevel(Enchantment.DIG_SPEED); + } + + public ToolType getToolType() { + return this.toolType; + } + + public ToolTier getToolTier() { + return this.toolTier; + } + + public int getEfficiencyLevel() { + return this.efficiencyLevel; + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/ToolTier.java b/src/main/java/me/konsolas/aac/util/blocks/ToolTier.java new file mode 100644 index 0000000..108ad86 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/ToolTier.java @@ -0,0 +1,20 @@ +package me.konsolas.aac.util.blocks; + +public enum ToolTier { + WOOD(1), + GOLD(1), + STONE(2), + IRON(3), + DIAMOND(4), + NA(0); + + private final int level; + + ToolTier(int level) { + this.level = level; + } + + public static boolean isRightLevel(ToolTier required, ToolTier held) { + return held.level >= required.level; + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/ToolType.java b/src/main/java/me/konsolas/aac/util/blocks/ToolType.java new file mode 100644 index 0000000..51a4a25 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/ToolType.java @@ -0,0 +1,10 @@ +package me.konsolas.aac.util.blocks; + +public enum ToolType { + PICKAXE, + AXE, + SHOVEL, + SHEARS, + SWORD, + NONE +} diff --git a/src/main/java/me/konsolas/aac/util/general/ElytraUtil.java b/src/main/java/me/konsolas/aac/util/general/ElytraUtil.java new file mode 100644 index 0000000..eb28ccf --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/ElytraUtil.java @@ -0,0 +1,29 @@ +package me.konsolas.aac.util.general; + +import java.lang.reflect.Method; +import org.bukkit.entity.Player; + +public class ElytraUtil { + private static Method getHandleMethod; + private static Method isGlidingMethod; + + public static boolean isGliding(Player player) { + try { + if (getHandleMethod == null) { + getHandleMethod = player.getClass().getDeclaredMethod("getHandle"); + getHandleMethod.setAccessible(true); + } + + Object entityPlayer = getHandleMethod.invoke(player); + if (isGlidingMethod == null) { + isGlidingMethod = entityPlayer.getClass().getSuperclass().getSuperclass().getDeclaredMethod("cG"); + isGlidingMethod.setAccessible(true); + } + + return (Boolean) isGlidingMethod.invoke(entityPlayer); + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/ItemUseUtil.java b/src/main/java/me/konsolas/aac/util/general/ItemUseUtil.java new file mode 100644 index 0000000..35f8ace --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/ItemUseUtil.java @@ -0,0 +1,30 @@ +package me.konsolas.aac.util.general; + +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import org.bukkit.entity.Player; + +public class ItemUseUtil { + private static Method getHandleMethod; + private static Field activeItemField; + + public static boolean isUsingItem(Player player) { + try { + if (getHandleMethod == null) { + getHandleMethod = player.getClass().getDeclaredMethod("getHandle"); + getHandleMethod.setAccessible(true); + } + + Object entityPlayer = getHandleMethod.invoke(player); + if (activeItemField == null) { + activeItemField = entityPlayer.getClass().getSuperclass().getSuperclass().getDeclaredField("bo"); + activeItemField.setAccessible(true); + } + + return activeItemField.get(entityPlayer) != null; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/MapUtil.java b/src/main/java/me/konsolas/aac/util/general/MapUtil.java new file mode 100644 index 0000000..970bcd2 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/MapUtil.java @@ -0,0 +1,30 @@ +package me.konsolas.aac.util.general; + +import java.util.Collections; +import java.util.Comparator; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; + +public class MapUtil { + public static > Map sortByValueDescending(Map map) { + List> entries = new LinkedList<>(map.entrySet()); + Collections.sort(entries, new DescendingValueComparator<>()); + Map sorted = new LinkedHashMap<>(); + + for (Entry entry : entries) { + sorted.put(entry.getKey(), entry.getValue()); + } + + return sorted; + } + + private static final class DescendingValueComparator> implements Comparator> { + @Override + public int compare(Entry first, Entry second) { + return second.getValue().compareTo(first.getValue()); + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/NumberUtil.java b/src/main/java/me/konsolas/aac/util/general/NumberUtil.java new file mode 100644 index 0000000..8ec2639 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/NumberUtil.java @@ -0,0 +1,15 @@ +package me.konsolas.aac.util.general; + +public class NumberUtil { + public static boolean approximatelyEqual(double value, double target, double tolerance) { + return value + tolerance > target && value - tolerance < target; + } + + public static double multiplyRepeatedly(double base, double factor, int count) { + for (int i = 0; i < count; i++) { + base *= factor; + } + + return base; + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/RandomPlayerNameGenerator.java b/src/main/java/me/konsolas/aac/util/general/RandomPlayerNameGenerator.java new file mode 100644 index 0000000..1da994d --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/RandomPlayerNameGenerator.java @@ -0,0 +1,57 @@ +package me.konsolas.aac.util.general; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Random; + +public class RandomPlayerNameGenerator { + private static final List LETTERS = Collections.unmodifiableList(Arrays.asList(Alphabet.values())); + private static final Random RANDOM = new Random(); + + public static String generateName() { + int length = 3 + RANDOM.nextInt(4); + StringBuilder builder = new StringBuilder(); + + while (length > 0) { + length--; + builder.append(randomLetter()); + } + + builder.append(RANDOM.nextInt(999999)); + return builder.toString(); + } + + private static String randomLetter() { + return LETTERS.get(RANDOM.nextInt(LETTERS.size())).name(); + } + + private enum Alphabet { + a, + b, + c, + d, + e, + f, + g, + h, + i, + j, + k, + l, + m, + n, + o, + p, + q, + r, + s, + t, + u, + v, + w, + x, + y, + z + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/Reflection.java b/src/main/java/me/konsolas/aac/util/general/Reflection.java new file mode 100644 index 0000000..4884963 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/Reflection.java @@ -0,0 +1,224 @@ +package me.konsolas.aac.util.general; + +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import org.bukkit.Bukkit; + +public final class Reflection { + private static final String OBC_PREFIX = Bukkit.getServer().getClass().getPackage().getName(); + private static final String NMS_PREFIX = OBC_PREFIX.replace("org.bukkit.craftbukkit", "net.minecraft.server"); + private static final String VERSION = OBC_PREFIX.replace("org.bukkit.craftbukkit", "").replace(".", ""); + private static final Pattern MATCH_VARIABLE = Pattern.compile("\\{([^\\}]+)\\}"); + + private Reflection() { + } + + public static FieldAccessor getField(Class target, String name, Class fieldType) { + return getField(target, name, fieldType, 0); + } + + public static FieldAccessor getField(String className, String name, Class fieldType) { + return getField(getClass(className), name, fieldType, 0); + } + + public static FieldAccessor getField(Class target, Class fieldType, int index) { + return getField(target, null, fieldType, index); + } + + public static FieldAccessor getField(String className, Class fieldType, int index) { + return getField(getClass(className), fieldType, index); + } + + private static FieldAccessor getField(Class target, String name, Class fieldType, int index) { + for (Field field : target.getDeclaredFields()) { + if ((name == null || field.getName().equals(name)) && fieldType.isAssignableFrom(field.getType()) && index-- <= 0) { + field.setAccessible(true); + return new ReflectiveFieldAccessor<>(field); + } + } + + if (target.getSuperclass() != null) { + return getField(target.getSuperclass(), name, fieldType, index); + } else { + throw new IllegalArgumentException("Cannot find field with type " + fieldType); + } + } + + public static MethodInvoker getMethod(String className, String methodName, Class... params) { + return getTypedMethod(getClass(className), methodName, null, params); + } + + public static MethodInvoker getMethod(Class clazz, String methodName, Class... params) { + return getTypedMethod(clazz, methodName, null, params); + } + + public static MethodInvoker getTypedMethod(Class clazz, String methodName, Class returnType, Class... params) { + for (Method method : clazz.getDeclaredMethods()) { + if ((methodName == null || method.getName().equals(methodName)) && returnType == null + || method.getReturnType().equals(returnType) && Arrays.equals(method.getParameterTypes(), params)) { + method.setAccessible(true); + return new ReflectiveMethodInvoker(method); + } + } + + if (clazz.getSuperclass() != null) { + return getMethod(clazz.getSuperclass(), methodName, params); + } else { + throw new IllegalStateException(String.format("Unable to find method %s (%s).", methodName, Arrays.asList(params))); + } + } + + public static ConstructorInvoker getConstructor(String className, Class... params) { + return getConstructor(getClass(className), params); + } + + public static ConstructorInvoker getConstructor(Class clazz, Class... params) { + for (Constructor constructor : clazz.getDeclaredConstructors()) { + if (Arrays.equals(constructor.getParameterTypes(), params)) { + constructor.setAccessible(true); + return new ReflectiveConstructorInvoker(constructor); + } + } + + throw new IllegalStateException(String.format("Unable to find constructor for %s (%s).", clazz, Arrays.asList(params))); + } + + @SuppressWarnings("unchecked") + public static Class getUntypedClass(String lookupName) { + return (Class) getClass(lookupName); + } + + public static Class getClass(String lookupName) { + return getCanonicalClass(expandVariables(lookupName)); + } + + public static Class getMinecraftClass(String name) { + return getCanonicalClass(NMS_PREFIX + "." + name); + } + + public static Class getCraftBukkitClass(String name) { + return getCanonicalClass(OBC_PREFIX + "." + name); + } + + private static Class getCanonicalClass(String canonicalName) { + try { + return Class.forName(canonicalName); + } catch (ClassNotFoundException e) { + throw new IllegalArgumentException("Cannot find " + canonicalName, e); + } + } + + private static String expandVariables(String name) { + StringBuffer output = new StringBuffer(); + Matcher matcher = MATCH_VARIABLE.matcher(name); + + while (matcher.find()) { + String variable = matcher.group(1); + String replacement = ""; + if ("nms".equalsIgnoreCase(variable)) { + replacement = NMS_PREFIX; + } else if ("obc".equalsIgnoreCase(variable)) { + replacement = OBC_PREFIX; + } else if ("version".equalsIgnoreCase(variable)) { + replacement = VERSION; + } else { + throw new IllegalArgumentException("Unknown variable: " + variable); + } + + if (replacement.length() > 0 && matcher.end() < name.length() && name.charAt(matcher.end()) != '.') { + replacement = replacement + "."; + } + + matcher.appendReplacement(output, Matcher.quoteReplacement(replacement)); + } + + matcher.appendTail(output); + return output.toString(); + } + + public interface FieldAccessor { + T get(Object target); + + void set(Object target, Object value); + + boolean hasField(Object target); + } + + public interface MethodInvoker { + Object invoke(Object target, Object... arguments); + } + + public interface ConstructorInvoker { + Object invoke(Object... arguments); + } + + private static final class ReflectiveFieldAccessor implements FieldAccessor { + private final Field field; + + private ReflectiveFieldAccessor(Field field) { + this.field = field; + } + + @Override + @SuppressWarnings("unchecked") + public T get(Object target) { + try { + return (T) this.field.get(target); + } catch (IllegalAccessException e) { + throw new RuntimeException("Cannot access reflection.", e); + } + } + + @Override + public void set(Object target, Object value) { + try { + this.field.set(target, value); + } catch (IllegalAccessException e) { + throw new RuntimeException("Cannot access reflection.", e); + } + } + + @Override + public boolean hasField(Object target) { + return this.field.getDeclaringClass().isAssignableFrom(target.getClass()); + } + } + + private static final class ReflectiveMethodInvoker implements MethodInvoker { + private final Method method; + + private ReflectiveMethodInvoker(Method method) { + this.method = method; + } + + @Override + public Object invoke(Object target, Object... arguments) { + try { + return this.method.invoke(target, arguments); + } catch (Exception e) { + throw new RuntimeException("Cannot invoke method " + this.method, e); + } + } + } + + private static final class ReflectiveConstructorInvoker implements ConstructorInvoker { + private final Constructor constructor; + + private ReflectiveConstructorInvoker(Constructor constructor) { + this.constructor = constructor; + } + + @Override + public Object invoke(Object... arguments) { + try { + return this.constructor.newInstance(arguments); + } catch (Exception e) { + throw new RuntimeException("Cannot invoke constructor " + this.constructor, e); + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/ground/GroundUtil.java b/src/main/java/me/konsolas/aac/util/ground/GroundUtil.java new file mode 100644 index 0000000..b29f70f --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/ground/GroundUtil.java @@ -0,0 +1,554 @@ +package me.konsolas.aac.util.ground; + +import java.util.HashSet; +import java.util.Set; +import me.konsolas.aac.util.BlockCache; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.entity.Player; + +public class GroundUtil { + public static boolean isSolidFullBlock(Block block) { + switch (block.getType()) { + case BARRIER: + case BEACON: + case BEDROCK: + case BOOKSHELF: + case BRICK: + case BURNING_FURNACE: + case CLAY: + case CLAY_BRICK: + case COAL_BLOCK: + case COAL_ORE: + case COBBLESTONE: + case COMMAND: + case DIAMOND_BLOCK: + case DIAMOND_ORE: + case DIRT: + case DISPENSER: + case DOUBLE_STEP: + case DOUBLE_STONE_SLAB2: + case DROPPER: + case EMERALD_BLOCK: + case EMERALD_ORE: + case FURNACE: + case GLASS: + case GLOWING_REDSTONE_ORE: + case GLOWSTONE: + case GOLD_BLOCK: + case GOLD_ORE: + case GRASS: + case GRAVEL: + case HARD_CLAY: + case HAY_BLOCK: + case HUGE_MUSHROOM_1: + case HUGE_MUSHROOM_2: + case ICE: + case IRON_BLOCK: + case IRON_ORE: + case JACK_O_LANTERN: + case JUKEBOX: + case LAPIS_BLOCK: + case LAPIS_ORE: + case LEAVES: + case LEAVES_2: + case LOG: + case LOG_2: + case MOB_SPAWNER: + case MOSSY_COBBLESTONE: + case MYCEL: + case NETHERRACK: + case NETHER_BRICK: + case NETHER_BRICK_ITEM: + case NOTE_BLOCK: + case OBSIDIAN: + case PACKED_ICE: + case PISTON_BASE: + case PISTON_STICKY_BASE: + case PRISMARINE: + case PUMPKIN: + case QUARTZ_BLOCK: + case QUARTZ_ORE: + case REDSTONE_BLOCK: + case REDSTONE_LAMP_OFF: + case REDSTONE_LAMP_ON: + case REDSTONE_ORE: + case RED_SANDSTONE: + case SAND: + case SANDSTONE: + case SEA_LANTERN: + case SLIME_BLOCK: + case SMOOTH_BRICK: + case SNOW_BLOCK: + case SPONGE: + case STAINED_CLAY: + case STAINED_GLASS: + case STONE: + case TNT: + case WOOD: + case WOOD_DOUBLE_STEP: + case WOOL: + case WORKBENCH: + case ENDER_STONE: + case PURPUR_BLOCK: + case PURPUR_PILLAR: + case PURPUR_DOUBLE_SLAB: + case END_BRICKS: + case FROSTED_ICE: + case MAGMA: + case RED_NETHER_BRICK: + case BONE_BLOCK: + case NETHER_WART_BLOCK: + return true; + default: + return false; + } + } + + public static boolean isStandableBlock(Block block) { + if (block.getRelative(BlockFace.UP).getType() == Material.CARPET) { + return true; + } + + if (block.getType().isBlock() && block.getType() != Material.AIR) { + switch (block.getType()) { + case BARRIER: + case BEACON: + case BEDROCK: + case BOOKSHELF: + case BRICK: + case BURNING_FURNACE: + case CLAY: + case COAL_BLOCK: + case COAL_ORE: + case COBBLESTONE: + case COMMAND: + case DIAMOND_BLOCK: + case DIAMOND_ORE: + case DIRT: + case DISPENSER: + case DOUBLE_STEP: + case DOUBLE_STONE_SLAB2: + case DROPPER: + case EMERALD_BLOCK: + case EMERALD_ORE: + case FURNACE: + case GLASS: + case GLOWING_REDSTONE_ORE: + case GLOWSTONE: + case GOLD_BLOCK: + case GOLD_ORE: + case GRASS: + case GRAVEL: + case HARD_CLAY: + case HAY_BLOCK: + case HUGE_MUSHROOM_1: + case HUGE_MUSHROOM_2: + case ICE: + case IRON_BLOCK: + case IRON_ORE: + case JACK_O_LANTERN: + case JUKEBOX: + case LAPIS_BLOCK: + case LAPIS_ORE: + case LEAVES: + case LEAVES_2: + case LOG: + case LOG_2: + case MOB_SPAWNER: + case MOSSY_COBBLESTONE: + case MYCEL: + case NETHERRACK: + case NETHER_BRICK: + case NOTE_BLOCK: + case OBSIDIAN: + case PACKED_ICE: + case PISTON_BASE: + case PISTON_STICKY_BASE: + case PRISMARINE: + case PUMPKIN: + case QUARTZ_BLOCK: + case QUARTZ_ORE: + case REDSTONE_BLOCK: + case REDSTONE_LAMP_OFF: + case REDSTONE_LAMP_ON: + case REDSTONE_ORE: + case RED_SANDSTONE: + case SAND: + case SANDSTONE: + case SEA_LANTERN: + case SLIME_BLOCK: + case SMOOTH_BRICK: + case SNOW_BLOCK: + case SPONGE: + case STAINED_CLAY: + case STAINED_GLASS: + case STONE: + case TNT: + case WOOD: + case WOOD_DOUBLE_STEP: + case WOOL: + case WORKBENCH: + case ENDER_STONE: + case PURPUR_BLOCK: + case PURPUR_PILLAR: + case PURPUR_DOUBLE_SLAB: + case END_BRICKS: + case FROSTED_ICE: + case MAGMA: + case RED_NETHER_BRICK: + case BONE_BLOCK: + case NETHER_WART_BLOCK: + case BED_BLOCK: + case PISTON_EXTENSION: + case PISTON_MOVING_PIECE: + case STEP: + case WOOD_STAIRS: + case CHEST: + case SOIL: + case WOODEN_DOOR: + case COBBLESTONE_STAIRS: + case IRON_DOOR_BLOCK: + case CACTUS: + case FENCE: + case SOUL_SAND: + case CAKE_BLOCK: + case TRAP_DOOR: + case MONSTER_EGGS: + case IRON_FENCE: + case THIN_GLASS: + case MELON_BLOCK: + case FENCE_GATE: + case BRICK_STAIRS: + case SMOOTH_STAIRS: + case NETHER_FENCE: + case NETHER_BRICK_STAIRS: + case ENCHANTMENT_TABLE: + case BREWING_STAND: + case CAULDRON: + case ENDER_PORTAL_FRAME: + case DRAGON_EGG: + case WOOD_STEP: + case SANDSTONE_STAIRS: + case ENDER_CHEST: + case SPRUCE_WOOD_STAIRS: + case BIRCH_WOOD_STAIRS: + case JUNGLE_WOOD_STAIRS: + case COBBLE_WALL: + case ANVIL: + case TRAPPED_CHEST: + case DAYLIGHT_DETECTOR: + case HOPPER: + case QUARTZ_STAIRS: + case STAINED_GLASS_PANE: + case ACACIA_STAIRS: + case DARK_OAK_STAIRS: + case IRON_TRAPDOOR: + case RED_SANDSTONE_STAIRS: + case STONE_SLAB2: + case SPRUCE_FENCE_GATE: + case BIRCH_FENCE_GATE: + case JUNGLE_FENCE_GATE: + case DARK_OAK_FENCE_GATE: + case ACACIA_FENCE_GATE: + case SPRUCE_FENCE: + case BIRCH_FENCE: + case JUNGLE_FENCE: + case DARK_OAK_FENCE: + case ACACIA_FENCE: + case DAYLIGHT_DETECTOR_INVERTED: + case SPRUCE_DOOR: + case BIRCH_DOOR: + case JUNGLE_DOOR: + case ACACIA_DOOR: + case DARK_OAK_DOOR: + case LADDER: + case VINE: + case WATER_LILY: + case SKULL: + case FLOWER_POT: + case END_ROD: + case CHORUS_PLANT: + case CHORUS_FLOWER: + case PURPUR_SLAB: + case PURPUR_STAIRS: + case END_GATEWAY: + case GRASS_PATH: + return true; + case CLAY_BRICK: + case NETHER_BRICK_ITEM: + default: + return false; + } + } else { + return false; + } + } + + public static boolean isSolidSupportBlock(Block block) { + return isNotUnpaddedFence(block) && isStandableBlock(block); + } + + public static boolean isSupportOrLiquid(Block block) { + return block.getType() == Material.LAVA + || block.getType() == Material.STATIONARY_LAVA + || block.getType() == Material.STATIONARY_WATER + || block.getType() == Material.WATER + || isSolidSupportBlock(block); + } + + public static boolean isSlabOrLowBlock(Material material) { + if (material.equals(Material.STEP)) { + return true; + } else if (material.equals(Material.WOOD_STEP)) { + return true; + } else if (material.equals(Material.DAYLIGHT_DETECTOR)) { + return true; + } else if (material.equals(Material.STONE_SLAB2)) { + return true; + } else { + return material.equals(Material.WATER_LILY) ? true : material.equals(Material.SKULL); + } + } + + public static boolean isStairs(Material material) { + return material == Material.ACACIA_STAIRS + || material == Material.BIRCH_WOOD_STAIRS + || material == Material.BRICK_STAIRS + || material == Material.COBBLESTONE_STAIRS + || material == Material.DARK_OAK_STAIRS + || material == Material.JUNGLE_WOOD_STAIRS + || material == Material.NETHER_BRICK_STAIRS + || material == Material.QUARTZ_STAIRS + || material == Material.RED_SANDSTONE_STAIRS + || material == Material.SANDSTONE_STAIRS + || material == Material.SMOOTH_STAIRS + || material == Material.SPRUCE_WOOD_STAIRS + || material == Material.WOOD_STAIRS; + } + + public static boolean isStepOrStairs(Material material) { + return isSlabOrLowBlock(material) || isStairs(material); + } + + public static boolean isFenceOrWall(Material material) { + return material == Material.FENCE + || material == Material.FENCE_GATE + || material == Material.ACACIA_FENCE + || material == Material.BIRCH_FENCE + || material == Material.DARK_OAK_FENCE + || material == Material.JUNGLE_FENCE + || material == Material.NETHER_FENCE + || material == Material.SPRUCE_FENCE + || material == Material.ACACIA_FENCE_GATE + || material == Material.BIRCH_FENCE_GATE + || material == Material.JUNGLE_FENCE_GATE + || material == Material.DARK_OAK_FENCE_GATE + || material == Material.SPRUCE_FENCE_GATE + || material == Material.COBBLE_WALL; + } + + public static boolean isNotUnpaddedFence(Block block) { + return !isFenceOrWall(block.getType()) || block.getRelative(BlockFace.UP).getType() == Material.CARPET; + } + + @SuppressWarnings("deprecation") + public static boolean isOnGround(Location location) { + BlockCache cache = new BlockCache(location); + if (location.getBlock().isLiquid() + || location.clone().add(0.0, 1.0, 0.0).getBlock().isLiquid() + || location.clone().add(0.0, 1.7, 0.0).getBlock().isLiquid() + || location.clone().add(0.0, 2.5, 0.0).getBlock().isLiquid()) { + return true; + } + + if (location.clone().getBlock().getType() == Material.WEB && location.getY() % 1.0 != 0.0) { + return false; + } + + if (isSupportOrLiquid(cache.getNegativeOffsetBlock(0.0, 0.1, 0.3)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.3, 0.1, 0.0)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.0, 0.1, -0.3)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.0)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.3, 0.1, -0.3)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.3, 0.1, 0.3)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.3, 0.1, -0.3)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.3, 0.1, 0.3))) { + return true; + } + + if (!isSolidSupportBlock(location.clone().subtract(0.0, 0.2, 0.0).getBlock()) && !isSolidSupportBlock(location.getBlock())) { + boolean hasSupportBelow = isSupportOrLiquid(location.clone().subtract(0.0, 0.6, 0.0).getBlock()); + if ((!isFenceOrWall(cache.getNegativeOffsetMaterial(0.0, 0.6, 0.3)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(0.0, 0.3, 0.3)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.6, 0.0)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.3, 0.0)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(0.0, 0.6, -0.3)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(0.0, 0.3, -0.3)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.6, 0.0)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.3, 0.0)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.6, -0.3)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.3, -0.3)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.6, 0.3)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(-0.3, 0.3, 0.3)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.6, -0.3)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.3, -0.3)) && !hasSupportBelow) + && (!isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.6, 0.0)) + || isFenceOrWall(cache.getNegativeOffsetMaterial(0.3, 0.3, 0.3)) && !hasSupportBelow)) { + Block lowBlock = findHighestSnowOrRedstoneBlock(cache); + double fractionalY = location.getY(); + int blockY = (int) fractionalY; + fractionalY -= blockY; + if (lowBlock != null) { + if (lowBlock.getType() == Material.SNOW) { + byte snowLayers = lowBlock.getData(); + if (snowLayers > 0 && fractionalY - 0.1 < snowLayers * 0.125) { + return true; + } + } else if (isRedstoneComponent(lowBlock.getType()) && fractionalY - 0.1 < 0.125) { + return true; + } + } + + return location.clone().subtract(0.0, 0.6, 0.0).getBlock().getType() == Material.COBBLE_WALL + && isFenceOrWall(location.getBlock().getType()) + && location.getBlock().getType() != Material.COBBLE_WALL; + } else { + return true; + } + } else { + return true; + } + } + + public static boolean isNearGroundWide(Location location) { + BlockCache cache = new BlockCache(location); + return isSupportOrLiquid(cache.getNegativeOffsetBlock(0.0, 0.1, 0.5)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.5, 0.1, 0.0)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.0, 0.1, -0.5)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.5, 0.1, 0.0)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.5, 0.1, -0.5)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(-0.5, 0.1, 0.5)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.5, 0.1, -0.5)) + || isSupportOrLiquid(cache.getNegativeOffsetBlock(0.5, 0.1, 0.5)); + } + + @SuppressWarnings("deprecation") + private static Block findHighestSnowOrRedstoneBlock(BlockCache cache) { + Set blocks = new HashSet<>(); + blocks.add(cache.getOffsetBlock(0.0, -0.1, 0.3)); + blocks.add(cache.getOffsetBlock(0.3, -0.1, 0.0)); + blocks.add(cache.getOffsetBlock(0.0, -0.1, -0.3)); + blocks.add(cache.getOffsetBlock(-0.3, -0.1, 0.0)); + blocks.add(cache.getOffsetBlock(-0.3, -0.1, -0.3)); + blocks.add(cache.getOffsetBlock(-0.3, -0.1, 0.3)); + blocks.add(cache.getOffsetBlock(0.3, -0.1, -0.3)); + blocks.add(cache.getOffsetBlock(0.3, -0.1, 0.3)); + blocks.add(cache.getOffsetBlock(0.0, -0.1, 0.0)); + Block highest = null; + byte highestLevel = -1; + + for (Block block : blocks) { + if (block.getType() == Material.SNOW) { + byte data = block.getData(); + if (data > highestLevel) { + highestLevel = data; + highest = block; + } + } + } + + for (Block block : blocks) { + if (isRedstoneComponent(block.getType()) && 1 > highestLevel) { + highestLevel = 1; + highest = block; + } + } + + return highest; + } + + public static boolean isClimbable(Player player) { + return player.getLocation().getBlock().getType().equals(Material.LADDER) + || player.getLocation().getBlock().getType().equals(Material.VINE); + } + + public static boolean isInLiquid(Player player) { + return player.getLocation().getBlock().isLiquid() + || player.getLocation().getBlock().getRelative(BlockFace.UP).isLiquid(); + } + + public static boolean isRedstoneComponent(Material material) { + switch (material) { + case DIODE_BLOCK_OFF: + case DIODE_BLOCK_ON: + case REDSTONE_COMPARATOR_OFF: + case REDSTONE_COMPARATOR_ON: + return true; + default: + return false; + } + } + + public static boolean isNearBounceBlock(Player player) { + BlockCache cache = new BlockCache(player.getLocation()); + return isBounceBlock(cache.getNegativeOffsetBlock(0.0, -1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, -1.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, -1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, -1.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, -1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, -1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, -1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, -1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 0.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 0.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 0.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 0.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 0.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 0.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 0.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 0.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 1.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 1.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 1.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 1.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 2.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 2.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 2.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 2.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 2.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 2.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 2.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 2.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 3.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 3.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 3.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 3.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 3.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 3.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 3.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 3.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 4.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 4.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.0, 4.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 4.0, 0.0)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 4.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(-0.4, 4.0, 0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 4.0, -0.4)) + || isBounceBlock(cache.getNegativeOffsetBlock(0.4, 4.0, 0.4)) + || cache.getNegativeOffsetBlock(0.0, -1.0, 0.0).getType().equals(Material.SLIME_BLOCK) + || cache.getOriginBlock().getType().equals(Material.SLIME_BLOCK) + || cache.getNegativeOffsetBlock(0.0, 1.0, 0.0).getType().equals(Material.SLIME_BLOCK) + || cache.getNegativeOffsetBlock(0.0, 2.0, 0.0).getType().equals(Material.SLIME_BLOCK); + } + + public static boolean isBounceBlock(Block block) { + return block.getType() == Material.SLIME_BLOCK || block.getType() == Material.PISTON_MOVING_PIECE; + } +} diff --git a/src/main/java/me/konsolas/aac/util/movement/VerticalMotionModel.java b/src/main/java/me/konsolas/aac/util/movement/VerticalMotionModel.java new file mode 100644 index 0000000..3e2f18f --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/movement/VerticalMotionModel.java @@ -0,0 +1,77 @@ +package me.konsolas.aac.util.movement; + +import me.konsolas.aac.util.general.NumberUtil; + +public class VerticalMotionModel { + public static boolean isValidVerticalMotion( + double deltaY, + boolean fromOnGround, + boolean toOnGround, + boolean hasActiveVelocity, + double velocityY, + long velocityAgeTicks, + double previousDeltaY, + double tolerance, + int jumpBoostLevel, + int levitationLevel + ) { + double predictedDeltaY = predictNextDeltaY(previousDeltaY); + double jumpDeltaY = jumpBoostLevel > 0 ? jumpBoostLevel / 10.0 + 0.42 : 0.42; + if (levitationLevel > 0) { + return fromOnGround && deltaY > 0.0 + ? true + : isWithinTolerance(deltaY, predictLevitationDeltaY(previousDeltaY, levitationLevel), tolerance); + } + + if (!hasActiveVelocity) { + if (fromOnGround) { + return isWithinUpperBound(deltaY, jumpDeltaY, tolerance); + } else { + return toOnGround + ? isWithinLowerBound(deltaY, predictedDeltaY, tolerance) + : isWithinTolerance(deltaY, predictedDeltaY, tolerance); + } + } else if (velocityAgeTicks < 5L) { + return isWithinUpperBound(velocityY < 0.05 ? 0.05 : velocityY, predictedDeltaY, tolerance); + } else { + return velocityAgeTicks < 100L + ? isWithinUpperBound(deltaY, predictedDeltaY, tolerance) + : isWithinTolerance(deltaY, predictedDeltaY, tolerance); + } + } + + public static boolean isWithinUpperBound(double actual, double expected, double tolerance) { + return actual < expected + tolerance / 2.0; + } + + public static boolean isWithinLowerBound(double actual, double expected, double tolerance) { + return actual > expected - tolerance / 2.0; + } + + public static boolean isWithinTolerance(double actual, double expected, double tolerance) { + return NumberUtil.approximatelyEqual(actual, expected, tolerance); + } + + public static double predictNextDeltaY(double previousDeltaY) { + previousDeltaY -= 0.08; + return previousDeltaY * 0.98; + } + + public static double predictLevitationDeltaY(double previousDeltaY, int levitationLevel) { + if (levitationLevel > 127) { + previousDeltaY -= (255 - levitationLevel) * 0.005; + previousDeltaY = previousDeltaY < -((255 - levitationLevel) * 0.05) ? -((255 - levitationLevel) * 0.05) : previousDeltaY; + previousDeltaY *= 0.98; + } else { + previousDeltaY += levitationLevel * 0.005; + previousDeltaY = previousDeltaY > levitationLevel * 0.05 ? levitationLevel * 0.05 : previousDeltaY; + previousDeltaY *= 0.98; + } + + return previousDeltaY; + } + + public static double predictSlimeBounceDeltaY(double impactVelocity) { + return Math.abs(impactVelocity * 1.5); + } +} diff --git a/src/main/resources/banned.yml b/src/main/resources/banned.yml new file mode 100644 index 0000000..70796a1 --- /dev/null +++ b/src/main/resources/banned.yml @@ -0,0 +1,4 @@ +# AAC: Banned players list +# Use /aacunban [player] +# in-game to unban players. +banned: diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml new file mode 100644 index 0000000..3889d7a --- /dev/null +++ b/src/main/resources/config.yml @@ -0,0 +1,728 @@ +#### AAC Config +# +# NOTE: Most of the values here have been tried and tested to work. +# It is not recommended that you change them unless you are +# getting false positives. +# +# It would be a good idea to make sure the false positives you're getting aren't actually hackers.... +# +# +# The configurable commands will replace "{player}" with the name of the player. +# You can run multiple commands on a single threshold by creating 2 entries with the same key: +# thresholds: +# 10: +# - "broadcast {player} was kicked for hacking" +# - "kick {player} hacking" +# +# Be sure to check language.yml for configuration regarding staff chat, etc. +# +## If you need any help configuring AAC, or you're getting false positives and you don't know why, feel free to PM me on Spigot. + +# Angle forces players to look at entities they want to attack +angle: + # Do you want to enable the angle check + enabled: true + + # How far off the entity should the player be able to look + max_diff: 0.30 + + # How far off a player should the attacker be able to look? + max_player_diff: 0.15 + + # How close must the players be to bypass the angle check? + min_dist: 2.0 + + # Should AAC cancel false hits + cancel_false_hits: true + + # Map of violation levels to commands + thresholds: + 10: "aacstaffnotify {player} is suspected for Killaura (Angle) (ping = {ping}, tps = {tps})" + 16: "aackick {player} Impossible angles in attacks" + +# BadPackets prevents players from using packets to exploit the server +badpackets: + # Do you want to enable the badpackets check + enabled: true + + # After how many moves should packets be cancelled? + # A lower value reduces the possibility of blinking and exploits and improves performance. + # A higher value will reduce the number of false positives. This should always be above 3. + cancel_threshold: 14 + + # How many moves should a player be able to send in 3 ticks + # An unmodified client should send 3 moves in 3 ticks. Be sure to think about lag + # The violation value will be increased by (how many packets the player sends - max_moves) / 10 + max_moves: 50 + + # Map of violation levels to commands + thresholds: + 30: "aacstaffnotify {player} is suspected for Regen/NoPotion (ping = {ping}, tps = {tps})" + 70: "aackick {player} Suspicious activity" + +# Criticals prevents players from getting critical hits when it's not possible +criticals: + # Do you want to enable the criticals check? + enabled: true + + # Should a hit be cancelled if it is a critical and the player is on the ground? + cancel_false_hit: true + + # Map of violation levels to commands + thresholds: + 1: "aacstaffnotify {player} is suspected for Criticals (ping = {ping}, tps = {tps})" + 3: "aackick {player} Criticals hacking is not allowed" + +# Fastbow prevents players from shooting their bow too quickly +fastbow: + # Do you want to enable the fastbow check + enabled: true + + # What is the minimum force of a shot for it to be registered + # This goes from 0 to 1, 1 being a fully charged bow + min_force: 0.15 + + # How many of these shots should a player be able to fire in 1 second + # it takes 1.2 seconds to fully draw a bow + shots_fired_threshold: 3 + + # Map of violation levels to commands + thresholds: + 3: "aacstaffnotify {player} is suspected for FastBow (ping = {ping}, tps = {tps})" + 12: "aackick {player} Shooting arrows too quickly" + +# FightSpeed prevents players from attacking too quickly +fightspeed: + # Do you want to enable the fightspeed check + enabled: true + + # How many times should a player be able to attack in 1 second + # NoCheatPlus's fightspeed check allows 15 hits per second + max_hits_per_second: 16 + + # How many times should a player be allowed to interact in 1 second + max_interact_per_second: 25 + + # Should fightspeed check for consistent click speed + consistent_check: true + + # Map of violation levels to commands + thresholds: + 11: "aacstaffnotify {player} is suspected for AutoClicker (FightSpeed) (ping = {ping}, tps = {tps})" + 17: "aackick {player} Strange click speed. (AutoClicker? Macros?)" + +# NormalMovements stops players from moving unexpectedly +normalmovements: + # Do you want to enable the normalmovements check + enabled: true + + # f:step:x - Should NormalMovements handle stepping? + f_step: true + + # f:float:x - Should NormalMovements handle floating? + f_float: true + + # f:dy:x - Should NormalMovements attempt to detect client patterns? + f_dy: true + + # Should NormalMovements teleport players to corrected locations? + teleport: true + + # Map of violation levels to commands + thresholds: + 20: "aacstaffnotify {player} may be movement hacking (ping = {ping}, tps = {tps})" + +# Fly kicks players who move too high +fly: + # Do you want to enable the fly check + enabled: true + + # Base max jump height. Expected max is 1.3 + max_jump: 1.42 + + # If a player's violation level is below 2, he will not be rubberbanded if the violation amount is not more than allow. + allow: 0.07 + + # How high a player will be allowed to jump after bouncing off a slime block + slime_allow: 60.0 + + # Increasing velocity_multiplier will improve compatiblility with jump pads. + velocity_multiplier: 4.0 + + # How high should a player be allowed to jump after taking damage + knockback_allow: 5.0 + + # How high should a player be allowed to move from natural causes (fire, poison, etc) + natural_allow: 2.1 + + # Should players be teleported back down if detected? + teleport: true + + # Map of violation levels to commands + thresholds: + 15: "aacstaffnotify {player} is suspected for Fly (ping = {ping}, tps = {tps})" + 30: "aackick {player} Moved unexpectedly" + +# Speed kicks players who move too quickly +speed: + # Do you want to enable the speed check + enabled: true + + # Speed limits per tick + sprinting_speed: 0.415 + sneaking_speed: 0.215 + + # On and under water + surface_speed: 0.12 + underwater_speed: 0.05 + dive_speed: 0.69 + + # Other + cobweb_speed: 0.10 + item_speed: 0.21 + soul_sand_speed: 0.39 + ice_speed: 0.71 + + # Multiplier of the maximum distance if the player is jumping + jump_multiplier: 1.8 + + # Multiplier of distance on velocity + vel_multiplier: 2.0 + + # Ticks a player should not be checked after entering the water + dive_period: 20 + + # Should AAC use movement counting to prevent clients from bypassing by sending too many moves? + use_move_counting: true + + # How many moves per second should be assumed as legitimate? (NCP = 22) + max_moves: 22 + + # Custom modifiers for anti-timer, averaging over a longer period of time + custom: + # Second line of defense over timer. Slow, but practically unbypassable. + enabled: true + # Max moves per second + max_moves: 21.0 + # Ticks to take an average over + time: 150 + # Whether this rubberbanding should ignore the vls_to_band anti false positive limitations + bypass_band: true + + # How many times should a player be allowed to toggle sneak in a second + max_sneak_toggles: 15 + + # How many times should a player be allowed to toggle use in a second + max_use_toggles: 22 + + # Multiplier for speed. Increase if you have false positives. + speed_multiplier: 0.32 + + # Multiplier for slowness. Decrease if you have false positives. + slow_multiplier: 0.03 + + # Every time a player fails the speed check, the band vl will go up by (actualDistance - expectedDistance) * band_multiplier + # This can be set to 0 to turn off rubberbanding completely. + band_multiplier: 5.0 + + # How many violations before a player will start being rubber-banded + vls_to_band: 16 + + # How long must a player remain clean for band violations to be cleared? (seconds) + clear_vl_delay: 8 + + # Map of violation levels to commands + thresholds: + 10: "aacmessage {player} It looks like you might be glitching, please tap sneak and block with your sword" + 20: "aacstaffnotify {player} is suspected for Speed hacking (ping = {ping}, tps = {tps})" + 30: "aackick {player} Moved too quickly" + +# HeadRoll stops players being derps :/ +headroll: + # Do you want to enable the headroll check + enabled: true + + # Map of violation levels to commands + thresholds: + 1: "aacstaffnotify {player} is suspected for Derp hacks (ping = {ping}, tps = {tps})" + 2: "aackick {player} Illegal position" + +# Forcefield detects combat hacks which hit entities around the player +forcefield: + # Do you want to enable the forcefield check + enabled: true + + # Do you want the player above you to be invisible + # *HIGHLY* recommended to be kept at false. + # The majority of hacked clients do not target invisible entities. + # If you change this to true, killaura detection will be severely slowed down. Best idea would be to ask your players to ignore it. + head_player_invisible: false + + # You can make the head player invisible when the player isn't fighting + # With this true, the head player will be invisible when the player isn't fighting + # If the player isn't fighting or this option is false, AAC will default to head_player_invisible + # This takes PVP from combat_time, so make sure that's a sensible value + invisible_outside_pvp: true + + # How high above the player should the headplayer be spawned? + # Anything under 2.7 could affect hit detection + # Anything above 4.5 could be out of range of the player + head_player_height: 3.4 + + # Should the head player be moved away if the player looks up? + # This is to prevent players from creating false positives by hitting the head player (if it is visible) + no_head_player_looking_up: true + + # Do you want to spawn the side players + # This spawns players within the users' FOV to confuse click aimbot + # Side players are invisible, as they are within the user's FOV. + use_side_players: false + + # Use player names and gameprofiles from past players instead of random profiles + # This can be extremely useful in preventing bypasses, as the player's details are completely legitimate + # This setting has no effect if online_player_names is true. + past_player_names: false + + # Should the head player use profiles of players online right now? + # If you have nametag plugins that use the scoreboard, turn this off + # Otherwise, keep this on as it patches a massive number of possible bypasses + online_player_names: true + + # Do you want to keep the head player in the tab list? + # This can prevent bypasses where the the client checks that the name is in the tablist, before hitting it. + head_tablist: false + + # Packet level configuration options + magic: + random_sprint: true + + # Map of violation levels to commands + thresholds: + 8: "aacstaffnotify {player} is suspected for Killaura (NPC check) (ping = {ping}, tps = {tps})" + 14: "aackick {player} Forcefield is not allowed" + +# Knockback checks if the player moves after he is hit +knockback: + # Do you want to enable the knockback check + enabled: true + + # How long should AAC wait before checking a player + tick_delay: 9 + + # Should AAC compensate for ping? + add_ping: true + + # What's the maximum ping value AAC should compensate to (pingspoof?) + max_ping: 500 + + # What's the minimum distance a player should be knocked back + min_knockback_dist: 0.01 + + # Minimum time a player should be knocked back for + min_knockback_time: 2 + + # Map of violation levels to commands + thresholds: + 9: "aacstaffnotify {player} is suspected for Anti-Knockback (ping = {ping}, tps = {tps})" + 16: "aackick {player} Not taking knockback" + +# Reach checks if entites the player hits are close enough to the player +reach: + # Do you want to enable the reach check + enabled: true + + # How far should AAC allow the player to reach (vanilla = 3.8) + max_reach: 4.1 + + # How far does bukkit allow players to reach (Don't change this) + max_bukkit_reach: 9.0 + + # How much should AAC compensate for hitbox stretching? Increase this first with false positives. + move_multiplier: 3.0 + + # Map of violation levels to commands + thresholds: + 15: "aacstaffnotify {player} is suspected for Reach (ping = {ping}, tps = {tps})" + 28: "aackick {player} Hitting too far away" + +# NoSwing makes sure players swing their arm when attacking +noswing: + # Do you want to enable the noswing check + enabled: true + + # Map of violation levels to commands + thresholds: + 8: "aacstaffnotify {player} is suspected for NoSwing (ping = {ping}, tps = {tps})" + 22: "aackick {player} Not swinging arm" + +# Regen directly stops players from healing too quickly +regen: + # Do you want to enable the regen check + enabled: true + + # Should AAC cancel regeneration if it happens too quickly? + cancel_regen: true + + # What delay should AAC force between regeneration? + min_regen_delay: 3600 + + # What delay should AAC force between regeneration at full hunger? + min_satiated_delay: 450 + + # Map of violation levels to commands + thresholds: + 8: "aacstaffnotify {player} is suspected for Regen (ping = {ping}, tps = {tps})" + 15: "aackick {player} Regenerating health too quickly" + +# Killaura detects combat hacks which give an unfair advantage +killaura: + # Do you want to enable the killaura check + enabled: true + + # Killaura also has a different method of using NPCs. Check_chance to 0 to disable. + npc: + # What % of the time should AAC do an NPC check? + check_chance: 100 + + # How long should AAC wait to spawn the NPC + check_delay: 3 + + # Should AAC use a random entity type for the NPC? false = NPC will be the type of entity the player is fighting with. + random_type: true + + # After spawning the NPC, how long should AAC wait before starting to count hits? + # check_delay + listen_delay must be less than 9, or hits will be lost. + listen_delay: 6 + + # How far away must 2 players be to be checked? + min_dist: 2.0 + + # How long should the NPC be spawned for? + ticks_spawned: 9 + + # How far along the distance should the NPC be spawned + percent_distance: 80 + + # How much should the NPC check be weighted per hit? + npc_multiplier: 3 + + # How far off should a player be able to look to allow the hit + max_diff: 0.11 + + # How far should the player be allowed to reach through the NPC + max_reach: 4.5 + + # How long should a player be prevented from hitting someone when he fails this check? (ticks) + suspended_combat_time: 6 + + # Heuristic components: These will contribute to the kick threshold when a player has a high likelihood of hacking + + # Requried chance for an Aimbot kick (%). Set to something >= 100 to disable + aimbot: 80 + + # Required chance for a Reach kick (%). Set to something >= 100 to disable + reach: 84 + + # Required chance for an Accuracy kick (%). Set to something >= 100 to disable + # EXPERIMENTAL + accuracy: 95 + + # Map of violation levels to commands + thresholds: + 9: "aacstaffnotify {player} is suspected for Killaura (Heuristics) (ping = {ping}, tps = {tps})" + 16: "aackick {player} Suspicious (killaura-like) combat" + +# CombatImpossible cancels hits which cannot happen normally +combatimpossible: + # Do you want to enable the CombatImpossible check + enabled: true + + # Should hits be cancelled if the attacker is dead? + cancel_dead: true + + # Should hits be cancelled if the attacker is using an item? + cancel_using_item: true + + # Map of violation levels to commands + thresholds: + 12: "aacstaffnotify {player} may be hitting illegitimately (or could be glitched) (ping = {ping}, tps = {tps})" + +# NoFall ensures players take fall damage +nofall: + # Do you want to enable the NoFall check + enabled: true + + # Minimum downwards velocity for NoFall to apply + required_velocity: -0.2 + + # Should AAC deal fall damage to players? + deal_damage: true + + # Map of violation levels to commands + thresholds: + 10: "aacstaffnotify {player} is suspected for NoFall hacks (ping = {ping}, tps = {tps})" + 30: "aackick {player} Suspicious activity midair" + +# Glide ensures players fall at the right speed +glide: + # Do you want to enable the Glide check + enabled: true + + # How strongly should AAC enforce fall speeds (smaller values are more accurate) + tolerance: 0.03 + + # Minimum violation level for a player to be teleported down. Only if teleport is true + min_vl: 10 + + # Teleport the player down if detected? + teleport: true + + # Map of violation levels to commands + thresholds: + 25: "aacstaffnotify {player} is suspected for Glide hacks (ping = {ping}, tps = {tps})" + 45: "aacstaffnotify {player} is suspected for Glide hacks #2 (ping = {ping}, tps = {tps})" + +# Climb stops people climbing ladders too quickly +climb: + # Do you want to enable the Climb check + enabled: true + + # How fast should a player be allowed to start a ladder climb + max_start_speed: 1.5 + + # How fast should a player be allowed to climb a ladder + max_ascent_speed: 0.14 + + # Should climb teleport players? + teleport: true + + # Map of violation levels to commands + thresholds: + 15: "aacstaffnotify {player} is climbing ladders too quickly (ping = {ping}, tps = {tps})" + 30: "aackick {player} Climbing ladders too quickly?" + +# Jesus stops people from walking on water +jesus: + # Do you want to enable the Jesus check + enabled: true + + # Should Jesus teleport players? + teleport: true + + # Map of violation levels to commands + thresholds: + 15: "aacstaffnotify {player} is suspected for Jesus hacks (ping = {ping}, tps = {tps})" + 20: "aacstaffnotify {player} is very likely to be using Jesus hacks" + 30: "aackick {player} Walking on water?" + +# ElytraMove controls elytra flight +elytramove: + # Do you want to enable the ElytraMove check + enabled: true + + # How strongly should AAC enforce elytra movement (smaller = more accurate) + tolerance: 0.06 + + # Should ElytraMove teleport players? + teleport: true + + # Map of violation levels to commands + thresholds: + 20: "aacstaffnotify {player} is suspected for Elytra hacking (ping = {ping}, tps = {tps})" + 40: "aacstaffnotify {player} is suspected for Elytra hacking #2 (ping = {ping}, tps = {tps})" + +# BoatFly controls boat movement +boatfly: + # Do you want to enable the BoatFly check + enabled: true + + # What minimum downward velocity should AAC enforce? + min_downward_delta: 0.12 + + # How many ticks should AAC allow for air resistance? + friction_ticks: 7 + + # Should BoatFly teleport players? + teleport: true + + # Map of violation levels to commands + thresholds: + 8: "aacstaffnotify {player} is suspected for Boat hacking (ping = {ping}, tps = {tps})" + 15: "aackick {player} Unexpected vehicle movement packets" + +# Phase stops people glitching through blocks +phase: + # Do you want to enable the Phase check + enabled: true + + # How long should a player be frozen in place after being detected for phase? (ms) + freeze_time: 200 + + # What's the maximum distance AAC should teleport players to ideal locations. + max_dist: 3.0 + + # Should AAC check for vclip + check_vclip: true + + # Map of violation levels to commands + thresholds: + 10: "aacstaffnotify {player} is suspected for Phase (ping = {ping}, tps = {tps})" + 30: "aacstaffnotify {player} is suspected for Phase #2 (ping = {ping}, tps = {tps})" + 50: "kick {player} For your benefit, since you might havve been stuck in a block" + +# FastUse stops players consuming items too quickly +fastuse: + # Do you want to enable the FastUse check + enabled: true + + # What delay should AAC enforce for eating an item (ms) + ms_to_use: 1200 + + # Map of violation levels to commands + thresholds: + 5: "aacstaffnotify {player} is suspected for FastEat hacks (ping = {ping}, tps = {tps})" + 9: "aackick {player} Using items too quickly" + +# FastBreak stops players from breaking blocks too quickly +fastbreak: + # Do you want to enable the fastbreak check? + enabled: true + + # How many ticks should fastbreak count as lag, and ignore + let_ticks: 3 + + # Should AAC cancel an illegal block break? + cancel_break: true + + # Should AAC check for a break delay (i.e. between block breaks) + check_delay: true + + # Map of violation levels to commands + thresholds: + 20: "aacstaffnotify {player} is suspected for FastBreak hacks (ping = {ping}, tps = {tps})" + 45: "aackick {player} Breaking blocks too fast" + +# FastPlace stops players from placing blocks too quickly +fastplace: + # Do you want to enable the fastplace check? + enabled: true + + # How many ms should fastplace force between block placements? + min_delay: 100 + + # Should AAC cancel an illegal block place? + cancel_place: true + + # Map of violation levels to commands + thresholds: + 20: "aacstaffnotify {player} is suspected for FastPlace hacks (ping = {ping}, tps = {tps})" + 45: "aackick {player} Placing blocks too fast" + +# Nuker stops players from breaking too many blocks at once +nuker: + # Do you want to enable the nuker check? + enabled: true + + # How many blocks should a player be able to break in 1 second: vl if greater than this value + max_breaks_per_second: 40 + + # The violation will only be recorded if it divides by this number (reduces spam) + vl_divisor: 30 + + # Map of violation levels to commands + thresholds: + 5: "aacstaffnotify {player} is suspected for Nuker (ping = {ping}, tps = {tps})" + 10: "aackick {player} Breaking too many blocks" + +# ImpossibleInteract stops players interacting with blocks they can't +impossibleinteract: + # Do you want to enable the impossibleinteract check + enabled: true + + # Detect interacting with liquids? + cancel_liquids: true + + # Detect ghosthands? + cancel_ghosthand: true + + # Map of violation levels to commands + thresholds: + 14: "aacstaffnotify {player} is interacting suspiciously (ping = {ping}, tps = {tps})" + 25: "aacstaffnotify {player} is interacting suspiciously #2 (ping = {ping}, tps = {tps})" + +# PlayerRadar hides players that cannot be seen +playerradar: + # Do you want to enable anti-radar? (Experimental) + enabled: false + + # How far must 2 players be apart to be hidden from each other? + # Players closer than this will always be able to see each other + # In games where nametags are not shown, this can be set to 0. + required_dist: 15 + + # This should be set to your entity render distance (Spigot default = 48) + max_dist: 48 + + # Map of violation levels to commands + thresholds: + 0: "Unused" + +# Spam prevents players from spamming the server chat +spam: + # Do you want to enable the spam check? + enabled: true + + # What words should not be covered by the anti-spam check? + # messages less than 3 letters are already ignored + whitelist: + - "lol" + - "hello" + - "okay" + + # How many messages should a player be able to send in 10 seconds + message_limit: 4 + + # How fast can a player send messages (ticks) + chat_speed: 10 + + # Map of violation levels to commands + thresholds: + 10: "aacstaffnotify {player} is probably spamming" + 15: "aackick {player} Stop spamming, you sad person" + +### General things + +# How many times must a player be kicked before he is banned (-1 for no autoban) +ban_threshold: 5 + +# What command should be executed when a player is banned (only applies for /aackick) +ban_command: "aacban {player}" + +# How long after a player is kicked should he be allowed to log in (ticks) +kick_ticks: 120 + +# How long before a player leaves combat after dealing/taking damage +# Don't set this to 0 or -1, it's crucial for the forcefield and killaura checks. Change kill_loggers only to disable combat logging. +combat_time: 50 + +# Should AAC kill combat loggers (combat_time) +kill_loggers: false + +# Should AAC log events to a file? +log_file: true + +# Should AAC log events to the console? +log_console: true + +# Should /aackick broadcast a message? +aackick_broadcast: true + +# Should AAC disable/enable checks dynamically? IF YOU HAVE PWP DISABLE +usetps: true + +# Disable the command /aac? If you really want to ;( +aac: false + +# Enable verbose logging? This will allow those with the AAC.verbose permission to get spammed. +# Not recommended. +verbose: false \ No newline at end of file diff --git a/src/main/resources/language.yml b/src/main/resources/language.yml new file mode 100644 index 0000000..d6ff839 --- /dev/null +++ b/src/main/resources/language.yml @@ -0,0 +1,29 @@ +# AAC messages configuration file + +# Prefix (wooooo yeah) +prefix: "&6[AAC] &r> &6" + +# Spam messages +spam_too_fast: "You can't chat that fast!" +spam_slow_chat: "Please slow down chat" +spam_repeat: "Please refrain from repeating yourself" +spam_repeat_other: "You can't repeat that" + +# Command messages +aac_kick_broadcast: " was kicked for hacking." +ban_message: "You have been banned for hacking on this server." + +relog_message: "Wait a few seconds before logging back in." + +# Fastbow +too_many_shots: "You're firing shots too quickly. Please wait 5 seconds before using your bow again." +allow_bow: "You may now use your bow again" + +# Staff chat +prefix_to_speak: "@" +# This will also be used for the notifications from aacstaffnotify in the config +format: "&7[&6AAC&7] &2[{sender}] &r" + +# Combat logging +killed_for_logging: "You were killed for combat logging. Don't do it." +logging_broadcast: "{player} was killed for combat logging. Don't do it." \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..81eb5b7 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,108 @@ +name: AAC +version: 2.1.1 +main: me.konsolas.aac.AAC +author: konsolas +description: AAC prevents and kicks suspected hackers from your server. +depend: [ProtocolLib] +commands: + aac: + description: Display version information + usage: / + permission: AAC.version + permission-message: You do not have permission to perform that command. + aacunban: + description: Unban a player + usage: / [player] + permission: AAC.unban + permission-message: You do not have permission to perform that command. + aacadmin: + description: Open a GUI with options to manage AAC + usage: / + permission: AAC.admin + permission-message: You do not have permission to perform that command. + aackick: + description: Kill and kick a player, broadcasting this. + usage: / [player] [reason] + permission: AAC.kick + permission-message: You do not have permission to perform that command. + aacban: + description: Ban a player with AAC's ban system. + usage: / [player] + permission: AAC.ban + permission-message: You do not have permission to perform that command. + aacreload: + description: Text based reload + usage: / + permission: AAC.admin + permission-message: You do not have permission to perform that command. + aacdebug: + description: Save a file with detailed information on a player + usage: / [player] + permission: AAC.debug + permission-message: You do not have permission to perform that command. + aacverbose: + description: Toggle verbose output + usage: / + permission: AAC.verbose + permission-message: You do not have permission to perform that command. + aacmessage: + description: Send a message to the player from AAC + usage: / [player] [message] + permission: AAC.message + permission-message: You do not have permission to perform that command. + aacstaffnotify: + description: Send a message to all members of staff + usage: / [message] + permission: AAC.notify + permission-message: You do not have permission to perform that command. + aaccrash: + description: Crash a player with lots of lag. This does not formally kick the player. + usage: / [player] + permission: AAC.crash + permission-message: You do not have permission to perform that command. +permissions: + AAC.*: + description: Gives access to all AAC permissions. + children: + AAC.version: true + AAC.admin: true + AAC.unban: true + AAC.kick: true + AAC.bypass: true + AAC.debug: true + AAC.crash: true + AAC.message: true + AAC.notify: true + AAC.version: + description: Display version information + default: true + AAC.unban: + description: Unban a player + default: op + AAC.kick: + description: Kill and kick a player + default: op + AAC.ban: + description: Ban a player + default: op + AAC.bypass: + description: Be exempt from AAC hacking checks + default: op + AAC.admin: + description: Open a GUI to manage AAC + default: op + AAC.debug: + description: Save a file with detailed information on a player + default: op + AAC.verbose: + description: View AAC's debug messages. + default: false + AAC.message: + description: Send a message to players from AAC + default: op + AAC.notify: + description: Send and recieve messages to all staff + default: op + AAC.crash: + description: Crash a player + default: op \ No newline at end of file