commit c518d9dba6a2a577836d9f60377edea2735b87d5 Author: nitrogenoliquido <203537016+nitrogenoliquido@users.noreply.github.com> Date: Sat Nov 21 21:15:20 2026 -0500 added files. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..709bfd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.gradle/ +build/ +out/ +.idea/ +*.iml +.classpath +.project +.settings/ +TEST*.jar diff --git a/README.md b/README.md new file mode 100644 index 0000000..4af272e --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +

+ Skid Solutions Banner +
+ OpenAAC1 +

+ + Discord + + Version 1.9.10 + Java 17 + Gradle 8.14.3 +

+ +

+ https://discord.gg/WYjATa6BrU +

+ +

+ +

+ +

+ jak + hack + deobf2 + deobf +

+ +

+ +

+ +## How to build + +### Prerequisites +- **Java Development Kit**: JDK 17 (the Gradle wrapper 8.14.3 does not run on newer JDKs) + +### Building OpenAAC1 + +Run from this folder: + +```powershell +$env:JAVA_HOME = "C:\Program Files\Java\jdk-17" + +.\gradlew.bat clean prepareIde build +``` + +Generated `build/libs/`: +- `AAC1-1.9.10-java17.jar` +- `AAC1-1.9.10-plain.jar` +- `AAC1-1.9.10-sources.jar` + +### Usage + +Place `build/libs/AAC1-1.9.10-java17.jar` alongside **ProtocolLib** in your Spigot `1.8.8` server's `plugins/` directory. + +## Credits + +- **konsolas** — Original author of AAC 1.9.10. 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..bc38be1 --- /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 = '1.9.10' + +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('aac1') + 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/aac1.json b/gradle/api-signatures/aac1.json new file mode 100644 index 0000000..245b1e9 --- /dev/null +++ b/gradle/api-signatures/aac1.json @@ -0,0 +1,39316 @@ +{ + "formatVersion": 1, + "purpose": "Compile-only API declarations; not runtime implementations", + "classes": [ + { + "name": "com/comphenix/protocol/AsynchronousManager", + "version": 51, + "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": 51, + "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": 51, + "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": 9, + "descriptor": "(I)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "findLegacy", + "access": 9, + "descriptor": "(ILcom/comphenix/protocol/PacketType$Sender;)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "hasLegacy", + "access": 9, + "descriptor": "(I)Z" + }, + { + "name": "findCurrent", + "access": 131081, + "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": "findCurrent", + "access": 9, + "descriptor": "(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;Ljava/lang/String;)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "hasCurrent", + "access": 131081, + "descriptor": "(Lcom/comphenix/protocol/PacketType$Protocol;Lcom/comphenix/protocol/PacketType$Sender;I)Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "fromLegacy", + "access": 9, + "descriptor": "(ILcom/comphenix/protocol/PacketType$Sender;)Lcom/comphenix/protocol/PacketType;" + }, + { + "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/reflect/ObjectEnum;", + "signature": "(Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/reflect/ObjectEnum;" + }, + { + "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": 131073, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getClassNames", + "access": 1, + "descriptor": "()[Ljava/lang/String;" + }, + { + "name": "getPacketClass", + "access": 1, + "descriptor": "()Ljava/lang/Class;", + "signature": "()Ljava/lang/Class<*>;" + }, + { + "name": "name", + "access": 1, + "descriptor": "()Ljava/lang/String;" + }, + { + "name": "getCurrentVersion", + "access": 1, + "descriptor": "()Lcom/comphenix/protocol/utility/MinecraftVersion;" + }, + { + "name": "getLegacyId", + "access": 1, + "descriptor": "()I" + }, + { + "name": "isDynamic", + "access": 1, + "descriptor": "()Z" + }, + { + "name": "forceAsync", + "access": 1, + "descriptor": "()Z" + }, + { + "name": "isDeprecated", + "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$200", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/PacketType;Lcom/comphenix/protocol/utility/MinecraftVersion;)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "access$300", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/PacketType;)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "access$500", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/PacketType;Z)Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "access$700", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/PacketTypeLookup;" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/PacketType$Handshake", + "version": 51, + "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": 51, + "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": 51, + "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$600", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/PacketType$Protocol;" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/PacketType$Play", + "version": 51, + "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": 51, + "access": 33, + "signature": "Lcom/comphenix/protocol/reflect/ObjectEnum;", + "superName": "com/comphenix/protocol/reflect/ObjectEnum", + "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": "TAB_COMPLETE", + "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": "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": "USE_ENTITY", + "access": 25, + "descriptor": "Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "KEEP_ALIVE", + "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": "FLYING", + "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": "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": "RESOURCE_PACK_STATUS", + "access": 25, + "descriptor": "Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "HELD_ITEM_SLOT", + "access": 25, + "descriptor": "Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "SET_CREATIVE_SLOT", + "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": 51, + "access": 33, + "signature": "Lcom/comphenix/protocol/reflect/ObjectEnum;", + "superName": "com/comphenix/protocol/reflect/ObjectEnum", + "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": "TAB_COMPLETE", + "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": "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": "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": "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": "ENTITY", + "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": "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": "POSITION", + "access": 25, + "descriptor": "Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "BED", + "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": "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": "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": "UPDATE_ATTRIBUTES", + "access": 25, + "descriptor": "Lcom/comphenix/protocol/PacketType;" + }, + { + "name": "ENTITY_EFFECT", + "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": 51, + "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": 51, + "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": 51, + "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$400", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/PacketType$Protocol;" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/PacketTypeLookup", + "version": 51, + "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": 51, + "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": 51, + "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": 51, + "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.11.1" + }, + { + "name": "MINECRAFT_LAST_RELEASE_DATE", + "access": 25, + "descriptor": "Ljava/lang/String;", + "constant": "2016-12-20" + }, + { + "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": 51, + "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": 51, + "access": 33, + "superName": "java/lang/Object", + "innerClasses": [ + { + "name": "com/comphenix/protocol/timing/TimedListenerManager$ListenerType", + "outerName": "com/comphenix/protocol/timing/TimedListenerManager", + "innerName": "ListenerType", + "access": 16409 + }, + { + "name": "com/comphenix/protocol/utility/WrappedScheduler$TaskWrapper", + "outerName": "com/comphenix/protocol/utility/WrappedScheduler", + "innerName": "TaskWrapper", + "access": 1545 + } + ], + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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/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": "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": "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": "getMetadata", + "access": 1, + "descriptor": "(Ljava/lang/String;)Ljava/lang/Object;" + }, + { + "name": "addMetadata", + "access": 1, + "descriptor": "(Ljava/lang/String;Ljava/lang/Object;)V" + }, + { + "name": "removeMetadata", + "access": 1, + "descriptor": "(Ljava/lang/String;)Ljava/lang/Object;" + }, + { + "name": "hasMetadata", + "access": 1, + "descriptor": "(Ljava/lang/String;)Z" + }, + { + "name": "toString", + "access": 1, + "descriptor": "()Ljava/lang/String;" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/events/PacketEvent", + "version": 51, + "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": "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "access": 33, + "superName": "java/lang/Object", + "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": "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": 51, + "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": "getMethodCalls", + "access": 1, + "descriptor": "(Ljava/lang/Class;Ljava/lang/reflect/Method;)Ljava/util/List;", + "signature": "(Ljava/lang/Class<*>;Ljava/lang/reflect/Method;)Ljava/util/List;", + "exceptions": [ + "java/io/IOException" + ] + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/reflect/ClassAnalyser$AsmMethod", + "version": 51, + "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": 51, + "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": 51, + "access": 1537, + "signature": "Ljava/lang/Object;", + "superName": "java/lang/Object", + "methods": [ + { + "name": "getSpecific", + "access": 1025, + "descriptor": "(Ljava/lang/Object;)Ljava/lang/Object;", + "signature": "(Ljava/lang/Object;)TTType;" + }, + { + "name": "getGeneric", + "access": 1025, + "descriptor": "(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;", + "signature": "(Ljava/lang/Class<*>;TTType;)Ljava/lang/Object;" + }, + { + "name": "getSpecificType", + "access": 1025, + "descriptor": "()Ljava/lang/Class;", + "signature": "()Ljava/lang/Class;" + } + ] + }, + { + "name": "com/comphenix/protocol/reflect/FieldAccessException", + "version": 51, + "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": 51, + "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": 51, + "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": "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": "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": "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": "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": "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": 51, + "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": "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": "compareTo", + "access": 4161, + "descriptor": "(Ljava/lang/Object;)I" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/utility/RemappedClassSource", + "version": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": "(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": "getListConverter", + "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": "getSetConverter", + "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": "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": "getBlockIDConverter", + "access": 131081, + "descriptor": "()Lcom/comphenix/protocol/reflect/EquivalentConverter;", + "signature": "()Lcom/comphenix/protocol/reflect/EquivalentConverter;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "getIgnoreNull", + "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": "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": "getConvertersForSpecific", + "access": 9, + "descriptor": "()Ljava/util/Map;", + "signature": "()Ljava/util/Map;Lcom/comphenix/protocol/reflect/EquivalentConverter;>;" + }, + { + "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": "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$902", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;" + }, + { + "name": "access$1000", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;" + }, + { + "name": "access$1002", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;)Lcom/comphenix/protocol/reflect/accessors/FieldAccessor;" + }, + { + "name": "access$1100", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;" + }, + { + "name": "access$1102", + "access": 4104, + "descriptor": "(Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;)Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;" + }, + { + "name": "access$1200", + "access": 4104, + "descriptor": "()Lcom/comphenix/protocol/reflect/accessors/MethodAccessor;" + }, + { + "name": "access$1202", + "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": 51, + "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": 51, + "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/EnumWrappers", + "version": 51, + "access": 1057, + "superName": "java/lang/Object", + "innerClasses": [ + { + "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": "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": "getGenericConverter", + "access": 9, + "descriptor": "(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;", + "signature": ";>(Ljava/lang/Class;)Lcom/comphenix/protocol/reflect/EquivalentConverter;" + }, + { + "name": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/wrappers/EnumWrappers$ChatVisibility", + "version": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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;" + } + ], + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": "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": 51, + "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/MultiBlockChangeInfo", + "version": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "access": 33, + "superName": "com/comphenix/protocol/wrappers/AbstractWrapper", + "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": "(Ljava/lang/Object;)V" + }, + { + "name": "getType", + "access": 1, + "descriptor": "()Lorg/bukkit/Material;" + }, + { + "name": "getTypeId", + "access": 131073, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getData", + "access": 1, + "descriptor": "()I" + }, + { + "name": "setType", + "access": 1, + "descriptor": "(Lorg/bukkit/Material;)V" + }, + { + "name": "setData", + "access": 1, + "descriptor": "(I)V" + }, + { + "name": "setTypeAndData", + "access": 1, + "descriptor": "(Lorg/bukkit/Material;I)V" + }, + { + "name": "createData", + "access": 9, + "descriptor": "(Lorg/bukkit/Material;)Lcom/comphenix/protocol/wrappers/WrappedBlockData;" + }, + { + "name": "createData", + "access": 9, + "descriptor": "(Lorg/bukkit/Material;I)Lcom/comphenix/protocol/wrappers/WrappedBlockData;" + }, + { + "name": "deepClone", + "access": 1, + "descriptor": "()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": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/wrappers/WrappedChatComponent", + "version": 51, + "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": 51, + "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": 51, + "access": 33, + "signature": "Lcom/comphenix/protocol/wrappers/AbstractWrapper;Ljava/lang/Iterable;", + "superName": "com/comphenix/protocol/wrappers/AbstractWrapper", + "interfaces": [ + "java/lang/Iterable" + ], + "innerClasses": [ + { + "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": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/wrappers/WrappedDataWatcher$Serializer", + "version": 51, + "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": 51, + "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 + } + ], + "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": 51, + "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/WrappedServerPing", + "version": 51, + "access": 33, + "superName": "com/comphenix/protocol/wrappers/AbstractWrapper", + "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": "", + "access": 8, + "descriptor": "()V" + } + ] + }, + { + "name": "com/comphenix/protocol/wrappers/WrappedServerPing$CompressedImage", + "version": 51, + "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": 51, + "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": 51, + "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": 51, + "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": 51, + "access": 1537, + "signature": "Ljava/lang/Object;", + "superName": "java/lang/Object", + "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": "com/comphenix/protocol/wrappers/nbt/NbtCompound", + "version": 51, + "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": "com/comphenix/protocol/wrappers/nbt/NbtList", + "version": 51, + "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": 51, + "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": 51, + "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": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "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": 50, + "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": "_INVALID_getOnlinePlayers", + "access": 131081, + "descriptor": "()[Lorg/bukkit/entity/Player;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "configureDbConfig", + "access": 9, + "descriptor": "(Lcom/avaje/ebean/config/ServerConfig;)V" + }, + { + "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": "useExactLoginLocation", + "access": 131081, + "descriptor": "()Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "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": 50, + "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": 50, + "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": 1025, + "descriptor": "(ZZ)Z" + }, + { + "name": "unload", + "access": 1025, + "descriptor": "(Z)Z" + }, + { + "name": "unload", + "access": 1025, + "descriptor": "()Z" + } + ] + }, + { + "name": "org/bukkit/ChunkSnapshot", + "version": 50, + "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": "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": 1025, + "descriptor": "(II)D" + }, + { + "name": "getCaptureFullTime", + "access": 1025, + "descriptor": "()J" + }, + { + "name": "isSectionEmpty", + "access": 1025, + "descriptor": "(I)Z" + } + ] + }, + { + "name": "org/bukkit/Color", + "version": 50, + "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": 50, + "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": 50, + "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": "getData", + "access": 131073, + "descriptor": "()B", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "getByData", + "access": 131081, + "descriptor": "(B)Lorg/bukkit/DyeColor;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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": "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": "FIREWORKS_SPARK", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "CRIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "MAGIC_CRIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "POTION_SWIRL", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "POTION_SWIRL_TRANSPARENT", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SPELL", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "INSTANT_SPELL", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "WITCH_MAGIC", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "NOTE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "PORTAL", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "FLYING_GLYPH", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "FLAME", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "LAVA_POP", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "FOOTSTEP", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SPLASH", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "PARTICLE_SMOKE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "EXPLOSION_HUGE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "EXPLOSION_LARGE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "EXPLOSION", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "VOID_FOG", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SMALL_SMOKE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "CLOUD", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "COLOURED_DUST", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SNOWBALL_BREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "WATERDRIP", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "LAVADRIP", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SNOW_SHOVEL", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "SLIME", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "HEART", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "VILLAGER_THUNDERCLOUD", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "HAPPY_VILLAGER", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "LARGE_SMOKE", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "ITEM_BREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "TILE_BREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + }, + { + "name": "TILE_DUST", + "access": 16409, + "descriptor": "Lorg/bukkit/Effect;" + } + ], + "methods": [ + { + "name": "", + "access": 8, + "descriptor": "()V" + }, + { + "name": "getId", + "access": 131073, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getName", + "access": 1, + "descriptor": "()Ljava/lang/String;" + }, + { + "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": 9, + "descriptor": "(Ljava/lang/String;)Lorg/bukkit/Effect;" + }, + { + "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": 50, + "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": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "fields": [ + { + "name": "HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/EntityEffect;" + }, + { + "name": "DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/EntityEffect;" + }, + { + "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": 16409, + "descriptor": "Lorg/bukkit/EntityEffect;" + }, + { + "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;" + } + ], + "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/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": 50, + "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": 50, + "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;" + } + ], + "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/Location", + "version": 50, + "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": "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": 50, + "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": "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": "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": "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": "isOccluding", + "access": 1, + "descriptor": "()Z" + }, + { + "name": "hasGravity", + "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/Note", + "version": 50, + "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": 50, + "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": 50, + "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": "setBanned", + "access": 132097, + "descriptor": "(Z)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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/Server", + "version": 50, + "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": "_INVALID_getOnlinePlayers", + "access": 132097, + "descriptor": "()[Lorg/bukkit/entity/Player;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "configureDbConfig", + "access": 1025, + "descriptor": "(Lcom/avaje/ebean/config/ServerConfig;)V" + }, + { + "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": "useExactLoginLocation", + "access": 132097, + "descriptor": "()Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "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": 50, + "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": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "fields": [ + { + "name": "AMBIENCE_CAVE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "AMBIENCE_RAIN", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "AMBIENCE_THUNDER", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ANVIL_BREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ANVIL_LAND", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ANVIL_USE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ARROW_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BURP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHEST_CLOSE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHEST_OPEN", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CLICK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DOOR_CLOSE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DOOR_OPEN", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DRINK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "EAT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "EXPLODE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FALL_BIG", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FALL_SMALL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIRE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIRE_IGNITE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIZZ", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FUSE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GLASS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HURT_FLESH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ITEM_BREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ITEM_PICKUP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "LAVA", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "LAVA_POP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "LEVEL_UP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "MINECART_BASE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "MINECART_INSIDE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_BASS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_PIANO", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_BASS_DRUM", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_STICKS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_BASS_GUITAR", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_SNARE_DRUM", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "NOTE_PLING", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ORB_PICKUP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PISTON_EXTEND", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PISTON_RETRACT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PORTAL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PORTAL_TRAVEL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PORTAL_TRIGGER", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SHOOT_ARROW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SPLASH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SPLASH2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_GRASS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_GRAVEL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_LADDER", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_SAND", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_SNOW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_STONE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_WOOD", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "STEP_WOOL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SWIM", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WATER", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOOD_CLICK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BAT_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BAT_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BAT_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BAT_LOOP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BAT_TAKEOFF", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BLAZE_BREATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BLAZE_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "BLAZE_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CAT_HISS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CAT_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CAT_MEOW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CAT_PURR", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CAT_PURREOW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHICKEN_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHICKEN_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHICKEN_EGG_POP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CHICKEN_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "COW_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "COW_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "COW_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CREEPER_HISS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "CREEPER_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERDRAGON_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERDRAGON_GROWL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERDRAGON_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERDRAGON_WINGS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_TELEPORT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_SCREAM", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ENDERMAN_STARE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_SCREAM", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_SCREAM2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_CHARGE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_FIREBALL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "GHAST_MOAN", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "IRONGOLEM_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "IRONGOLEM_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "IRONGOLEM_THROW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "IRONGOLEM_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "MAGMACUBE_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "MAGMACUBE_WALK2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "MAGMACUBE_JUMP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PIG_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PIG_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "PIG_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SHEEP_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SHEEP_SHEAR", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SHEEP_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SILVERFISH_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SILVERFISH_KILL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SILVERFISH_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SILVERFISH_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SKELETON_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SKELETON_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SKELETON_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SKELETON_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SLIME_ATTACK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SLIME_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SLIME_WALK2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SPIDER_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SPIDER_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SPIDER_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WITHER_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WITHER_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WITHER_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WITHER_SHOOT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WITHER_SPAWN", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_BARK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_GROWL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_HOWL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_PANT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_SHAKE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "WOLF_WHINE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_METAL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_WOOD", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_WOODBREAK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_INFECT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_UNFECT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_REMEDY", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_WALK", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_PIG_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_PIG_ANGRY", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_PIG_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "ZOMBIE_PIG_HURT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_WOOL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_GRASS", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_GRAVEL", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_SAND", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_SNOW", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_STONE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DIG_WOOD", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_BLAST", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_BLAST2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_LARGE_BLAST", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_LARGE_BLAST2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_TWINKLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_TWINKLE2", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "FIREWORK_LAUNCH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "SUCCESSFUL_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_ANGRY", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_ARMOR", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_BREATHE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_GALLOP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_JUMP", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_LAND", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_SADDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_SOFT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_WOOD", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DONKEY_ANGRY", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DONKEY_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DONKEY_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "DONKEY_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_SKELETON_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_SKELETON_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_SKELETON_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_ZOMBIE_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_ZOMBIE_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "HORSE_ZOMBIE_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_DEATH", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_HAGGLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_HIT", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_IDLE", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_NO", + "access": 16409, + "descriptor": "Lorg/bukkit/Sound;" + }, + { + "name": "VILLAGER_YES", + "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/Statistic", + "version": 50, + "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": "TREASURE_FISHED", + "access": 16409, + "descriptor": "Lorg/bukkit/Statistic;" + }, + { + "name": "JUNK_FISHED", + "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": "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": "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": "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;" + } + ], + "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": 50, + "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": 50, + "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": 50, + "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;" + } + ], + "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": 50, + "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": "org/bukkit/Warning", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 1025, + "descriptor": "(IIZZ)Z" + }, + { + "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": "generateTree", + "access": 1025, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/TreeType;)Z" + }, + { + "name": "generateTree", + "access": 1025, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/TreeType;Lorg/bukkit/BlockChangeDelegate;)Z" + }, + { + "name": "spawnEntity", + "access": 1025, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/entity/EntityType;)Lorg/bukkit/entity/Entity;" + }, + { + "name": "spawnCreature", + "access": 132097, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/entity/EntityType;)Lorg/bukkit/entity/LivingEntity;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "spawnCreature", + "access": 132097, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/entity/CreatureType;)Lorg/bukkit/entity/LivingEntity;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "(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": "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": "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": "spigot", + "access": 1025, + "descriptor": "()Lorg/bukkit/World$Spigot;" + }, + { + "name": "getWorldBorder", + "access": 1025, + "descriptor": "()Lorg/bukkit/WorldBorder;" + } + ] + }, + { + "name": "org/bukkit/World$Environment", + "version": 50, + "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": 50, + "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": 1, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/Effect;)V" + }, + { + "name": "playEffect", + "access": 1, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/Effect;IIFFFFII)V" + }, + { + "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": 50, + "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": "org/bukkit/WorldCreator", + "version": 50, + "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": 50, + "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/block/Biome", + "version": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "fields": [ + { + "name": "SWAMPLAND", + "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": "DESERT", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "PLAINS", + "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": "OCEAN", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "RIVER", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "EXTREME_HILLS", + "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_PLAINS", + "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_SHORE", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "BEACH", + "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": "SMALL_MOUNTAINS", + "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": "COLD_TAIGA", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "COLD_TAIGA_HILLS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MEGA_TAIGA", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MEGA_TAIGA_HILLS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "EXTREME_HILLS_PLUS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SAVANNA", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SAVANNA_PLATEAU", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA_PLATEAU_FOREST", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA_PLATEAU", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SUNFLOWER_PLAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "DESERT_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "FLOWER_FOREST", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "TAIGA_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SWAMPLAND_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "ICE_PLAINS_SPIKES", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "JUNGLE_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "JUNGLE_EDGE_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "COLD_TAIGA_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SAVANNA_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "SAVANNA_PLATEAU_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA_BRYCE", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA_PLATEAU_FOREST_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MESA_PLATEAU_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "BIRCH_FOREST_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "BIRCH_FOREST_HILLS_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "ROOFED_FOREST_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MEGA_SPRUCE_TAIGA", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "EXTREME_HILLS_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "EXTREME_HILLS_PLUS_MOUNTAINS", + "access": 16409, + "descriptor": "Lorg/bukkit/block/Biome;" + }, + { + "name": "MEGA_SPRUCE_TAIGA_HILLS", + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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;" + } + ], + "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/command/Command", + "version": 50, + "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": 131073, + "descriptor": "(Lorg/bukkit/command/CommandSender;[Ljava/lang/String;)Ljava/util/List;", + "signature": "(Lorg/bukkit/command/CommandSender;[Ljava/lang/String;)Ljava/util/List;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": 50, + "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": 50, + "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": 50, + "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": "org/bukkit/command/CommandSender", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/permissions/Permissible" + ], + "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": "org/bukkit/command/ConsoleCommandSender", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/command/CommandSender", + "org/bukkit/conversations/Conversable" + ] + }, + { + "name": "org/bukkit/command/PluginCommand", + "version": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "methods": [ + { + "name": "getPlugin", + "access": 1025, + "descriptor": "()Lorg/bukkit/plugin/Plugin;" + } + ] + }, + { + "name": "org/bukkit/command/TabCompleter", + "version": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/command/TabCompleter", + "org/bukkit/command/CommandExecutor" + ] + }, + { + "name": "org/bukkit/configuration/Configuration", + "version": 50, + "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": 50, + "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": 50, + "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": "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": "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": 50, + "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": 50, + "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": 50, + "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": "pathSeparator", + "access": 4161, + "descriptor": "(C)Lorg/bukkit/configuration/ConfigurationOptions;" + }, + { + "name": "copyDefaults", + "access": 4161, + "descriptor": "(Z)Lorg/bukkit/configuration/ConfigurationOptions;" + }, + { + "name": "configuration", + "access": 4161, + "descriptor": "()Lorg/bukkit/configuration/Configuration;" + } + ] + }, + { + "name": "org/bukkit/configuration/MemorySection", + "version": 50, + "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": "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": "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": 50, + "access": 1057, + "superName": "org/bukkit/configuration/MemoryConfiguration", + "fields": [ + { + "name": "UTF8_OVERRIDE", + "access": 131097, + "descriptor": "Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "UTF_BIG", + "access": 131097, + "descriptor": "Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "SYSTEM_UTF", + "access": 131097, + "descriptor": "Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + } + ], + "methods": [ + { + "name": "", + "access": 8, + "descriptor": "()V" + }, + { + "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": 131073, + "descriptor": "(Ljava/io/InputStream;)V", + "exceptions": [ + "java/io/IOException", + "org/bukkit/configuration/InvalidConfigurationException" + ], + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "org/bukkit/configuration/file/FileConfigurationOptions", + "version": 50, + "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": "pathSeparator", + "access": 4161, + "descriptor": "(C)Lorg/bukkit/configuration/MemoryConfigurationOptions;" + }, + { + "name": "copyDefaults", + "access": 4161, + "descriptor": "(Z)Lorg/bukkit/configuration/MemoryConfigurationOptions;" + }, + { + "name": "configuration", + "access": 4161, + "descriptor": "()Lorg/bukkit/configuration/MemoryConfiguration;" + } + ] + }, + { + "name": "org/bukkit/configuration/file/YamlConfiguration", + "version": 50, + "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": 131081, + "descriptor": "(Ljava/io/InputStream;)Lorg/bukkit/configuration/file/YamlConfiguration;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "loadConfiguration", + "access": 9, + "descriptor": "(Ljava/io/Reader;)Lorg/bukkit/configuration/file/YamlConfiguration;" + }, + { + "name": "options", + "access": 4161, + "descriptor": "()Lorg/bukkit/configuration/file/FileConfigurationOptions;" + } + ] + }, + { + "name": "org/bukkit/configuration/file/YamlConfigurationOptions", + "version": 50, + "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": "pathSeparator", + "access": 4161, + "descriptor": "(C)Lorg/bukkit/configuration/file/FileConfigurationOptions;" + }, + { + "name": "copyHeader", + "access": 4161, + "descriptor": "(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;" + }, + { + "name": "header", + "access": 4161, + "descriptor": "(Ljava/lang/String;)Lorg/bukkit/configuration/file/FileConfigurationOptions;" + }, + { + "name": "copyDefaults", + "access": 4161, + "descriptor": "(Z)Lorg/bukkit/configuration/file/FileConfigurationOptions;" + }, + { + "name": "configuration", + "access": 4161, + "descriptor": "()Lorg/bukkit/configuration/file/FileConfiguration;" + } + ] + }, + { + "name": "org/bukkit/configuration/serialization/ConfigurationSerializable", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": "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": "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;" + } + ], + "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": "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": 50, + "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;" + } + ], + "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/AnimalTamer", + "version": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Projectile" + ], + "innerClasses": [ + { + "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": "spigot", + "access": 1025, + "descriptor": "()Lorg/bukkit/entity/Arrow$Spigot;" + } + ] + }, + { + "name": "org/bukkit/entity/Arrow$Spigot", + "version": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Vehicle" + ], + "methods": [ + { + "name": "getMaxSpeed", + "access": 1025, + "descriptor": "()D" + }, + { + "name": "setMaxSpeed", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "getOccupiedDeceleration", + "access": 1025, + "descriptor": "()D" + }, + { + "name": "setOccupiedDeceleration", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "getUnoccupiedDeceleration", + "access": 1025, + "descriptor": "()D" + }, + { + "name": "setUnoccupiedDeceleration", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "getWorkOnLand", + "access": 1025, + "descriptor": "()Z" + }, + { + "name": "setWorkOnLand", + "access": 1025, + "descriptor": "(Z)V" + } + ] + }, + { + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Entity" + ], + "methods": [ + { + "name": "damage", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_damage", + "access": 132097, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "damage", + "access": 1025, + "descriptor": "(DLorg/bukkit/entity/Entity;)V" + }, + { + "name": "_INVALID_damage", + "access": 132097, + "descriptor": "(ILorg/bukkit/entity/Entity;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getHealth", + "access": 1025, + "descriptor": "()D" + }, + { + "name": "_INVALID_getHealth", + "access": 132097, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setHealth", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_setHealth", + "access": 132097, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getMaxHealth", + "access": 1025, + "descriptor": "()D" + }, + { + "name": "_INVALID_getMaxHealth", + "access": 132097, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setMaxHealth", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_setMaxHealth", + "access": 132097, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "resetMaxHealth", + "access": 1025, + "descriptor": "()V" + } + ] + }, + { + "name": "org/bukkit/entity/Egg", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Projectile" + ] + }, + { + "name": "org/bukkit/entity/Entity", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/metadata/Metadatable", + "org/bukkit/command/CommandSender" + ], + "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": "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": 1025, + "descriptor": "()Lorg/bukkit/entity/Entity;" + }, + { + "name": "setPassenger", + "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": "setCustomName", + "access": 1025, + "descriptor": "(Ljava/lang/String;)V" + }, + { + "name": "getCustomName", + "access": 1025, + "descriptor": "()Ljava/lang/String;" + }, + { + "name": "setCustomNameVisible", + "access": 1025, + "descriptor": "(Z)V" + }, + { + "name": "isCustomNameVisible", + "access": 1025, + "descriptor": "()Z" + }, + { + "name": "spigot", + "access": 1025, + "descriptor": "()Lorg/bukkit/entity/Entity$Spigot;" + } + ] + }, + { + "name": "org/bukkit/entity/Entity$Spigot", + "version": 50, + "access": 33, + "superName": "java/lang/Object", + "innerClasses": [ + { + "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": 50, + "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": "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": "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": "ARMOR_STAND", + "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": "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": "VILLAGER", + "access": 16409, + "descriptor": "Lorg/bukkit/entity/EntityType;" + }, + { + "name": "ENDER_CRYSTAL", + "access": 16409, + "descriptor": "Lorg/bukkit/entity/EntityType;" + }, + { + "name": "SPLASH_POTION", + "access": 16409, + "descriptor": "Lorg/bukkit/entity/EntityType;" + }, + { + "name": "EGG", + "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": "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": 50, + "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/HumanEntity", + "version": 50, + "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": "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": "closeInventory", + "access": 1025, + "descriptor": "()V" + }, + { + "name": "getItemInHand", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + }, + { + "name": "setItemInHand", + "access": 1025, + "descriptor": "(Lorg/bukkit/inventory/ItemStack;)V" + }, + { + "name": "getItemOnCursor", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + }, + { + "name": "setItemOnCursor", + "access": 1025, + "descriptor": "(Lorg/bukkit/inventory/ItemStack;)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": "getExpToLevel", + "access": 1025, + "descriptor": "()I" + } + ] + }, + { + "name": "org/bukkit/entity/Item", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "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": 132097, + "descriptor": "(Ljava/util/HashSet;I)Ljava/util/List;", + "signature": "(Ljava/util/HashSet;I)Ljava/util/List;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getLineOfSight", + "access": 1025, + "descriptor": "(Ljava/util/Set;I)Ljava/util/List;", + "signature": "(Ljava/util/Set;I)Ljava/util/List;" + }, + { + "name": "getTargetBlock", + "access": 132097, + "descriptor": "(Ljava/util/HashSet;I)Lorg/bukkit/block/Block;", + "signature": "(Ljava/util/HashSet;I)Lorg/bukkit/block/Block;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 132097, + "descriptor": "(Ljava/util/HashSet;I)Ljava/util/List;", + "signature": "(Ljava/util/HashSet;I)Ljava/util/List;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getLastTwoTargetBlocks", + "access": 1025, + "descriptor": "(Ljava/util/Set;I)Ljava/util/List;", + "signature": "(Ljava/util/Set;I)Ljava/util/List;" + }, + { + "name": "throwEgg", + "access": 132097, + "descriptor": "()Lorg/bukkit/entity/Egg;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "throwSnowball", + "access": 132097, + "descriptor": "()Lorg/bukkit/entity/Snowball;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "shootArrow", + "access": 132097, + "descriptor": "()Lorg/bukkit/entity/Arrow;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "_INVALID_getLastDamage", + "access": 132097, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setLastDamage", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_setLastDamage", + "access": 132097, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "org/bukkit/entity/Minecart", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Vehicle" + ], + "methods": [ + { + "name": "_INVALID_setDamage", + "access": 132097, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setDamage", + "access": 1025, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_getDamage", + "access": 132097, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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/Player", + "version": 50, + "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": "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": 1025, + "descriptor": "(Lorg/bukkit/Achievement;)V" + }, + { + "name": "removeAchievement", + "access": 1025, + "descriptor": "(Lorg/bukkit/Achievement;)V" + }, + { + "name": "hasAchievement", + "access": 1025, + "descriptor": "(Lorg/bukkit/Achievement;)Z" + }, + { + "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": 1025, + "descriptor": "(Lorg/bukkit/entity/Player;)V" + }, + { + "name": "showPlayer", + "access": 1025, + "descriptor": "(Lorg/bukkit/entity/Player;)V" + }, + { + "name": "canSee", + "access": 1025, + "descriptor": "(Lorg/bukkit/entity/Player;)Z" + }, + { + "name": "isOnGround", + "access": 132097, + "descriptor": "()Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "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": "resetTitle", + "access": 132097, + "descriptor": "()V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "spigot", + "access": 1025, + "descriptor": "()Lorg/bukkit/entity/Player$Spigot;" + } + ] + }, + { + "name": "org/bukkit/entity/Player$Spigot", + "version": 50, + "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": 1, + "descriptor": "(Lorg/bukkit/Location;Lorg/bukkit/Effect;IIFFFFII)V" + }, + { + "name": "getCollidesWithEntities", + "access": 1, + "descriptor": "()Z" + }, + { + "name": "setCollidesWithEntities", + "access": 1, + "descriptor": "(Z)V" + }, + { + "name": "respawn", + "access": 1, + "descriptor": "()V" + }, + { + "name": "getLocale", + "access": 1, + "descriptor": "()Ljava/lang/String;" + }, + { + "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": "org/bukkit/entity/Projectile", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Entity" + ], + "methods": [ + { + "name": "_INVALID_getShooter", + "access": 132097, + "descriptor": "()Lorg/bukkit/entity/LivingEntity;", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "getShooter", + "access": 1025, + "descriptor": "()Lorg/bukkit/projectiles/ProjectileSource;" + }, + { + "name": "_INVALID_setShooter", + "access": 132097, + "descriptor": "(Lorg/bukkit/entity/LivingEntity;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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/Weather", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/entity/Entity" + ] + }, + { + "name": "org/bukkit/event/Cancellable", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object" + }, + { + "name": "org/bukkit/event/block/Action", + "version": 50, + "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": 50, + "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": "isCancelled", + "access": 1, + "descriptor": "()Z" + }, + { + "name": "setCancelled", + "access": 1, + "descriptor": "(Z)V" + } + ] + }, + { + "name": "org/bukkit/event/block/BlockEvent", + "version": 50, + "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": 50, + "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": 50, + "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;" + } + ], + "methods": [ + { + "name": "", + "access": 8, + "descriptor": "()V" + }, + { + "name": "", + "access": 1, + "descriptor": "(Lorg/bukkit/block/Block;Lorg/bukkit/block/BlockState;Lorg/bukkit/block/Block;Lorg/bukkit/inventory/ItemStack;Lorg/bukkit/entity/Player;Z)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": "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": 50, + "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;I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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;I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "_INVALID_getDamage", + "access": 131073, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setDamage", + "access": 1, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_setDamage", + "access": 131073, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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": "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": "CUSTOM", + "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": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "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/EntityEvent", + "version": 50, + "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": 50, + "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": 131073, + "descriptor": "(Lorg/bukkit/entity/Entity;ILorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "", + "access": 1, + "descriptor": "(Lorg/bukkit/entity/Entity;DLorg/bukkit/event/entity/EntityRegainHealthEvent$RegainReason;)V" + }, + { + "name": "getAmount", + "access": 1, + "descriptor": "()D" + }, + { + "name": "_INVALID_getAmount", + "access": 131073, + "descriptor": "()I", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "setAmount", + "access": 1, + "descriptor": "(D)V" + }, + { + "name": "_INVALID_setAmount", + "access": 131073, + "descriptor": "(I)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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": 50, + "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/inventory/ClickType", + "version": 50, + "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": 50, + "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": 50, + "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": 131073, + "descriptor": "(Lorg/bukkit/inventory/InventoryView;Lorg/bukkit/event/inventory/InventoryType$SlotType;IZZ)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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/InventoryEvent", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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;" + } + ], + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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/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": 50, + "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": "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": "getHandlers", + "access": 1, + "descriptor": "()Lorg/bukkit/event/HandlerList;" + }, + { + "name": "getHandlerList", + "access": 9, + "descriptor": "()Lorg/bukkit/event/HandlerList;" + } + ] + }, + { + "name": "org/bukkit/event/player/PlayerItemConsumeEvent", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 131073, + "descriptor": "(Lorg/bukkit/entity/Player;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "name": "", + "access": 131073, + "descriptor": "(Lorg/bukkit/entity/Player;Ljava/lang/String;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 131073, + "descriptor": "(Lorg/bukkit/entity/Player;Lorg/bukkit/event/player/PlayerLoginEvent$Result;Ljava/lang/String;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "methods": [ + { + "name": "getItemInHand", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + }, + { + "name": "setItemInHand", + "access": 1025, + "descriptor": "(Lorg/bukkit/inventory/ItemStack;)V" + }, + { + "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": 1025, + "descriptor": "()F" + }, + { + "name": "setItemInHandDropChance", + "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/Inventory", + "version": 50, + "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": "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": "org/bukkit/inventory/InventoryHolder", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "methods": [ + { + "name": "getInventory", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/Inventory;" + } + ] + }, + { + "name": "org/bukkit/inventory/InventoryView", + "version": 50, + "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": 50, + "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": "COOK_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": "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": "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": 50, + "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": 50, + "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": 50, + "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": 17, + "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/PlayerInventory", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/inventory/Inventory" + ], + "methods": [ + { + "name": "getArmorContents", + "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": "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": "getItemInHand", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + }, + { + "name": "setItemInHand", + "access": 1025, + "descriptor": "(Lorg/bukkit/inventory/ItemStack;)V" + }, + { + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "methods": [ + { + "name": "getResult", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + } + ] + }, + { + "name": "org/bukkit/inventory/meta/ItemMeta", + "version": 50, + "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": "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": "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": 50, + "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": 1, + "descriptor": "(Z)V" + }, + { + "name": "isUnbreakable", + "access": 1, + "descriptor": "()Z" + } + ] + }, + { + "name": "org/bukkit/inventory/meta/SkullMeta", + "version": 50, + "access": 1537, + "superName": "java/lang/Object", + "interfaces": [ + "org/bukkit/inventory/meta/ItemMeta" + ], + "methods": [ + { + "name": "getOwner", + "access": 1025, + "descriptor": "()Ljava/lang/String;" + }, + { + "name": "hasOwner", + "access": 1025, + "descriptor": "()Z" + }, + { + "name": "setOwner", + "access": 1025, + "descriptor": "(Ljava/lang/String;)Z" + }, + { + "name": "clone", + "access": 1025, + "descriptor": "()Lorg/bukkit/inventory/meta/SkullMeta;" + } + ] + }, + { + "name": "org/bukkit/map/MapCanvas", + "version": 50, + "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": 50, + "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": "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": 50, + "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;" + } + ], + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": "org/bukkit/map/MapView$Scale", + "version": 50, + "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": 50, + "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": 1, + "descriptor": "()Lorg/bukkit/inventory/ItemStack;" + }, + { + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1537, + "superName": "java/lang/Object", + "methods": [ + { + "name": "attachmentRemoved", + "access": 1025, + "descriptor": "(Lorg/bukkit/permissions/PermissionAttachment;)V" + } + ] + }, + { + "name": "org/bukkit/permissions/ServerOperator", + "version": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": "getDatabase", + "access": 1025, + "descriptor": "()Lcom/avaje/ebean/EbeanServer;" + }, + { + "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": 50, + "access": 1537, + "superName": "java/lang/Object" + }, + { + "name": "org/bukkit/plugin/PluginBase", + "version": 50, + "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": 50, + "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": "isDatabaseEnabled", + "access": 1, + "descriptor": "()Z" + }, + { + "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": "setDatabaseEnabled", + "access": 1, + "descriptor": "(Z)V" + }, + { + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "access": 1057, + "superName": "org/bukkit/plugin/PluginBase", + "innerClasses": [ + { + "name": "org/bukkit/Warning$WarningState", + "outerName": "org/bukkit/Warning", + "innerName": "WarningState", + "access": 16409 + } + ], + "methods": [ + { + "name": "", + "access": 1, + "descriptor": "()V" + }, + { + "name": "", + "access": 131076, + "descriptor": "(Lorg/bukkit/plugin/PluginLoader;Lorg/bukkit/Server;Lorg/bukkit/plugin/PluginDescriptionFile;Ljava/io/File;Ljava/io/File;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "initialize", + "access": 131092, + "descriptor": "(Lorg/bukkit/plugin/PluginLoader;Lorg/bukkit/Server;Lorg/bukkit/plugin/PluginDescriptionFile;Ljava/io/File;Ljava/io/File;Ljava/lang/ClassLoader;)V", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "getDatabaseClasses", + "access": 1, + "descriptor": "()Ljava/util/List;", + "signature": "()Ljava/util/List;>;" + }, + { + "name": "isInitialized", + "access": 131089, + "descriptor": "()Z", + "annotations": [ + { + "descriptor": "Ljava/lang/Deprecated;", + "visible": true, + "values": {} + } + ] + }, + { + "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": "getDatabase", + "access": 1, + "descriptor": "()Lcom/avaje/ebean/EbeanServer;" + }, + { + "name": "installDDL", + "access": 4, + "descriptor": "()V" + }, + { + "name": "removeDDL", + "access": 4, + "descriptor": "()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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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;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": "hashCode", + "access": 1, + "descriptor": "()I" + }, + { + "name": "toString", + "access": 1, + "descriptor": "()Ljava/lang/String;" + } + ] + }, + { + "name": "org/bukkit/potion/PotionEffectType", + "version": 50, + "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;" + } + ], + "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": "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": 50, + "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": 50, + "access": 1057, + "superName": "java/lang/Object", + "interfaces": [ + "java/lang/Runnable" + ], + "methods": [ + { + "name": "", + "access": 1, + "descriptor": "()V" + }, + { + "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": 50, + "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": 50, + "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": "cancel", + "access": 1025, + "descriptor": "()V" + } + ] + }, + { + "name": "org/bukkit/scheduler/BukkitWorker", + "version": 50, + "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": 50, + "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": 50, + "access": 16433, + "signature": "Ljava/lang/Enum;", + "superName": "java/lang/Enum", + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": 50, + "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": "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": "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": 1025, + "descriptor": "()Lorg/bukkit/scoreboard/NameTagVisibility;", + "exceptions": [ + "java/lang/IllegalArgumentException" + ] + }, + { + "name": "setNameTagVisibility", + "access": 1025, + "descriptor": "(Lorg/bukkit/scoreboard/NameTagVisibility;)V", + "exceptions": [ + "java/lang/IllegalArgumentException" + ] + }, + { + "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": "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": 50, + "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": "deserialize", + "access": 4169, + "descriptor": "(Ljava/util/Map;)Lorg/bukkit/util/Vector;" + } + ] + }, + { + "name": "org/bukkit/util/CachedServerIcon", + "version": 50, + "access": 1537, + "superName": "java/lang/Object" + }, + { + "name": "org/bukkit/util/Vector", + "version": 50, + "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": "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": 50, + "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 100644 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..88f4cf8 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'AAC1' 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..91a0203 --- /dev/null +++ b/src/main/java/me/konsolas/aac/AAC.java @@ -0,0 +1,169 @@ +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.CombatLogoutListener; +import me.konsolas.aac.components.MovementEventDispatcher; +import me.konsolas.aac.components.PlayerState; +import me.konsolas.aac.components.Punisher; +import me.konsolas.aac.components.TPSManager; +import me.konsolas.aac.components.VerboseLogger; +import me.konsolas.aac.hooks.McMMO; +import me.konsolas.aac.lang.Messages; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.World; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerLoginEvent.Result; +import org.bukkit.event.player.PlayerLoginEvent; +import org.bukkit.plugin.java.JavaPlugin; + +public class AAC extends JavaPlugin implements Listener { + public static volatile AACAPI api = null; + public static final String pluginName = "AAC"; + public static String messagePrefix = "§6[AAC] §r> §6"; + public static Random random = new Random(); + public AAC plugin = this; + public Player debugPlayer; + public VerboseLogger verboseLogger; + public Messages messages; + public TPSManager tpsManager; + public PlayerState playerState; + public MovementEventDispatcher movementDispatcher; + public CheckManager checkManager; + public CombatLogoutListener combatLogoutListener; + public Punisher punisher; + public AACCommandExecutor commandExecutor; + SimpleDateFormat logFilenameDateFormat = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss"); + SimpleDateFormat logTimestampFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss.SSS"); + private FileWriter logFileWriter; + private PrintWriter logWriter; + + public void onEnable() { + + for (World world : this.getServer().getWorlds()) { + Entity entity = world.spawnEntity(new Location(world, 0.0, 0.0, 0.0), EntityType.ARMOR_STAND); + entity.remove(); + } + + if (ProtocolLibrary.getProtocolManager().getMinecraftVersion().getVersion().contains("9")) { + throw new RuntimeException("THIS BUILD OF AAC IS FOR 1.8.8 ONLY!"); + } + + this.getServer().getPluginManager().registerEvents(this, this); + + 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.verboseLogger = new VerboseLogger(this); + this.saveDefaultConfig(); + this.openLog(); + this.reloadConfig(); + this.punisher = new Punisher(this); + this.registerCommands(); + this.getServer().getScheduler().scheduleSyncDelayedTask(this, new EnableSequence(this), 1L); + this.movementDispatcher = new MovementEventDispatcher(this); + this.getServer().getPluginManager().registerEvents(this.movementDispatcher, 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); + } + } + + public void onDisable() { + this.playerState.destroy(); + this.punisher.saveBans(); + this.closeLog(); + } + + public void openLog() { + try { + if (!this.getConfig().getBoolean("log_file", true)) { + Bukkit.getLogger().warning("[AAC] Logger functionality has been disabled in the configuration file."); + return; + } + + File file = new File(this.getDataFolder(), "logs"); + if (!file.exists()) { + file.mkdir(); + } + + Date date = new Date(); + File file2 = new File(this.getDataFolder(), "logs/aac_" + this.logFilenameDateFormat.format(date) + ".log"); + if (!file2.exists()) { + file2.createNewFile(); + } + + this.logFileWriter = new FileWriter(file2, 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 closeLog() { + 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 str) { + if (this.logWriter != null) { + Date date = new Date(); + this.logWriter.println("[" + this.logTimestampFormat.format(date) + "] " + str); + this.logWriter.flush(); + } + } + + public void disable() { + 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..5c6c3fb --- /dev/null +++ b/src/main/java/me/konsolas/aac/CheckManager.java @@ -0,0 +1,276 @@ +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.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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 Map detectors = new HashMap<>(); + private List disabledChecks = new ArrayList<>(); + private Set cachedBypassPlayers = new HashSet<>(); + private Map nextBypassRefreshTimes = new HashMap<>(); + private AAC plugin; + private long tickCounter = 0L; + + public CheckManager(AAC plugin) { + this.plugin = plugin; + + for (HackType hackType : HackType.values()) { + this.detectors.put(hackType, null); + } + + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new TickCounterTask(this), 1L, 1L); + } + + + public boolean enableCheck(HackType hackType, boolean flag) { + if (this.detectors.get(hackType) != null) { + return false; + } + + if (flag) { + if (this.disabledChecks.contains(hackType)) { + return false; + } + } else { + this.disabledChecks.remove(hackType); + } + + Class classVal; + try { + classVal = Class.forName("me.konsolas.aac.detectors." + hackType); + } catch (ClassNotFoundException ex) { + this.plugin.verboseLogger.logViolation("Failed to initialize " + hackType.getName() + " (class not found)"); + return false; + } + + Constructor[] constructorArray = classVal.getDeclaredConstructors(); + Constructor constructor = null; + + for (Constructor constructor2 : constructorArray) { + constructor = constructor2; + 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 ex2) { + this.plugin.verboseLogger.logViolation("Failed to initialize " + hackType.getName() + " (instance creation failed)"); + ex2.printStackTrace(); + return false; + } + + this.detectors.put(hackType, detector); + Bukkit.getServer().getPluginManager().registerEvents(detector, this.plugin); + this.plugin.verboseLogger.logViolation("(CheckManager) Enabled check " + hackType); + return true; + } + + public boolean disableCheck(HackType hackType, boolean flag) { + if (!this.isCheckEnabled(hackType)) { + return false; + } + + if (!flag) { + this.disabledChecks.add(hackType); + } + + this.detectors.get(hackType).destroy(); + HandlerList.unregisterAll(this.detectors.get(hackType)); + this.detectors.put(hackType, null); + this.plugin.verboseLogger.logViolation("(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 enableConfiguredChecks() { + for (HackType hackType : HackType.values()) { + this.enableCheck(hackType, true); + } + } + + public Detector getDetector(HackType hackType) { + return this.detectors.get(hackType); + } + + public boolean isCheckEnabled(HackType hackType) { + return this.detectors.get(hackType) != null; + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerKick(PlayerKickEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getDetector(hackType).onPlayerKick(event); + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerJoin(PlayerJoinEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getDetector(hackType).onPlayerJoin(event); + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onPlayerQuit(PlayerQuitEvent event) { + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + this.getDetector(hackType).onPlayerQuit(event); + } + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.LOW) + public void onPlayerMove(PlayerMoveEvent event) { + boolean flag = this.isPlayerExempt(event.getPlayer()); + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(event.getFrom()); + RelativeBlockCache relativeBlockCache2 = new RelativeBlockCache(event.getTo()); + boolean flag2 = BlockCollisionChecks.isOnGround(event.getFrom(), relativeBlockCache); + boolean flag3 = BlockCollisionChecks.isOnGround(event.getTo(), relativeBlockCache2); + this.plugin.playerState.recordMoveState(event, flag2, flag3); + + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + Detector detector = this.getDetector(hackType); + if (detector instanceof MoveListener) { + MoveListener moveListener = (MoveListener)detector; + if (moveListener.shouldProcessPlayerMove(event) && !flag) { + moveListener.onPlayerMove(event, flag2, flag3, relativeBlockCache, relativeBlockCache2); + } + } + } + } + + if (this.plugin.movementDispatcher.shouldProcessPlayerMove(event) && !flag) { + this.plugin.movementDispatcher.onPlayerMove(event, flag2, flag3, relativeBlockCache, relativeBlockCache2); + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + boolean flag = event.getDamager().hasPermission("AAC.bypass") || event.getEntity().hasPermission("AAC.bypass"); + + for (HackType hackType : HackType.values()) { + if (this.isCheckEnabled(hackType)) { + Detector detector = this.getDetector(hackType); + if (detector instanceof DamageListener) { + DamageListener damageListener = (DamageListener)detector; + if (damageListener.shouldProcessDamage(event) && !flag) { + damageListener.onEntityDamageByEntity(event); + } + } + } + } + } + + public boolean isPlayerExempt(Player player) { + if (!this.nextBypassRefreshTimes.containsKey(player.getUniqueId())) { + this.nextBypassRefreshTimes.put(player.getUniqueId(), 0L); + } + + boolean flag; + if (this.cachedBypassPlayers.contains(player.getUniqueId())) { + if (System.currentTimeMillis() < this.nextBypassRefreshTimes.get(player.getUniqueId())) { + flag = true; + } else { + flag = player.hasPermission("AAC.bypass"); + if (flag) { + this.cachedBypassPlayers.add(player.getUniqueId()); + } else { + this.cachedBypassPlayers.remove(player.getUniqueId()); + } + + this.nextBypassRefreshTimes.put(player.getUniqueId(), System.currentTimeMillis() + AAC.random.nextInt(20000) + 20000L); + } + } else if (System.currentTimeMillis() < this.nextBypassRefreshTimes.get(player.getUniqueId())) { + flag = false; + } else { + flag = player.hasPermission("AAC.bypass"); + if (flag) { + this.cachedBypassPlayers.add(player.getUniqueId()); + } else { + this.cachedBypassPlayers.remove(player.getUniqueId()); + } + + this.nextBypassRefreshTimes.put(player.getUniqueId(), System.currentTimeMillis() + AAC.random.nextInt(20000) + 20000L); + } + + return flag; + } + + public void clearBypassCache() { + this.nextBypassRefreshTimes.clear(); + this.cachedBypassPlayers.clear(); + } + + static long incrementTickCounter(CheckManager checkManager) { + return checkManager.tickCounter++; + } + + static long getTickCounter(CheckManager checkManager) { + return checkManager.tickCounter; + } + + private static class TickCounterTask implements Runnable { + final CheckManager checkManager; + + TickCounterTask(CheckManager checkManager) { + this.checkManager = checkManager; + } + + @Override + public void run() { + CheckManager.incrementTickCounter(this.checkManager); + + for (HackType hackType : HackType.values()) { + if (this.checkManager.isCheckEnabled(hackType)) { + this.checkManager.getDetector(hackType).setCurrentTick(CheckManager.getTickCounter(this.checkManager)); + } + } + } + } +} 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..957d076 --- /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.CombatLogoutListener; +import me.konsolas.aac.components.PlayerState; +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 { + final AAC plugin; + + public EnableSequence(AAC plugin) { + this.plugin = plugin; + } + + @Override + public void run() { + this.plugin.plugin.getLogger().info("Beginning Enable..."); + this.plugin.initializeHooks(); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.checkManager, this.plugin.plugin); + this.plugin.plugin.getLogger().info("Checking config file..."); + + for (HackType hackType : HackType.values()) { + if (this.plugin.getConfig().getBoolean(hackType.getName() + ".enabled")) { + this.plugin.plugin.getLogger().info("(CheckManager) Enabling check " + hackType); + this.plugin.checkManager.enableCheck(hackType, false); + } else { + this.plugin.plugin.getLogger().info("(CheckManager) Check " + hackType + " is disabled"); + } + } + + this.plugin.plugin.getLogger().info("Starting API..."); + AAC.api = new AACAPIImpl(this.plugin.plugin); + this.plugin.combatLogoutListener = new CombatLogoutListener(this.plugin.plugin); + this.plugin.playerState = new PlayerState(this.plugin.plugin); + this.plugin.messages = new Messages(this.plugin.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.combatLogoutListener, this.plugin.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.playerState, this.plugin.plugin); + Bukkit.getServer().getPluginManager().registerEvents(this.plugin.punisher, this.plugin.plugin); + this.plugin.verboseLogger.logViolation("AAC has been enabled"); + this.plugin.plugin.getLogger().info("AAC has been enabled."); + AAC.messagePrefix = ChatColor.translateAlternateColorCodes('&', this.plugin.messages.getMessage("prefix")); + TPS.startMonitoring(this.plugin.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..6cd1d6b --- /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 i); + + 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..cc076fb --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/HackType.java @@ -0,0 +1,55 @@ +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"), + 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 str, String str2) { + this.checkPath = str; + this.name = str2; + 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..88a652f --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/PlayerViolationCommandEvent.java @@ -0,0 +1,47 @@ +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 HackType hackType; + private String command; + + public PlayerViolationCommandEvent(Player player, HackType hackType, String str) { + super(player); + this.hackType = hackType; + this.command = str; + } + + public static HandlerList getHandlerList() { + return HANDLERS; + } + + public String getCommand() { + return this.command; + } + + public void setCommand(String str) { + this.command = str; + } + + public HackType getHackType() { + return this.hackType; + } + + public boolean isCancelled() { + return this.cancelled; + } + + public void setCancelled(boolean flag) { + this.cancelled = flag; + } + + 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..72ec273 --- /dev/null +++ b/src/main/java/me/konsolas/aac/api/PlayerViolationEvent.java @@ -0,0 +1,49 @@ +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 HackType hackType; + private int violations; + private String message; + + public PlayerViolationEvent(Player player, HackType hackType, int i, String str) { + super(player); + this.hackType = hackType; + this.violations = i; + this.message = str; + } + + public static HandlerList getHandlerList() { + return HANDLERS; + } + + public int getViolations() { + return this.violations; + } + + public HackType getHackType() { + return this.hackType; + } + + public String getMessage() { + return this.message; + } + + public boolean isCancelled() { + return this.cancelled; + } + + public void setCancelled(boolean flag) { + this.cancelled = flag; + } + + 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..3c6f015 --- /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.blocks.BlockCollisionChecks; +import org.bukkit.entity.Player; + +public final class AACAPIImpl implements AACAPI { + private AAC plugin; + + public AACAPIImpl(AAC plugin) { + this.plugin = plugin; + } + + @Override + public void reloadAAC() { + this.plugin.disable(); + } + + @Override + public void reloadPermissionCache() { + this.plugin.checkManager.clearBypassCache(); + } + + @Override + public void invalidateMovementCaches() { + ((Speed)this.plugin.checkManager.getDetector(HackType.SPEED)).clearCaches(); + ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).clearCaches(); + ((Phase)this.plugin.checkManager.getDetector(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.isPlayerExempt(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.getDetector(hackType).getViolationLevel(player); + } + + @Override + public void setViolationLevel(Player player, HackType hackType, int i) { + this.plugin.checkManager.getDetector(hackType).setViolationLevel(player, i); + } + + @Override + public boolean isPlayerOnGround(Player player) { + return BlockCollisionChecks.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..8d18ecb --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/AACCommandExecutor.java @@ -0,0 +1,350 @@ +package me.konsolas.aac.components; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType; +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; + + public AACCommandExecutor(AAC plugin) { + this.plugin = plugin; + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new RegisterChatListenerTask(this, plugin)); + } + + @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 StaffChatBroadcastTask(this, event)); + } + } + + public boolean onCommand(CommandSender sender, Command command, String str, String[] strArray) { + if (command.getName().equalsIgnoreCase("aac")) { + return true; + } + + if (command.getName().equalsIgnoreCase("aacban")) { + if (strArray.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else { + String str2 = strArray[0]; + Punisher punisher = this.plugin.punisher; + if (punisher.isBanned(str2)) { + StringBuilder sb = new StringBuilder().append(AAC.messagePrefix); + String str3 = strArray[0]; + StringBuilder sb2 = sb; + sender.sendMessage(sb2.append(str3).append(" is already banned").toString()); + return false; + } else if (Bukkit.getPlayer(strArray[0]) == null) { + StringBuilder sb3 = new StringBuilder().append(AAC.messagePrefix); + String str4 = strArray[0]; + StringBuilder sb4 = sb3; + sender.sendMessage(sb4.append(str4).append(" is not online").toString()); + return false; + } else { + this.plugin.punisher.banPlayer(Bukkit.getPlayer(strArray[0])); + Bukkit.getPlayer(strArray[0]).kickPlayer(AAC.messagePrefix + this.plugin.messages.getMessage("ban_message")); + StringBuilder sb5 = new StringBuilder().append(AAC.messagePrefix); + String str5 = strArray[0]; + StringBuilder sb6 = sb5; + sender.sendMessage(sb6.append(str5).append(" has been banned").toString()); + VerboseLogger verboseLogger = this.plugin.verboseLogger; + sb5 = new StringBuilder(); + String str6 = strArray[0]; + StringBuilder sb7 = sb5; + verboseLogger.logViolation(sb7.append(str6).append(" was banned by ").append(sender.getName()).toString()); + 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; + } + + if (this.plugin.verboseLogger.verboseExclusions.contains(((Player)sender).getUniqueId())) { + this.plugin.verboseLogger.verboseExclusions.remove(((Player)sender).getUniqueId()); + sender.sendMessage(AAC.messagePrefix + "AAC will now give you verbose output."); + } else { + this.plugin.verboseLogger.verboseExclusions.add(((Player)sender).getUniqueId()); + sender.sendMessage(AAC.messagePrefix + "AAC will no longer give you verbose output."); + } + + return true; + } else if (command.getName().equalsIgnoreCase("aacunban")) { + if (strArray.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else { + String str7 = strArray[0]; + Punisher punisher2 = this.plugin.punisher; + if (!punisher2.isBanned(str7)) { + StringBuilder sb8 = new StringBuilder().append(AAC.messagePrefix); + String str8 = strArray[0]; + StringBuilder sb9 = sb8; + sender.sendMessage(sb9.append(str8).append(" is not already banned").toString()); + return false; + } else { + String str9 = strArray[0]; + Punisher punisher3 = this.plugin.punisher; + punisher3.unbanPlayer(str9); + StringBuilder sb10 = new StringBuilder().append(AAC.messagePrefix); + String str10 = strArray[0]; + StringBuilder sb11 = sb10; + sender.sendMessage(sb11.append(str10).append(" has been unbanned").toString()); + VerboseLogger verboseLogger2 = this.plugin.verboseLogger; + sb10 = new StringBuilder(); + String str11 = strArray[0]; + StringBuilder sb12 = sb10; + verboseLogger2.logViolation(sb12.append(str11).append(" was unbanned by ").append(sender.getName()).toString()); + 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 { + Player player = (Player)sender; + new HomeGUI(this.plugin, player); + return true; + } + } else { + if (command.getName().equalsIgnoreCase("aacreload")) { + sender.sendMessage(AAC.messagePrefix + "Reload request has been registered."); + this.plugin.verboseLogger.logViolation("Reload requested by " + sender.getName()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ReloadPluginTask(this), 1L); + return true; + } + + if (command.getName().equalsIgnoreCase("aackick")) { + if (strArray.length < 2) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } + + Player player2 = Bukkit.getPlayer(strArray[0]); + this.plugin.punisher.recordKick(player2); + if (player2 == null) { + StringBuilder sb13 = new StringBuilder(); + String str12 = strArray[0]; + StringBuilder sb14 = sb13; + sender.sendMessage(sb14.append(str12).append(" is not online.").toString()); + return false; + } + + StringBuilder sb15 = new StringBuilder(); + + for (int value = 1; value < strArray.length; value++) { + String str13 = strArray[value]; + StringBuilder sb16 = sb15; + sb16.append(str13); + char c = ' '; + StringBuilder sb17 = sb15; + sb17.append(c); + } + + player2.kickPlayer(AAC.messagePrefix + sb15.toString()); + if (this.plugin.getConfig().getBoolean("aackick_broadcast")) { + Bukkit.broadcastMessage(AAC.messagePrefix + player2.getName() + this.plugin.messages.getMessage("aac_kick_broadcast")); + } + + return true; + } else if (command.getName().equalsIgnoreCase("aacdebug")) { + if (strArray.length == 0) { + if (this.plugin.debugPlayer != null) { + sender.sendMessage(AAC.messagePrefix + "Ending debug for " + this.plugin.debugPlayer.getName()); + this.plugin.verboseLogger.stopPlayerDebug(); + return true; + } else { + sender.sendMessage(AAC.messagePrefix + "No active debug"); + return false; + } + } else if (strArray.length != 1) { + sender.sendMessage("Incorrect number of arguments"); + return false; + } else { + Player player3 = Bukkit.getPlayer(strArray[0]); + if (player3 == null) { + StringBuilder sb18 = new StringBuilder(); + String str14 = strArray[0]; + StringBuilder sb19 = sb18; + sender.sendMessage(sb19.append(str14).append(" is not online").toString()); + return false; + } else { + sender.sendMessage("Type /aacdebug without arguments to end the debug session."); + sender.sendMessage(AAC.messagePrefix + this.plugin.verboseLogger.startPlayerDebug(player3)); + return true; + } + } + } else if (command.getName().equalsIgnoreCase("aacmessage")) { + if (strArray.length < 2) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } + + Player player4 = Bukkit.getPlayer(strArray[0]); + if (player4 == null) { + StringBuilder sb20 = new StringBuilder(); + String str15 = strArray[0]; + StringBuilder sb21 = sb20; + sender.sendMessage(sb21.append(str15).append(" is not online.").toString()); + return false; + } + + StringBuilder sb22 = new StringBuilder(); + + for (int value2 = 1; value2 < strArray.length; value2++) { + String str16 = strArray[value2]; + StringBuilder sb23 = sb22; + sb23.append(str16); + char c2 = ' '; + StringBuilder sb24 = sb22; + sb24.append(c2); + } + + player4.sendMessage(AAC.messagePrefix + sb22.toString()); + return true; + } else if (!command.getName().equalsIgnoreCase("aacstaffnotify")) { + if (command.getName().equalsIgnoreCase("aaccrash")) { + if (strArray.length != 1) { + sender.sendMessage(AAC.messagePrefix + "Incorrect number of arguments."); + return false; + } else { + Player player5 = Bukkit.getPlayer(strArray[0]); + if (player5 == null) { + StringBuilder sb25 = new StringBuilder(); + String str17 = strArray[0]; + StringBuilder sb26 = sb25; + sender.sendMessage(sb26.append(str17).append(" is not online.").toString()); + return false; + } else { + CrashUtil.crashPlayer(player5, sender); + return true; + } + } + } else { + return false; + } + } else { + StringBuilder sb27 = new StringBuilder(); + + for (int value3 = 0; value3 < strArray.length; value3++) { + String str18 = strArray[value3]; + StringBuilder sb28 = sb27; + sb28.append(str18); + char c3 = ' '; + StringBuilder sb29 = sb27; + sb29.append(c3); + } + + Bukkit.broadcast( + ChatColor.translateAlternateColorCodes('&', this.plugin.messages.getMessage("format")).replace("{sender}", sender.getName()) + sb27.toString(), "AAC.notify" + ); + return true; + } + } + } + + static AAC getPlugin(AACCommandExecutor aacCommandExecutor) { + return aacCommandExecutor.plugin; + } + + private static class VersionResponseTask implements Runnable { + final PacketEvent event; + final VersionCommandPacketListener listener; + + VersionResponseTask(VersionCommandPacketListener versionCommandPacketListener, PacketEvent event) { + this.listener = versionCommandPacketListener; + this.event = event; + } + + @Override + public void run() { + this.event.getPlayer().sendMessage(AAC.messagePrefix + "AAC " + AAC.class.getPackage().getImplementationVersion() + ": Haxor rekker (~konsolas)"); + } + } + + private static class VersionCommandPacketListener extends PacketAdapter { + final RegisterChatListenerTask task; + + VersionCommandPacketListener(RegisterChatListenerTask registerChatListenerTask, Plugin plugin, ListenerPriority listenerPriority, PacketType... packetTypeArray) { + super(plugin, listenerPriority, packetTypeArray); + this.task = registerChatListenerTask; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacket().getType().equals(Client.CHAT)) { + String str = (String)event.getPacket().getStrings().read(0); + if (str.equalsIgnoreCase("/aac") || str.startsWith("/aac ")) { + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new VersionResponseTask(this, event)); + } + } + } + } + + private static class RegisterChatListenerTask implements Runnable { + final AAC plugin; + final AACCommandExecutor executor; + + RegisterChatListenerTask(AACCommandExecutor aacCommandExecutor, AAC plugin) { + this.executor = aacCommandExecutor; + this.plugin = plugin; + } + + @Override + public void run() { + ProtocolLibrary.getProtocolManager().addPacketListener(new VersionCommandPacketListener(this, this.plugin, ListenerPriority.LOWEST, Client.CHAT)); + } + } + + private static class StaffChatBroadcastTask implements Runnable { + final AsyncPlayerChatEvent event; + final AACCommandExecutor executor; + + StaffChatBroadcastTask(AACCommandExecutor aacCommandExecutor, AsyncPlayerChatEvent event) { + this.executor = aacCommandExecutor; + this.event = event; + } + + @Override + public void run() { + Bukkit.getServer() + .dispatchCommand( + this.event.getPlayer(), "aacstaffnotify " + this.event.getMessage().substring(AACCommandExecutor.getPlugin(this.executor).messages.getMessage("prefix_to_speak").length()) + ); + } + } + + private static class ReloadPluginTask implements Runnable { + final AACCommandExecutor executor; + + ReloadPluginTask(AACCommandExecutor aacCommandExecutor) { + this.executor = aacCommandExecutor; + } + + @Override + public void run() { + AACCommandExecutor.getPlugin(this.executor).disable(); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/CombatLogoutListener.java b/src/main/java/me/konsolas/aac/components/CombatLogoutListener.java new file mode 100644 index 0000000..43c8090 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/CombatLogoutListener.java @@ -0,0 +1,97 @@ +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.DamageCause; +import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.plugin.java.JavaPlugin; + +public class CombatLogoutListener implements Listener { + private int combatTicks = 50; + private boolean killCombatLoggers = true; + private ExpiringMap lastOpponents; + private List disconnectingPlayers = new ArrayList<>(); + private ExpiringMap recentlyJoinedPlayers; + private Map lastDamageCauses = new HashMap<>(); + private JavaPlugin plugin; + + public CombatLogoutListener(JavaPlugin javaPlugin) { + this.plugin = javaPlugin; + this.combatTicks = this.plugin.getConfig().getInt("combat_time", this.combatTicks); + this.killCombatLoggers = this.plugin.getConfig().getBoolean("kill_loggers", this.killCombatLoggers); + this.lastOpponents = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).expiration(this.combatTicks * 50, TimeUnit.MILLISECONDS).build(); + this.recentlyJoinedPlayers = 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.lastOpponents.put(event.getDamager().getUniqueId(), event.getEntity().getUniqueId()); + this.lastOpponents.resetExpiration(event.getDamager().getUniqueId()); + } + + if (event.getEntity().getType() == EntityType.PLAYER) { + this.lastOpponents.put(event.getEntity().getUniqueId(), event.getDamager().getUniqueId()); + this.lastOpponents.resetExpiration(event.getEntity().getUniqueId()); + } + } + + @EventHandler + public synchronized void onEntityDamage(EntityDamageEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER) { + ExpiringMap expiringMap = this.recentlyJoinedPlayers; + UUID uuid = event.getEntity().getUniqueId(); + boolean flag = true; + expiringMap.put(uuid, flag); + this.recentlyJoinedPlayers.resetExpiration(event.getEntity().getUniqueId()); + this.lastDamageCauses.put(event.getEntity().getUniqueId(), event.getCause()); + } + } + + public boolean isInCombat(Player player) { + return this.lastOpponents.containsKey(player.getUniqueId()); + } + + public synchronized boolean hasRecentDamage(Player player) { + return this.recentlyJoinedPlayers.containsKey(player.getUniqueId()); + } + + public synchronized DamageCause getLastDamageCause(Player player) { + return this.lastDamageCauses.get(player.getUniqueId()); + } + + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event) { + if (this.killCombatLoggers && this.lastOpponents.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.disconnectingPlayers.add(event.getPlayer().getUniqueId()); + this.lastOpponents.remove(event.getPlayer().getUniqueId()); + } + } + + @EventHandler + public void onPlayerJoin(PlayerJoinEvent event) { + if (this.killCombatLoggers && this.disconnectingPlayers.contains(event.getPlayer().getUniqueId())) { + event.getPlayer().sendMessage(AAC.messagePrefix + ((AAC)this.plugin).messages.getMessage("killed_for_logging")); + } + + this.disconnectingPlayers.remove(event.getPlayer().getUniqueId()); + } +} diff --git a/src/main/java/me/konsolas/aac/components/MovementEventDispatcher.java b/src/main/java/me/konsolas/aac/components/MovementEventDispatcher.java new file mode 100644 index 0000000..314f970 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/MovementEventDispatcher.java @@ -0,0 +1,204 @@ +package me.konsolas.aac.components; + +import java.util.HashSet; +import java.util.Map.Entry; +import java.util.Map; +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 me.konsolas.aac.detectors.movement.Glide; +import me.konsolas.aac.detectors.movement.Speed; +import me.konsolas.aac.util.blocks.MovementObstacleChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +import org.bukkit.Bukkit; +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.TeleportCause; +import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.event.player.PlayerToggleFlightEvent; +import org.bukkit.event.world.WorldUnloadEvent; + +public class MovementEventDispatcher implements Listener, MoveListener { + private AAC plugin; + private final Map safeLocations = new ConcurrentHashMap<>(); + private final Map lastMoveEvents = new ConcurrentHashMap<>(); + private final Map exemptDetectors = new ConcurrentHashMap<>(); + + public MovementEventDispatcher(AAC plugin) { + this.plugin = plugin; + } + + public void setTeleportExempt(Detector detector, Player player) { + this.exemptDetectors.put(player.getUniqueId(), detector); + } + + public void clearTeleportExempt(Player player) { + this.exemptDetectors.remove(player.getUniqueId()); + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.HIGHEST) + public void onPlayerTeleport(PlayerTeleportEvent event) { + if (this.exemptDetectors.containsKey(event.getPlayer().getUniqueId()) && event.getCause() == TeleportCause.UNKNOWN) { + if (this.exemptDetectors.get(event.getPlayer().getUniqueId()) instanceof Speed || this.exemptDetectors.get(event.getPlayer().getUniqueId()) instanceof Glide) { + this.safeLocations.remove(event.getPlayer().getUniqueId()); + } + + this.exemptDetectors.remove(event.getPlayer().getUniqueId()); + } else { + if (event.getTo().equals(event.getFrom()) && event.getCause() == TeleportCause.UNKNOWN) { + return; + } + + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getTo().clone()); + } + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.MONITOR) + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.safeLocations.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(ignoreCancelled = false, priority = EventPriority.MONITOR) + public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { + this.safeLocations.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin, new DeferredTeleport(this, event), 40L); + } + + public Detector getTeleportExempt(Player player) { + return this.exemptDetectors.get(player.getUniqueId()); + } + + private void updateSafeOnGround(PlayerMoveEvent event, RelativeBlockCache relativeBlockCache) { + if (MovementObstacleChecks.isPlayerUnobstructed(relativeBlockCache)) { + if (this.safeLocations.containsKey(event.getPlayer().getUniqueId())) { + if (event.getFrom().getWorld() != this.safeLocations.get(event.getPlayer().getUniqueId()).getWorld() + || event.getFrom().distanceSquared(this.safeLocations.get(event.getPlayer().getUniqueId())) > 3.0 + || event.getFrom().getY() - this.safeLocations.get(event.getPlayer().getUniqueId()).getY() > 0.2) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } else if (MovementObstacleChecks.isFootPosClear(relativeBlockCache)) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } + } else { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } + } + } + + private void updateSafeOnApex(PlayerMoveEvent event, RelativeBlockCache relativeBlockCache) { + if (this.lastMoveEvents.containsKey(event.getPlayer().getUniqueId())) { + PlayerMoveEvent event2 = this.lastMoveEvents.get(event.getPlayer().getUniqueId()); + double y = event2.getTo().getY() - event2.getFrom().getY(); + double y2 = event.getTo().getY() - event.getFrom().getY(); + if (y < 0.0 && y2 > 0.0 && MovementObstacleChecks.isPlayerUnobstructed(relativeBlockCache)) { + if (this.safeLocations.containsKey(event.getPlayer().getUniqueId())) { + if (event.getFrom().distanceSquared(this.safeLocations.get(event.getPlayer().getUniqueId())) > 3.0) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } else if (MovementObstacleChecks.isFootPosClear(relativeBlockCache)) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } + } else { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getFrom().clone()); + } + } + } + } + + private void updateSafeAirborne(PlayerMoveEvent event, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (this.safeLocations.containsKey(event.getPlayer().getUniqueId())) { + if (event.getTo().getY() < this.safeLocations.get(event.getPlayer().getUniqueId()).getY() + && Math.abs(event.getFrom().getY() - event.getTo().getY()) < 3.0 + && this.safeLocations.get(event.getPlayer().getUniqueId()).distance(event.getTo()) < 5.0) { + if (MovementObstacleChecks.isPlayerUnobstructed(relativeBlockCache2)) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getTo().clone()); + } + + return; + } + + this.lastMoveEvents.put(event.getPlayer().getUniqueId(), event); + } else if (MovementObstacleChecks.isPlayerUnobstructed(relativeBlockCache)) { + if (this.safeLocations.containsKey(event.getPlayer().getUniqueId())) { + if (event.getFrom().getWorld() != this.safeLocations.get(event.getPlayer().getUniqueId()).getWorld() + || event.getFrom().distanceSquared(this.safeLocations.get(event.getPlayer().getUniqueId())) > 3.0) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } else if (MovementObstacleChecks.isFootPosClear(relativeBlockCache)) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + } else { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + } + } + + public Location getSafeLocation(Player player) { + return this.safeLocations.get(player.getUniqueId()) != null ? this.safeLocations.get(player.getUniqueId()) : player.getLocation(); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (flag && flag2) { + this.updateSafeOnGround(event, relativeBlockCache); + } else { + if (flag) { + this.updateSafeOnApex(event, relativeBlockCache); + } else if (flag2) { + this.updateSafeAirborne(event, relativeBlockCache, relativeBlockCache2); + } + } + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + if (event.getPlayer().isFlying()) { + this.safeLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + + return true; + } + + @EventHandler + public void onWorldUnload(WorldUnloadEvent event) { + HashSet set = new HashSet<>(); + + for (Entry entry : this.safeLocations.entrySet()) { + if (((Location)entry.getValue()).getWorld().equals(event.getWorld())) { + set.add(entry.getKey()); + } + } + + for (UUID uuid : set) { + this.safeLocations.remove(uuid); + } + } + + static Map getSafeLocations(MovementEventDispatcher movementEventDispatcher) { + return movementEventDispatcher.safeLocations; + } + + private static class DeferredTeleport implements Runnable { + final PlayerToggleFlightEvent event; + final MovementEventDispatcher dispatcher; + + DeferredTeleport(MovementEventDispatcher movementEventDispatcher, PlayerToggleFlightEvent event) { + this.dispatcher = movementEventDispatcher; + this.event = event; + } + + @Override + public void run() { + MovementEventDispatcher.getSafeLocations(this.dispatcher).put(this.event.getPlayer().getUniqueId(), this.event.getPlayer().getLocation()); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/PlayerState.java b/src/main/java/me/konsolas/aac/components/PlayerState.java new file mode 100644 index 0000000..3157e23 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/PlayerState.java @@ -0,0 +1,270 @@ +package me.konsolas.aac.components; + +import com.comphenix.protocol.PacketType.Play.Server; +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 java.util.HashMap; +import java.util.HashSet; +import java.util.Map.Entry; +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.internal.Destroyable; +import me.konsolas.aac.internal.packetwrapper.WrapperPlayServerEntityVelocity; +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.RegainReason; +import org.bukkit.event.entity.EntityRegainHealthEvent; +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.PlayerTeleportEvent; +import org.bukkit.event.player.PlayerVelocityEvent; +import org.bukkit.event.world.WorldUnloadEvent; +import org.bukkit.plugin.Plugin; +import org.bukkit.util.Vector; + +public class PlayerState implements Listener, Destroyable { + private AAC plugin; + private HashSet recentLandings = new HashSet<>(); + private HashSet recentTakeoffs = new HashSet<>(); + private Map lastArmSwingTimes = new HashMap<>(); + private Map lastRegenerationTimes = new HashMap<>(); + private Map lastRegenerationReasons = new HashMap<>(); + private Map lastInteractionTimes = new HashMap<>(); + private ConcurrentMap activeVelocities = new ConcurrentHashMap<>(32, 0.9F, 1); + private ConcurrentMap lastVelocityTimes = new ConcurrentHashMap<>(32, 0.9F, 1); + private final ConcurrentMap lastHorizontalVelocities = new ConcurrentHashMap<>(32, 0.9F, 1); + private final ConcurrentMap lastVelocityPacketTimes = new ConcurrentHashMap<>(32, 0.9F, 1); + private PacketListener velocityPacketListener; + private Map previousLocations = new HashMap<>(); + + public PlayerState(AAC plugin) { + this.plugin = plugin; + this.velocityPacketListener = new VelocityPacketListener(this, this.plugin, Server.ENTITY_VELOCITY); + ProtocolLibrary.getProtocolManager().addPacketListener(this.velocityPacketListener); + } + + public void recordMoveState(PlayerMoveEvent event, boolean flag, boolean flag2) { + if (flag && !flag2) { + this.recentTakeoffs.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearTakeoffTask(this, event), 3L); + } else if (!flag && flag2) { + this.recentLandings.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearLandingTask(this, event), 3L); + } + + if (this.activeVelocities.containsKey(event.getPlayer().getUniqueId()) && System.currentTimeMillis() - this.getLastVelocityTime(event.getPlayer()) > 90L) { + if (flag2 && flag) { + this.activeVelocities.remove(event.getPlayer().getUniqueId()); + } else if (event.getPlayer().getVelocity().getY() == 0.0 + && event.getPlayer().getVelocity().getX() == 0.0 + && event.getPlayer().getVelocity().getZ() == 0.0) { + this.activeVelocities.remove(event.getPlayer().getUniqueId()); + } + } + + this.previousLocations.put(event.getPlayer().getUniqueId(), event.getFrom()); + } + + @EventHandler + public void onPlayerVelocity(PlayerVelocityEvent event) { + if (this.plugin.movementDispatcher.getTeleportExempt(event.getPlayer()) == null) { + 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.lastRegenerationTimes.put(event.getEntity().getUniqueId(), System.currentTimeMillis()); + this.lastRegenerationReasons.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) { + HashSet set = new HashSet<>(); + + for (Entry entry : this.previousLocations.entrySet()) { + if (((Location)entry.getValue()).getWorld().equals(event.getWorld())) { + set.add(entry.getKey()); + } + } + + for (UUID uuid : set) { + this.previousLocations.remove(uuid); + } + } + + @EventHandler + public void onPlayerTeleport(PlayerTeleportEvent event) { + this.lastRegenerationTimes.put(event.getPlayer().getUniqueId(), 0L); + } + + public void clearRecentTakeoff(Player player) { + this.recentTakeoffs.remove(player.getUniqueId()); + } + + public boolean hasRecentlyLanded(Player player) { + return this.recentLandings.contains(player.getUniqueId()); + } + + public boolean hasRecentlyTakenOff(Player player) { + return this.recentTakeoffs.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) { + return this.lastVelocityTimes.get(player.getUniqueId()) != null ? this.lastVelocityTimes.get(player.getUniqueId()) : 0L; + } + + public long getLastArmSwingTime(Player player) { + try { + return this.lastArmSwingTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0L; + } + } + + public long getLastRegenerationTime(Player player) { + try { + return this.lastRegenerationTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0L; + } + } + + public RegainReason getLastRegenerationReason(Player player) { + try { + return this.lastRegenerationReasons.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; + } + } + + public synchronized double getLastHorizontalVelocity(Player player) { + try { + return this.lastHorizontalVelocities.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0.0; + } + } + + public synchronized long getLastVelocityPacketTime(Player player) { + try { + return this.lastVelocityPacketTimes.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return Long.MIN_VALUE; + } + } + + @Override + public void destroy() { + ProtocolLibrary.getProtocolManager().removePacketListener(this.velocityPacketListener); + } + + static ConcurrentMap getLastHorizontalVelocities(PlayerState playerState) { + return playerState.lastHorizontalVelocities; + } + + static ConcurrentMap getLastVelocityPacketTimes(PlayerState playerState) { + return playerState.lastVelocityPacketTimes; + } + + static HashSet getRecentTakeoffs(PlayerState playerState) { + return playerState.recentTakeoffs; + } + + static HashSet getRecentLandings(PlayerState playerState) { + return playerState.recentLandings; + } + + private static class VelocityPacketListener extends PacketAdapter { + final PlayerState playerState; + + VelocityPacketListener(PlayerState playerState, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.playerState = playerState; + } + + public void onPacketSending(PacketEvent event) { + WrapperPlayServerEntityVelocity wrapperPlayServerEntityVelocity = new WrapperPlayServerEntityVelocity(event.getPacket()); + Vector vector = wrapperPlayServerEntityVelocity.getVelocity(); + double x = Math.sqrt(Math.pow(vector.getX(), 2.0) + Math.pow(vector.getZ(), 2.0)); + if (wrapperPlayServerEntityVelocity.getEntityID() == event.getPlayer().getEntityId()) { + PlayerState.getLastHorizontalVelocities(this.playerState).put(event.getPlayer().getUniqueId(), x); + PlayerState.getLastVelocityPacketTimes(this.playerState).put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + } + } + + private static class ClearTakeoffTask implements Runnable { + final PlayerMoveEvent event; + final PlayerState playerState; + + ClearTakeoffTask(PlayerState playerState, PlayerMoveEvent event) { + this.playerState = playerState; + this.event = event; + } + + @Override + public void run() { + PlayerState.getRecentTakeoffs(this.playerState).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class ClearLandingTask implements Runnable { + final PlayerMoveEvent event; + final PlayerState playerState; + + ClearLandingTask(PlayerState playerState, PlayerMoveEvent event) { + this.playerState = playerState; + this.event = event; + } + + @Override + public void run() { + PlayerState.getRecentLandings(this.playerState).remove(this.event.getPlayer().getUniqueId()); + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/Punisher.java b/src/main/java/me/konsolas/aac/components/Punisher.java new file mode 100644 index 0000000..783dada --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/Punisher.java @@ -0,0 +1,352 @@ +package me.konsolas.aac.components; + +import java.io.File; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +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.Result; +import org.bukkit.event.player.PlayerLoginEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.scheduler.BukkitTask; + +public class Punisher implements Listener, Destroyable { + public Map kickCounts = new HashMap<>(); + private AAC plugin; + private BukkitTask scanTask; + private int banThreshold = 5; + private int kickTicks = 200; + private List relogBlockedPlayers = new ArrayList<>(); + private Map bannedPlayers = new HashMap<>(); + private Map> thresholdCommands = new HashMap<>(); + private FileConfiguration bannedConfig = null; + private File bannedFile = null; + + public Punisher(AAC plugin) { + this.plugin = plugin; + this.banThreshold = this.plugin.getConfig().getInt("ban_threshold", this.banThreshold); + this.kickTicks = this.plugin.getConfig().getInt("kick_ticks", this.kickTicks); + this.saveDefaultBannedConfig(); + + for (String str : this.getBannedConfig().getStringList("banned")) { + String[] strArray = str.split(":"); + String str2 = strArray[0]; + String str3 = strArray[1]; + this.bannedPlayers.put(str2, UUID.fromString(str3)); + } + + for (HackType hackType : HackType.values()) { + ArrayList list = 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 str4 : section.getKeys(false)) { + Object obj = section.get(str4); + + int i; + try { + i = Integer.parseInt(str4); + } catch (NumberFormatException ex) { + this.plugin.getLogger().warning("(Punisher) WARN: Failed to parse integer threshold: " + ex.getMessage()); + continue; + } + + if (obj != null && obj instanceof String) { + ThresholdCommand thresholdCommand = new ThresholdCommand(this, i, section.getString(str4)); + list.add(thresholdCommand); + } else { + List list2 = section.getStringList(str4); + if (!list2.isEmpty()) { + for (String str5 : list2) { + ThresholdCommand thresholdCommand2 = new ThresholdCommand(this, i, str5); + list.add(thresholdCommand2); + } + } else { + this.plugin.getLogger().warning("(Punisher) WARN: Failed to get multiple commands for check " + hackType + ", threshold " + i); + } + } + } + + this.thresholdCommands.put(hackType, list); + } + } + + this.scanTask = Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(this.plugin, new PunishmentScanTask(this), 20L, 17L); + } + + public void saveBans() { + ArrayList list = new ArrayList(); + + for (UUID uuid : this.bannedPlayers.values()) { + list.add(Bukkit.getOfflinePlayer(uuid).getName() + ":" + uuid); + } + + this.getBannedConfig().set("banned", list); + this.saveBannedConfig(); + } + + public void recordKick(Player player) { + if (this.kickCounts.containsKey(player.getUniqueId())) { + this.kickCounts.put(player.getUniqueId(), this.kickCounts.get(player.getUniqueId()) + 1); + } else { + this.kickCounts.put(player.getUniqueId(), 1); + } + + if (this.kickCounts.get(player.getUniqueId()) > this.banThreshold && this.banThreshold != -1) { + this.kickCounts.remove(player.getUniqueId()); + + for (String str : this.plugin.getConfig().getString("ban_command").split(";")) { + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), this.formatCommand(str, player)); + } + } + } + + public void banPlayer(Player player) { + this.plugin.verboseLogger.logViolation(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 str, Player player) { + str = str.replace("{player}", player.getName()); + str = str.replace("{ping}", Ping.getPing(player) + ""); + return str.replace("{tps}", Math.round(TPS.getTps() * 100.0) / 100.0 + ""); + } + + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event) { + this.relogBlockedPlayers.add(event.getPlayer().getUniqueId()); + UUID uuid = event.getPlayer().getUniqueId(); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireRelogBlockTask(this, uuid), this.kickTicks); + } + + @EventHandler + public void onPlayerLogin(PlayerLoginEvent event) { + if (!event.getPlayer().hasPermission("AAC.bypass")) { + if (this.relogBlockedPlayers.contains(event.getPlayer().getUniqueId())) { + event.disallow(Result.KICK_OTHER, AAC.messagePrefix + this.plugin.messages.getMessage("relog_message")); + } + + if (!this.kickCounts.containsKey(event.getPlayer().getUniqueId())) { + this.kickCounts.put(event.getPlayer().getUniqueId(), 0); + } + + if (this.bannedPlayers.values().contains(event.getPlayer().getUniqueId())) { + event.disallow(Result.KICK_BANNED, AAC.messagePrefix + this.plugin.messages.getMessage("ban_message")); + } + } + } + + public boolean isBanned(String str) { + return this.bannedPlayers.containsKey(str); + } + + public void unbanPlayer(String str) { + this.kickCounts.put(this.bannedPlayers.get(str), 0); + this.bannedPlayers.remove(str); + } + + public FileConfiguration getBannedConfig() { + if (this.bannedConfig == null) { + this.reloadBannedConfig(); + } + + return this.bannedConfig; + } + + public void reloadBannedConfig() { + if (this.bannedFile == null) { + this.bannedFile = new File(this.plugin.getDataFolder(), "banned.yml"); + } + + this.bannedConfig = YamlConfiguration.loadConfiguration(this.bannedFile); + InputStreamReader inputStreamReader = null; + + try { + inputStreamReader = new InputStreamReader(this.plugin.getResource("banned.yml"), "UTF8"); + } catch (UnsupportedEncodingException ex) { + ex.printStackTrace(); + } + + if (inputStreamReader != null) { + YamlConfiguration config = YamlConfiguration.loadConfiguration(inputStreamReader); + this.bannedConfig.setDefaults(config); + } + } + + public void saveDefaultBannedConfig() { + if (this.bannedFile == null) { + this.bannedFile = new File(this.plugin.getDataFolder(), "banned.yml"); + } + + if (!this.bannedFile.exists()) { + this.plugin.saveResource("banned.yml", false); + } + } + + public void saveBannedConfig() { + if (this.bannedConfig != null && this.bannedFile != null) { + try { + this.getBannedConfig().save(this.bannedFile); + } catch (IOException ex) { + this.plugin.getLogger().log(Level.SEVERE, "Could not save config to " + this.bannedFile, ex); + } + } + } + + @Override + public void destroy() { + this.scanTask.cancel(); + this.saveBannedConfig(); + } + + static AAC getPlugin(Punisher punisher) { + return punisher.plugin; + } + + static Map> getThresholdCommands(Punisher punisher) { + return punisher.thresholdCommands; + } + + static String formatCommand(Punisher punisher, String str, Player player) { + return punisher.formatCommand(str, player); + } + + static List getRelogBlockedPlayers(Punisher punisher) { + return punisher.relogBlockedPlayers; + } + + private static class ExecuteThresholdCommandTask implements Runnable { + final HackType hackType; + final ThresholdCommand thresholdCommand; + final Player player; + final PunishmentScanTask scanTask; + + ExecuteThresholdCommandTask(PunishmentScanTask punishmentScanTask, HackType hackType, ThresholdCommand thresholdCommand, Player player) { + this.scanTask = punishmentScanTask; + this.hackType = hackType; + this.thresholdCommand = thresholdCommand; + this.player = player; + } + + @Override + public void run() { + Punisher.getPlugin(this.scanTask.punisher) + .verboseLogger + .logViolation("(Punisher) ->" + this.hackType.toString() + ": Dispatching command " + Punisher.formatCommand(this.scanTask.punisher, this.thresholdCommand.getCommand(), this.player)); + this.thresholdCommand.executeCommand(this.player, this.hackType); + } + } + + private static class PunishmentScanTask implements Runnable { + final Punisher punisher; + + PunishmentScanTask(Punisher punisher) { + this.punisher = punisher; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + for (HackType hackType : HackType.values()) { + if (Punisher.getPlugin(this.punisher).checkManager.isCheckEnabled(hackType)) { + int value = Punisher.getPlugin(this.punisher).checkManager.getDetector(hackType).getViolationLevel(player); + if (Punisher.getThresholdCommands(this.punisher).get(hackType) != null) { + for (ThresholdCommand thresholdCommand : Punisher.getThresholdCommands(this.punisher).get(hackType)) { + if (thresholdCommand.crossedThreshold(player, value)) { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Punisher.getPlugin(this.punisher), new ExecuteThresholdCommandTask(this, hackType, thresholdCommand, player)); + } + } + } + } + } + } + } + } + + private static class ExpireRelogBlockTask implements Runnable { + final UUID playerId; + final Punisher punisher; + + ExpireRelogBlockTask(Punisher punisher, UUID uuid) { + this.punisher = punisher; + this.playerId = uuid; + } + + @Override + public void run() { + Punisher.getRelogBlockedPlayers(this.punisher).remove(this.playerId); + } + } + + private static class ThresholdCommand { + private final int threshold; + private final String command; + private Map armedByPlayer; + final Punisher punisher; + + public ThresholdCommand(Punisher punisher, int i, String str) { + this.punisher = punisher; + this.armedByPlayer = new HashMap<>(); + this.threshold = i; + this.command = str; + } + + public void executeCommand(Player player, HackType hackType) { + PlayerViolationCommandEvent event = new PlayerViolationCommandEvent(player, hackType, this.command); + Bukkit.getServer().getPluginManager().callEvent(event); + if (!event.isCancelled()) { + Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), Punisher.formatCommand(this.punisher, event.getCommand(), player)); + } + } + + public boolean crossedThreshold(Player player, int i) { + if (!this.armedByPlayer.containsKey(player.getUniqueId())) { + Map map = this.armedByPlayer; + UUID uuid = player.getUniqueId(); + boolean flag = true; + map.put(uuid, flag); + } + + if (this.armedByPlayer.get(player.getUniqueId())) { + if (i > this.threshold) { + Map map2 = this.armedByPlayer; + UUID uuid2 = player.getUniqueId(); + boolean flag2 = false; + map2.put(uuid2, flag2); + return true; + } + } else if (i < this.threshold) { + Map map3 = this.armedByPlayer; + UUID uuid3 = player.getUniqueId(); + boolean flag3 = true; + map3.put(uuid3, flag3); + } + + return false; + } + + public String getCommand() { + return this.command; + } + } +} 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..cb4f4f3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/TPSManager.java @@ -0,0 +1,71 @@ +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 AAC plugin; + private final Set configuredChecks = new HashSet<>(); + + public TPSManager(AAC plugin) { + this.plugin = plugin; + + for (HackType hackType : HackType.values()) { + if (this.plugin.getConfig().getBoolean(hackType.getName() + ".enabled")) { + this.configuredChecks.add(hackType); + } + } + + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new TpsMonitorTask(this), 20L, 13L); + } + + static Set getConfiguredChecks(TPSManager tpsManager) { + return tpsManager.configuredChecks; + } + + static AAC getPlugin(TPSManager tpsManager) { + return tpsManager.plugin; + } + + private static class TpsMonitorTask implements Runnable { + final TPSManager tpsManager; + + TpsMonitorTask(TPSManager tpsManager) { + this.tpsManager = tpsManager; + } + + @Override + public void run() { + double d = TPS.getTps(); + if (d > 18.5) { + for (HackType hackType : TPSManager.getConfiguredChecks(this.tpsManager)) { + TPSManager.getPlugin(this.tpsManager).checkManager.enableCheck(hackType, true); + } + } else { + TPSManager.getPlugin(this.tpsManager).verboseLogger.logViolation("(TPSManager) TPS dropped to " + d); + if (d < 17.5) { + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.BADPACKETS, true); + } + + if (d < 17.0) { + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.FIGHTSPEED, true); + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.REACH, true); + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.ANGLE, true); + } else if (d < 16.0) { + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.NORMALMOVEMENTS, true); + } else if (d < 13.0) { + TPSManager.getPlugin(this.tpsManager).verboseLogger.logViolation("(TPSManager) TPS is critical"); + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.FLY, true); + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.GLIDE, true); + } else if (d < 10.0) { + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.FORCEFIELD, true); + TPSManager.getPlugin(this.tpsManager).checkManager.disableCheck(HackType.SPEED, true); + } + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/components/VerboseLogger.java b/src/main/java/me/konsolas/aac/components/VerboseLogger.java new file mode 100644 index 0000000..636c10e --- /dev/null +++ b/src/main/java/me/konsolas/aac/components/VerboseLogger.java @@ -0,0 +1,227 @@ +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 java.util.concurrent.BlockingQueue; +import java.util.concurrent.LinkedBlockingQueue; +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 VerboseLogger { + public List verboseExclusions = new ArrayList<>(); + SimpleDateFormat timestampFormat = new SimpleDateFormat("HH:mm:ss.SSS"); + private AAC plugin; + private FileWriter debugFileWriter; + private PrintWriter debugWriter; + private boolean logToConsole = true; + private boolean verboseEnabled = false; + private Thread logWriterThread; + private Thread debugWriterThread; + private BlockingQueue messageQueue = new LinkedBlockingQueue<>(); + + public VerboseLogger(AAC plugin) { + this.plugin = plugin; + this.logToConsole = this.plugin.getConfig().getBoolean("log_console", this.logToConsole); + this.verboseEnabled = this.plugin.getConfig().getBoolean("verbose", this.verboseEnabled); + this.logWriterThread = new LogWriterThread(this, "AAC-LogWriter"); + } + + public void logViolation(String str) { + if (this.verboseEnabled) { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (player.hasPermission("AAC.verbose") && !this.verboseExclusions.contains(player.getUniqueId())) { + player.sendMessage(" * §4[AAC] §7" + str); + } + } + } + + if (this.logToConsole && this.verboseEnabled) { + Bukkit.getConsoleSender().sendMessage(" * §4[AAC] §7" + str); + } + + this.plugin.writeLog(str); + if (this.plugin.debugPlayer != null && str.startsWith(this.plugin.debugPlayer.getName())) { + this.writeDebugLog(str); + } + } + + public void logPlayerDebug(Player player, String str) { + if (this.plugin.debugPlayer != null && this.plugin.debugPlayer.getUniqueId().equals(player.getUniqueId())) { + this.writeDebugLog(str); + } + } + + public String startPlayerDebug(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 bufferedReader = new BufferedReader(new FileReader(new File(this.plugin.getDataFolder(), "config.yml"))); + Throwable throwable = null; + + while (true) { + boolean flag = false; + + try { + flag = true; + String str; + if ((str = bufferedReader.readLine()) == null) { + flag = false; + break; + } + + if (str.length() > 3 && str.charAt(0) != '#' && str.charAt(3) != '#') { + this.debugWriter.println(str); + } + } catch (Throwable ex2) { + throwable = ex2; + throw ex2; + } finally { + if (flag) { + if (bufferedReader != null) { + if (throwable != null) { + try { + bufferedReader.close(); + } catch (Throwable ex3) { + Throwable throwable2 = throwable; + throwable2.addSuppressed(ex3); + } + } else { + bufferedReader.close(); + } + } + } + } + } + + if (bufferedReader != null) { + bufferedReader.close(); + } + } catch (IOException ex4) { + 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 stopPlayerDebug() { + if (this.plugin.debugPlayer != null) { + this.writeDebugLog("--- END DEBUG DATA ---"); + this.plugin.debugPlayer = null; + this.closeDebugLog(); + } + } + + private void openDebugLog(String str) throws IOException { + try { + File file = this.plugin.getDataFolder(); + if (!file.exists()) { + file.mkdir(); + } + + File file2 = new File(file, str + ".debug.log"); + if (!file2.exists()) { + file2.createNewFile(); + } else { + file2.delete(); + file2.createNewFile(); + } + + this.debugFileWriter = new FileWriter(file2, true); + this.debugWriter = new PrintWriter(this.debugFileWriter); + } catch (IOException ex) { + throw ex; + } + } + + private void closeDebugLog() { + try { + this.logWriterThread.interrupt(); + 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 str) { + if (this.debugWriter != null) { + Date date = new Date(); + this.debugWriter + .println( + "at " + + this.timestampFormat.format(date) + + ": " + + str + + " [ping:" + + Ping.getPing(this.plugin.debugPlayer) + + " tps:" + + Math.round(TPS.getTps() * 1000.0) / 1000.0 + + "]" + ); + this.debugWriter.flush(); + } + } + + static BlockingQueue getMessageQueue(VerboseLogger verboseLogger) { + return verboseLogger.messageQueue; + } + + static AAC getPlugin(VerboseLogger verboseLogger) { + return verboseLogger.plugin; + } + + private static class LogWriterThread extends Thread { + final VerboseLogger logger; + + LogWriterThread(VerboseLogger verboseLogger, String str) { + super(str); + this.logger = verboseLogger; + } + + @Override + public void run() { + try { + while (true) { + String str = (String)VerboseLogger.getMessageQueue(this.logger).take(); + VerboseLogger.getPlugin(this.logger).writeLog(str); + } + } catch (InterruptedException ex) { + VerboseLogger.getPlugin(this.logger).getLogger().info("Thread AAC-LogWriter exiting"); + } + } + } +} 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..6838515 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/Detector.java @@ -0,0 +1,150 @@ +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 AAC getPlugin() { + return this.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 i : this.scheduledTaskIds) { + Bukkit.getServer().getScheduler().cancelTask(i); + } + + for (PacketListener packetListener : this.packetListeners) { + ProtocolLibrary.getProtocolManager().removePacketListener(packetListener); + } + } + + public boolean recordViolation(UUID uuid, int i, HackType hackType, String str) { + Player player = Bukkit.getPlayer(uuid); + PlayerViolationEvent event = new PlayerViolationEvent(player, hackType, this.getRecentViolationCount(Bukkit.getPlayer(uuid)), str); + Bukkit.getServer().getPluginManager().callEvent(event); + if (!event.isCancelled()) { + if (!this.recentViolationCounts.containsKey(uuid)) { + this.recentViolationCounts.put(uuid, 1); + } + + if (!this.totalViolationCounts.containsKey(uuid)) { + this.totalViolationCounts.put(uuid, 1); + } + + if (!this.violationLevels.containsKey(uuid)) { + this.violationLevels.put(uuid, 1); + } + + this.violationLevels.put(uuid, this.violationLevels.get(uuid) + i); + this.recentViolationCounts.put(uuid, this.recentViolationCounts.get(uuid) + 1); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ExpireRecentViolationTask(this, uuid), 1200L); + this.totalViolationCounts.put(uuid, this.totalViolationCounts.get(uuid) + 1); + this.plugin + .verboseLogger + .logViolation(str + " [ping:" + Ping.getPing(player) + " tps:" + Math.round(TPS.getTps() * 100.0) / 100.0 + "] VL:" + this.violationLevels.get(uuid)); + return true; + } else { + return false; + } + } + + public void decreaseViolationLevel(UUID uuid, int i) { + if (this.violationLevels.containsKey(uuid)) { + this.violationLevels.put(uuid, this.violationLevels.get(uuid) - i < 0 ? 0 : this.violationLevels.get(uuid) - i); + } else { + this.violationLevels.put(uuid, 0); + } + } + + public void setViolationLevel(Player player, int i) { + this.violationLevels.put(player.getUniqueId(), i); + } + + 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 setCurrentTick(long ticks) { + this.currentTick = ticks; + } + + private static class ExpireRecentViolationTask implements Runnable { + final UUID playerId; + final Detector detector; + + ExpireRecentViolationTask(Detector detector, UUID uuid) { + this.detector = detector; + this.playerId = uuid; + } + + @Override + public void run() { + this.detector.recentViolationCounts.put(this.playerId, this.detector.recentViolationCounts.get(this.playerId) - 1 < 0 ? 0 : this.detector.recentViolationCounts.get(this.playerId) - 1); + } + } +} 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..bd5230f --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/MoveListener.java @@ -0,0 +1,10 @@ +package me.konsolas.aac.detectors; + +import me.konsolas.aac.util.blocks.RelativeBlockCache; +import org.bukkit.event.player.PlayerMoveEvent; + +public interface MoveListener { + void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2); + + boolean shouldProcessPlayerMove(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..06f4211 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/chat/Spam.java @@ -0,0 +1,171 @@ +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 ConcurrentMap recentMessageCounts = new ConcurrentHashMap<>(); + private ExpiringMap lastMessages; + private ExpiringMap flaggedMessages; + private ExpiringMap repeatWarnedPlayers; + private ExpiringMap chatCooldownPlayers; + 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 ResetMessageCountTask(this), 200L, 200L); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 200L, 300L); + this.lastMessages = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).expiration(10L, TimeUnit.SECONDS).build(); + this.flaggedMessages = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).expiration(5L, TimeUnit.SECONDS).build(); + this.repeatWarnedPlayers = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).expiration(10L, TimeUnit.SECONDS).build(); + this.chatCooldownPlayers = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.CREATED).expiration(this.chatSpeed * 50, TimeUnit.MILLISECONDS).build(); + } + + @EventHandler + public void onAsyncPlayerChat(AsyncPlayerChatEvent event) { + if (!this.plugin.checkManager.isPlayerExempt(event.getPlayer())) { + Player player = event.getPlayer(); + if (this.chatCooldownPlayers.containsKey(player.getUniqueId())) { + if (this.recordViolation(player.getUniqueId(), 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.recentMessageCounts.containsKey(player.getUniqueId())) { + this.recentMessageCounts.put(player.getUniqueId(), this.recentMessageCounts.get(player.getUniqueId()) + 1); + if (this.recentMessageCounts.get(player.getUniqueId()) == this.messageLimit) { + if (this.repeatWarnedPlayers.containsKey(player.getUniqueId())) { + if (this.recordViolation(player.getUniqueId(), 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(player.getUniqueId(), 4, HackType.SPAM, player.getName() + " failed Spam: sent too many messages")) { + this.repeatWarnedPlayers.put(player.getUniqueId(), true); + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_slow_chat")); + } + + return; + } + } + + String str = event.getMessage(); + + for (String str2 : this.whitelist) { + if (isSimilarMessage(str2, str)) { + return; + } + } + + if (this.lastMessages.containsKey(player.getUniqueId()) && isSimilarMessage(str, this.lastMessages.get(player.getUniqueId()))) { + if (this.repeatWarnedPlayers.containsKey(player.getUniqueId())) { + if (this.recordViolation(player.getUniqueId(), 4, HackType.SPAM, player.getName() + " failed Spam: repeated last message")) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat")); + } + } else if (this.recordViolation(player.getUniqueId(), 2, HackType.SPAM, player.getName() + " failed Spam: repeated last message")) { + this.repeatWarnedPlayers.put(player.getUniqueId(), true); + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat")); + } + } else { + for (String str3 : this.flaggedMessages.keySet()) { + if (isSimilarMessage(str, str3)) { + this.flaggedMessages.put(str, true); + if (this.repeatWarnedPlayers.containsKey(player.getUniqueId())) { + if (this.recordViolation( + player.getUniqueId(), 3, HackType.SPAM, player.getName() + " failed Spam: tried to repeat a suspicious message (" + str + ")" + )) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat_other")); + event.setCancelled(true); + } + } else if (this.recordViolation( + player.getUniqueId(), 2, HackType.SPAM, player.getName() + " failed Spam: tried to repeat a suspicious message (" + str + ")" + )) { + player.sendMessage(AAC.messagePrefix + this.plugin.messages.getMessage("spam_repeat_other")); + event.setCancelled(true); + this.repeatWarnedPlayers.put(player.getUniqueId(), true); + } + + return; + } + } + + for (String str4 : this.lastMessages.values()) { + if (isSimilarMessage(str, str4)) { + this.flaggedMessages.put(str, true); + } + } + + this.lastMessages.put(player.getUniqueId(), str); + this.chatCooldownPlayers.put(player.getUniqueId(), true); + } + } + } + } + + static ConcurrentMap getRecentMessageCounts(Spam spam) { + return spam.recentMessageCounts; + } + + + private static boolean isSimilarMessage(String str, String str2) { + if (str.equalsIgnoreCase(str2)) { + return true; + } else if (str.length() >= 3 && str2.length() >= 3) { + String str3 = str.toLowerCase().replaceAll("[^a-z]", ""); + String str4 = str2.toLowerCase().replaceAll("[^a-z]", ""); + return !str3.isEmpty() && !str4.isEmpty() && str3.equals(str4); + } else { + return false; + } + } + + private static class ResetMessageCountTask implements Runnable { + final Spam spam; + + ResetMessageCountTask(Spam spam) { + this.spam = spam; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!Spam.getRecentMessageCounts(this.spam).containsKey(player.getUniqueId())) { + Spam.getRecentMessageCounts(this.spam).put(player.getUniqueId(), 0); + } + + Spam.getRecentMessageCounts(this.spam).put(player.getUniqueId(), 0); + } + } + } + + private static class DecayViolationsTask implements Runnable { + final Spam spam; + + DecayViolationsTask(Spam spam) { + this.spam = spam; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.spam.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..a4f8bde --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Angle.java @@ -0,0 +1,87 @@ +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 calculateLookAlignment(Location location, Location location2) { + location.setY(1.0); + location2.setY(1.0); + Vector vector = location2.toVector().subtract(location.toVector()); + Location location3 = location.clone(); + location3.setPitch(0.0F); + Vector vector2 = location3.getDirection(); + return vector.normalize().dot(vector2); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getCause() != DamageCause.THORNS && event.getDamager().getType() == EntityType.PLAYER; + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + Player player = (Player)event.getDamager(); + Location location = player.getLocation(); + Location location2 = event.getEntity().getLocation(); + location.setY(1.0); + location2.setY(1.0); + double d = location.distance(location2); + if (!(d < this.minDist)) { + double d2 = calculateLookAlignment(location, location2); + if (event.getEntity().getType() == EntityType.PLAYER) { + this.plugin + .verboseLogger + .logPlayerDebug( + player, "(Angle) EntityDamageByEntityEvent dot[n:" + (1.0 - this.maxPlayerDiff) + ",m" + (1.0 + this.maxPlayerDiff) + ",r:" + d2 + "]" + ); + if (!NumberUtil.isWithinRange(d2, 1.0, this.maxPlayerDiff * 4.0 / d)) { + if (this.recordViolation( + player.getUniqueId(), 2, HackType.ANGLE, player.getName() + " failed Angle: tried to attack an entity out of his line of sight" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } else { + this.plugin + .verboseLogger + .logPlayerDebug(player, "(Angle) EntityDamageByEntityEvent dot[n:" + (1.0 - this.maxDiff) + ",m" + (1.0 + this.maxDiff) + ",r:" + d2 + "]"); + if (!NumberUtil.isWithinRange(d2, 1.0, this.maxDiff)) { + if (this.recordViolation( + player.getUniqueId(), 2, HackType.ANGLE, player.getName() + " failed Angle: tried to attack an entity out of his line of sight" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(player.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..e0986c3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/CombatImpossible.java @@ -0,0 +1,42 @@ +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.PlayerItemUseReflection; +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 player = (Player)event.getDamager(); + if (player.isDead() && this.cancelDead) { + if (this.recordViolation(player.getUniqueId(), 1, HackType.COMBATIMPOSSIBLE, player.getName() + " failed CombatImpossible: Tried to attack whilst dead")) { + event.setCancelled(true); + } + } else if (PlayerItemUseReflection.isUsingItem(player) + && this.cancelUsingItem + && this.recordViolation( + player.getUniqueId(), 1, HackType.COMBATIMPOSSIBLE, player.getName() + " failed CombatImpossible: Tried to attack whilst using an item" + )) { + event.setCancelled(true); + } + } +} diff --git a/src/main/java/me/konsolas/aac/detectors/combat/CombatTargetFilter.java b/src/main/java/me/konsolas/aac/detectors/combat/CombatTargetFilter.java new file mode 100644 index 0000000..e5c2e4d --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/CombatTargetFilter.java @@ -0,0 +1,23 @@ +package me.konsolas.aac.detectors.combat; + +import me.konsolas.aac.AAC; +import me.konsolas.aac.detectors.DamageListener; +import me.konsolas.aac.detectors.Detector; +import me.konsolas.aac.util.EntityTargetCategories; +import org.bukkit.entity.Player; +import org.bukkit.event.entity.EntityDamageByEntityEvent; + +public class CombatTargetFilter extends Detector implements DamageListener { + public CombatTargetFilter(AAC plugin) { + super(plugin); + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager() instanceof Player && EntityTargetCategories.isKillauraTarget(event.getEntityType()) && EntityTargetCategories.isReachTarget(event.getEntityType()); + } +} 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..f009453 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Criticals.java @@ -0,0 +1,81 @@ +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.blocks.BlockCollisionChecks; +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 player = (Player)event.getDamager(); + if (this.isCriticalCandidate(player)) { + this.plugin + .verboseLogger + .logPlayerDebug( + player, + "(Criticals) EntityDamageByEntityEvent critical location[r:" + + player.getLocation() + + "] velocity[r:" + + player.getVelocity() + + "] blockOn[r:" + + player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() + + "]" + ); + if (( + player.getLocation().getY() % 1.0 == 0.0 && BlockCollisionChecks.isSolidGroundBlock(player.getLocation().subtract(0.0, 1.0, 0.0).getBlock()) + || player.getLocation().getY() % 0.5 == 0.0 + && BlockCollisionChecks.isSlab(player.getLocation().getBlock().getType()) + && !this.plugin.checkManager.isPlayerExempt(player) + ) + && this.recordViolation( + player.getUniqueId(), 2, HackType.CRITICALS, player.getName() + " failed Criticals: tried to perform a critical hit whilst on the ground" + ) + && this.cancelFalseHit) { + event.setCancelled(true); + } + } else { + this.plugin + .verboseLogger + .logPlayerDebug( + player, + "(Criticals) EntityDamageByEntityEvent !critical location[r:" + + player.getLocation() + + "] velocity[r:" + + player.getVelocity() + + "] blockOn[r:" + + player.getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() + + "]" + ); + if (player.getLocation().getY() % 1.0 == 0.0 && BlockCollisionChecks.isSolidGroundBlock(player.getLocation().subtract(0.0, 1.0, 0.0).getBlock())) { + this.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private boolean isCriticalCandidate(Player player) { + return player.getFallDistance() > 0.0F + && !player.isOnGround() + && !player.isInsideVehicle() + && !player.hasPotionEffect(PotionEffectType.BLINDNESS) + && !BlockCollisionChecks.isOnClimbable(player) + && !BlockCollisionChecks.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..b5bd0d9 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/FastUse.java @@ -0,0 +1,37 @@ +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.isPlayerExempt(event.getPlayer())) { + long now = System.currentTimeMillis(); + long ticks = now - this.plugin.playerState.getLastInteractionTime(event.getPlayer()); + if (ticks < this.msToUse) { + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.FASTUSE, + event.getPlayer().getName() + " failed FastUse: Tried to consume an item too quickly (" + ticks + "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..21437ef --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Fastbow.java @@ -0,0 +1,169 @@ +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 Map shotCounts = new HashMap<>(); + private Set bowBlockedPlayers = 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 ArrowCountMonitorTask(this), 30L, 20L)); + } + + @EventHandler + public void onEntityShootBow(EntityShootBowEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER) { + if (this.plugin.checkManager.isPlayerExempt((Player)event.getEntity())) { + return; + } + + if (this.bowBlockedPlayers.contains(event.getEntity().getUniqueId())) { + this.plugin + .verboseLogger + .logPlayerDebug( + (Player)event.getEntity(), + "(FastBow) EntityShootBowEvent !allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(event.getEntity().getUniqueId()) + ); + event.setCancelled(true); + return; + } + + if (event.getForce() > this.minForce) { + if (!this.shotCounts.containsKey(event.getEntity().getUniqueId())) { + this.shotCounts.put(event.getEntity().getUniqueId(), 1); + } else { + this.shotCounts.put(event.getEntity().getUniqueId(), this.shotCounts.get(event.getEntity().getUniqueId()) + 1); + } + + if (this.shotCounts.get(event.getEntity().getUniqueId()) > this.shotsFiredThreshold) { + event.setCancelled(true); + this.plugin + .verboseLogger + .logPlayerDebug( + (Player)event.getEntity(), + "(FastBow) EntityShootBowEvent !allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(event.getEntity().getUniqueId()) + ); + } else { + this.plugin + .verboseLogger + .logPlayerDebug( + (Player)event.getEntity(), + "(FastBow) EntityShootBowEvent allowed force[n:" + + this.minForce + + ",r:" + + event.getForce() + + "] + totalShots[t:" + + this.shotsFiredThreshold + + ",r:" + + this.shotCounts.get(event.getEntity().getUniqueId()) + ); + } + } + } + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onFastbowPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.shotCounts.put(event.getPlayer().getUniqueId(), 0); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onFastbowPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.shotCounts.remove(event.getPlayer().getUniqueId()); + } + + static Map getShotCounts(Fastbow fastbow) { + return fastbow.shotCounts; + } + + static int getShotsFiredThreshold(Fastbow fastbow) { + return fastbow.shotsFiredThreshold; + } + + static Set getBowBlockedPlayers(Fastbow fastbow) { + return fastbow.bowBlockedPlayers; + } + + + private static class ClearBowBanTask implements Runnable { + final UUID playerId; + final ArrowCountMonitorTask monitorTask; + + ClearBowBanTask(ArrowCountMonitorTask arrowCountMonitorTask, UUID uuid) { + this.monitorTask = arrowCountMonitorTask; + this.playerId = uuid; + } + + @Override + public void run() { + Fastbow.getBowBlockedPlayers(this.monitorTask.fastbow).remove(this.playerId); + + try { + Bukkit.getPlayer(this.playerId).sendMessage(AAC.messagePrefix + this.monitorTask.fastbow.getPlugin().messages.getMessage("allow_bow")); + } catch (NullPointerException ex) { + } + } + } + + private static class ArrowCountMonitorTask implements Runnable { + final Fastbow fastbow; + + ArrowCountMonitorTask(Fastbow fastbow) { + this.fastbow = fastbow; + } + + @Override + public void run() { + for (UUID uuid : Fastbow.getShotCounts(this.fastbow).keySet()) { + if ((Integer)Fastbow.getShotCounts(this.fastbow).get(uuid) > Fastbow.getShotsFiredThreshold(this.fastbow) && !Fastbow.getBowBlockedPlayers(this.fastbow).contains(uuid)) { + if (this.fastbow.recordViolation(uuid, 4, HackType.FASTBOW, Bukkit.getOfflinePlayer(uuid).getName() + " failed Fastbow: tried to fire " + Fastbow.getShotCounts(this.fastbow).get(uuid) + " arrows in 1 second.")) { + Fastbow.getBowBlockedPlayers(this.fastbow).add(uuid); + UUID uuid2 = uuid; + Bukkit.getPlayer(uuid).sendMessage(AAC.messagePrefix + this.fastbow.getPlugin().messages.getMessage("too_many_shots")); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.fastbow.getPlugin(), new ClearBowBanTask(this, uuid2), 100L); + } + } else if (!Fastbow.getBowBlockedPlayers(this.fastbow).contains(uuid)) { + this.fastbow.decreaseViolationLevel(uuid, 1); + } + + Fastbow.getShotCounts(this.fastbow).put(uuid, 0); + } + } + } +} 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..0c64344 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/FightSpeed.java @@ -0,0 +1,209 @@ +package me.konsolas.aac.detectors.combat; + +import com.comphenix.protocol.PacketType.Play.Client; +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 java.util.HashMap; +import java.util.Map.Entry; +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.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 Map hitCounts = new HashMap<>(); + private Map interactCounts = new HashMap<>(); + private Map swingCounts = new HashMap<>(); + private Map lastSwingCounts = new HashMap<>(); + private Map previousSwingCounts = 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); + AttackPacketListener attackPacketListener = new AttackPacketListener(this, this.plugin, Client.USE_ENTITY, Client.ARM_ANIMATION); + this.packetListeners.add(attackPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(attackPacketListener); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 10L, 59L); + } + + @Override + public void setCurrentTick(long ticks) { + super.setCurrentTick(ticks); + if (ticks % 20L == 0L) { + for (Entry entry : this.hitCounts.entrySet()) { + Player player = Bukkit.getPlayer((UUID)entry.getKey()); + if ((Integer)entry.getValue() > this.maxHitsPerSecond) { + if ((Integer)entry.getValue() != 20 && (Integer)entry.getValue() != 21 && (Integer)entry.getValue() != 19) { + this.recordViolation( + (UUID)entry.getKey(), + (Integer)entry.getValue() - this.maxHitsPerSecond + 3, + HackType.FIGHTSPEED, + player.getName() + " failed FightSpeed: reached a CPS of " + entry.getValue() + ); + } else { + this.recordViolation( + (UUID)entry.getKey(), + ((Integer)entry.getValue() - this.maxHitsPerSecond + 3) * 2, + HackType.FIGHTSPEED, + player.getName() + " failed FightSpeed: reached a CPS of " + entry.getValue() + ); + } + } + + this.hitCounts.put((UUID)entry.getKey(), 0); + } + + for (Entry entry2 : this.interactCounts.entrySet()) { + Player player2 = Bukkit.getPlayer((UUID)entry2.getKey()); + if ((Integer)entry2.getValue() > this.maxInteractPerSecond) { + this.recordViolation( + (UUID)entry2.getKey(), + (Integer)entry2.getValue() - this.maxHitsPerSecond + 3, + HackType.FIGHTSPEED, + player2.getName() + " failed FightSpeed: interacting " + entry2.getValue() + " times per second" + ); + } + + this.interactCounts.put((UUID)entry2.getKey(), 0); + } + + for (Entry entry3 : this.swingCounts.entrySet()) { + Player player3 = Bukkit.getPlayer((UUID)entry3.getKey()); + if (this.lastSwingCounts.get(entry3.getKey()) != null && this.previousSwingCounts.get(entry3.getKey()) != null) { + int value = this.lastSwingCounts.get(entry3.getKey()); + int value2 = this.previousSwingCounts.get(entry3.getKey()); + if ((Integer)entry3.getValue() < 9) { + this.previousSwingCounts.put((UUID)entry3.getKey(), this.lastSwingCounts.get(entry3.getKey())); + this.lastSwingCounts.put((UUID)entry3.getKey(), (Integer)entry3.getValue()); + this.swingCounts.put((UUID)entry3.getKey(), 0); + continue; + } + + if (this.consistentCheck && value == (Integer)entry3.getValue() && (Integer)entry3.getValue() == value2) { + if (value != 10 && value != 20) { + this.recordViolation( + (UUID)entry3.getKey(), + 3, + HackType.FIGHTSPEED, + player3.getName() + " failed FightSpeed: constantly clicking at a CPS of " + entry3.getValue() + ); + } else { + this.recordViolation( + (UUID)entry3.getKey(), + 7, + HackType.FIGHTSPEED, + player3.getName() + " failed FightSpeed: constantly clicking at a CPS of " + entry3.getValue() + ); + } + } + } + + this.previousSwingCounts.put((UUID)entry3.getKey(), this.lastSwingCounts.get(entry3.getKey())); + this.lastSwingCounts.put((UUID)entry3.getKey(), (Integer)entry3.getValue()); + this.swingCounts.put((UUID)entry3.getKey(), 0); + } + } + } + + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.hitCounts.put(event.getPlayer().getUniqueId(), 0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.hitCounts.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.hitCounts.remove(event.getPlayer().getUniqueId()); + } + + static Map getHitCounts(FightSpeed fightSpeed) { + return fightSpeed.hitCounts; + } + + static Map getInteractCounts(FightSpeed fightSpeed) { + return fightSpeed.interactCounts; + } + + static Map getSwingCounts(FightSpeed fightSpeed) { + return fightSpeed.swingCounts; + } + + + private static class AttackPacketListener extends PacketAdapter { + final FightSpeed fightSpeed; + + AttackPacketListener(FightSpeed fightSpeed, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.fightSpeed = fightSpeed; + } + + public void onPacketReceiving(PacketEvent event) { + if (!((AAC)this.plugin).checkManager.isPlayerExempt(event.getPlayer())) { + if (event.getPacketType() == Client.USE_ENTITY) { + WrapperPlayClientUseEntity wrapperPlayClientUseEntity = new WrapperPlayClientUseEntity(event.getPacket()); + if (wrapperPlayClientUseEntity.getType() == EntityUseAction.ATTACK) { + if (!FightSpeed.getHitCounts(this.fightSpeed).containsKey(event.getPlayer().getUniqueId())) { + FightSpeed.getHitCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), 0); + } + + FightSpeed.getHitCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), (Integer)FightSpeed.getHitCounts(this.fightSpeed).get(event.getPlayer().getUniqueId()) + 1); + } else { + if (!FightSpeed.getInteractCounts(this.fightSpeed).containsKey(event.getPlayer().getUniqueId())) { + FightSpeed.getInteractCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), 0); + } + + FightSpeed.getInteractCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), (Integer)FightSpeed.getInteractCounts(this.fightSpeed).get(event.getPlayer().getUniqueId()) + 1); + } + } else if (((AAC)this.plugin).combatLogoutListener.isInCombat(event.getPlayer())) { + if (!FightSpeed.getSwingCounts(this.fightSpeed).containsKey(event.getPlayer().getUniqueId())) { + FightSpeed.getSwingCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), 0); + } + + FightSpeed.getSwingCounts(this.fightSpeed).put(event.getPlayer().getUniqueId(), (Integer)FightSpeed.getSwingCounts(this.fightSpeed).get(event.getPlayer().getUniqueId()) + 1); + } + } + } + } + + private static class DecayViolationsTask implements Runnable { + final FightSpeed fightSpeed; + + DecayViolationsTask(FightSpeed fightSpeed) { + this.fightSpeed = fightSpeed; + } + + @Override + public void run() { + for (Player player : this.fightSpeed.getPlugin().getServer().getOnlinePlayers()) { + this.fightSpeed.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..584eff0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Forcefield.java @@ -0,0 +1,202 @@ +package me.konsolas.aac.detectors.combat; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.ProtocolLibrary; +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.internal.packetwrapper.WrapperPlayServerEntityStatus; +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 sendDamagedAnimation = true; + private static boolean useSidePlayers = false; + private Map decoyManagers = new HashMap<>(); + private ConcurrentMap hitCounts = new ConcurrentHashMap<>(); + private ConcurrentMap missCounts = new ConcurrentHashMap<>(); + private ConcurrentMap lastAttackTimes = new ConcurrentHashMap<>(); + + public Forcefield(AAC plugin) { + super(plugin); + DecoyHitPacketListener decoyHitPacketListener = new DecoyHitPacketListener(this, this.plugin, ListenerPriority.LOWEST, WrapperPlayClientUseEntity.TYPE, Client.ARM_ANIMATION); + this.packetListeners.add(decoyHitPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(decoyHitPacketListener); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ViolationCheckTask(this), 35L, 36L)); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new SpawnCycleTask(this), 30L, 602L)); + ForcefieldDecoyManager.loadConfig(this.plugin); + sendDamagedAnimation = this.plugin.getConfig().getBoolean("forcefield.magic.send_damaged_animation"); + useSidePlayers = this.plugin.getConfig().getBoolean("forcefield.use_side_players"); + } + + public ForcefieldDecoyManager removeDecoyManager(UUID uuid) { + return this.decoyManagers.containsKey(uuid) ? this.decoyManagers.remove(uuid) : null; + } + + @Override + public void destroy() { + super.destroy(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + ForcefieldDecoyManager forcefieldDecoyManager = this.removeDecoyManager(player.getUniqueId()); + if (forcefieldDecoyManager != null) { + forcefieldDecoyManager.destroy(); + } + } + } + + private void spawnDecoysForPlayer(Player player) { + ForcefieldDecoyManager forcefieldDecoyManager = new ForcefieldDecoyManager(this.plugin, player, this); + this.decoyManagers.put(player.getUniqueId(), forcefieldDecoyManager); + forcefieldDecoyManager.spawn(); + } + + @EventHandler + public void onForcefieldPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + ForcefieldDecoyManager forcefieldDecoyManager = this.removeDecoyManager(event.getPlayer().getUniqueId()); + if (forcefieldDecoyManager != null) { + forcefieldDecoyManager.destroy(); + } + } + + @EventHandler + public void onForcefieldPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + ForcefieldDecoyManager forcefieldDecoyManager = this.removeDecoyManager(event.getPlayer().getUniqueId()); + if (forcefieldDecoyManager != null) { + forcefieldDecoyManager.destroy(); + } + } + + static Map getDecoyManagers(Forcefield forcefield) { + return forcefield.decoyManagers; + } + + static boolean isUseSidePlayers() { + return useSidePlayers; + } + + static ConcurrentMap getHitCounts(Forcefield forcefield) { + return forcefield.hitCounts; + } + + static ConcurrentMap getMissCounts(Forcefield forcefield) { + return forcefield.missCounts; + } + + static boolean isSendDamagedAnimation() { + return sendDamagedAnimation; + } + + static ConcurrentMap getLastAttackTimes(Forcefield forcefield) { + return forcefield.lastAttackTimes; + } + + + static void spawnDecoysForPlayer(Forcefield forcefield, Player player) { + forcefield.spawnDecoysForPlayer(player); + } + + private static class DecoyHitPacketListener extends PacketAdapter { + final Forcefield forcefield; + + DecoyHitPacketListener(Forcefield forcefield, Plugin plugin, ListenerPriority listenerPriority, PacketType... packetTypeArray) { + super(plugin, listenerPriority, packetTypeArray); + this.forcefield = forcefield; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE) { + WrapperPlayClientUseEntity wrapperPlayClientUseEntity = new WrapperPlayClientUseEntity(event.getPacket()); + int value = wrapperPlayClientUseEntity.getTargetID(); + if (Forcefield.getDecoyManagers(this.forcefield).containsKey(event.getPlayer().getUniqueId()) && wrapperPlayClientUseEntity.getType().equals(EntityUseAction.ATTACK)) { + if (Forcefield.isUseSidePlayers() && ((ForcefieldDecoyManager)Forcefield.getDecoyManagers(this.forcefield).get(event.getPlayer().getUniqueId())).isSideEntityId(value)) { + Forcefield.getHitCounts(this.forcefield).putIfAbsent(event.getPlayer().getUniqueId(), 0); + Forcefield.getHitCounts(this.forcefield).put(event.getPlayer().getUniqueId(), (Integer)Forcefield.getHitCounts(this.forcefield).get(event.getPlayer().getUniqueId()) + 1); + Forcefield.getMissCounts(this.forcefield).putIfAbsent(event.getPlayer().getUniqueId(), 0); + Forcefield.getMissCounts(this.forcefield).put(event.getPlayer().getUniqueId(), (Integer)Forcefield.getMissCounts(this.forcefield).get(event.getPlayer().getUniqueId()) + 1); + event.setCancelled(true); + } else if (((ForcefieldDecoyManager)Forcefield.getDecoyManagers(this.forcefield).get(event.getPlayer().getUniqueId())).isHeadEntityId(value)) { + Forcefield.getHitCounts(this.forcefield).putIfAbsent(event.getPlayer().getUniqueId(), 0); + Forcefield.getHitCounts(this.forcefield).put(event.getPlayer().getUniqueId(), (Integer)Forcefield.getHitCounts(this.forcefield).get(event.getPlayer().getUniqueId()) + 2); + Forcefield.getMissCounts(this.forcefield).putIfAbsent(event.getPlayer().getUniqueId(), 0); + Forcefield.getMissCounts(this.forcefield).put(event.getPlayer().getUniqueId(), (Integer)Forcefield.getMissCounts(this.forcefield).get(event.getPlayer().getUniqueId()) + 1); + event.setCancelled(true); + if (Forcefield.isSendDamagedAnimation()) { + if (Forcefield.getLastAttackTimes(this.forcefield).containsKey(event.getPlayer().getUniqueId())) { + if (System.currentTimeMillis() - 500L > (Long)Forcefield.getLastAttackTimes(this.forcefield).get(event.getPlayer().getUniqueId())) { + WrapperPlayServerEntityStatus wrapperPlayServerEntityStatus = ForcefieldDecoyManager.createStatusPacket(value); + wrapperPlayServerEntityStatus.sendPacket(event.getPlayer()); + Forcefield.getLastAttackTimes(this.forcefield).put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + } else { + Forcefield.getLastAttackTimes(this.forcefield).put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + } + } + } + } + } + } + + private static class ViolationCheckTask implements Runnable { + final Forcefield forcefield; + + ViolationCheckTask(Forcefield forcefield) { + this.forcefield = forcefield; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!this.forcefield.getPlugin().checkManager.isPlayerExempt(player) && !player.getGameMode().equals(GameMode.SPECTATOR)) { + if (Forcefield.getHitCounts(this.forcefield).containsKey(player.getUniqueId())) { + int value = (Integer)Forcefield.getHitCounts(this.forcefield).get(player.getUniqueId()); + if (value > 4) { + this.forcefield.recordViolation(player.getUniqueId(), (value - 2) * 2, HackType.FORCEFIELD, player.getName() + " failed Forcefield: hit " + Forcefield.getMissCounts(this.forcefield).get(player.getUniqueId()) + " players when tested"); + } + } + + Forcefield.getHitCounts(this.forcefield).put(player.getUniqueId(), 0); + Forcefield.getMissCounts(this.forcefield).put(player.getUniqueId(), 0); + this.forcefield.decreaseViolationLevel(player.getUniqueId(), 2); + } + } + } + } + + private static class SpawnCycleTask implements Runnable { + final Forcefield forcefield; + + SpawnCycleTask(Forcefield forcefield) { + this.forcefield = forcefield; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!this.forcefield.getPlugin().checkManager.isPlayerExempt(player) && !player.getGameMode().equals(GameMode.SPECTATOR)) { + Forcefield.spawnDecoysForPlayer(this.forcefield, 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..6e41980 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/KillauraCombined.java @@ -0,0 +1,288 @@ +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.EntityTargetCategories; +import org.bukkit.Bukkit; +import org.bukkit.OfflinePlayer; +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 checkChance = 100; + private int checkDelay = 8; + private double minDist = 2.7; + private int npcMultiplier = 6; + private int suspendedCombatTime = 12; + private boolean randomType = true; + private Map activeDecoys = new HashMap<>(); + private Set suspendedPlayers = new HashSet<>(); + AimbotHeuristic aimbotHeuristic; + ReachHeuristic reachHeuristic; + AccuracyHeuristic accuracyHeuristic; + private int aimbot = 80; + private int reach = 80; + private int accuracy = 80; + + public KillauraCombined(AAC plugin) { + super(plugin); + this.checkChance = this.plugin.getConfig().getInt("killaura.npc.check_chance", this.checkChance); + this.checkDelay = this.plugin.getConfig().getInt("killaura.npc.check_delay", this.checkDelay); + this.minDist = this.plugin.getConfig().getDouble("killaura.npc.min_dist", this.minDist); + this.npcMultiplier = this.plugin.getConfig().getInt("killaura.npc.npc_multiplier", this.npcMultiplier); + this.suspendedCombatTime = this.plugin.getConfig().getInt("killaura.npc.suspended_combat_time", this.suspendedCombatTime); + this.randomType = this.plugin.getConfig().getBoolean("killaura.random_type", this.randomType); + this.aimbot = this.plugin.getConfig().getInt("killaura.aimbot", this.aimbot); + this.reach = this.plugin.getConfig().getInt("killaura.reach", this.reach); + this.accuracy = this.plugin.getConfig().getInt("killaura.accuracy", this.accuracy); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetCombatTargetsTask(this), 100L, 79L)); + CombatDecoyPair.loadConfig(this.plugin); + DecoyHitPacketListener decoyHitPacketListener = new DecoyHitPacketListener(this, this.plugin, WrapperPlayClientUseEntity.TYPE); + this.packetListeners.add(decoyHitPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(decoyHitPacketListener); + 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 DecayViolationsTask(this), 31L, 29L); + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return event.getDamager().getType() == EntityType.PLAYER + && EntityTargetCategories.isKillauraTarget(event.getEntity().getType()) + && !this.activeDecoys.containsKey(event.getDamager().getUniqueId()) + && !(event.getDamager().getLocation().distance(event.getEntity().getLocation()) < this.minDist); + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (AAC.random.nextInt(100) < this.checkChance) { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new SpawnDecoyTask(this, event), this.checkDelay); + } + } + + private EntityType pickRandomEntityType() { + int value = AAC.random.nextInt(6); + switch (value) { + 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); + if (this.activeDecoys.containsKey(event.getPlayer().getUniqueId())) { + this.activeDecoys.get(event.getPlayer().getUniqueId()).destroy(); + this.activeDecoys.remove(event.getPlayer().getUniqueId()); + } + } + + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + if (this.activeDecoys.containsKey(event.getPlayer().getUniqueId())) { + this.activeDecoys.get(event.getPlayer().getUniqueId()).destroy(); + this.activeDecoys.remove(event.getPlayer().getUniqueId()); + } + } + + @Override + public void destroy() { + super.destroy(); + this.aimbotHeuristic.destroy(); + } + + + static Set getSuspendedPlayers(KillauraCombined killauraCombined) { + return killauraCombined.suspendedPlayers; + } + + + static int getAimbotThreshold(KillauraCombined killauraCombined) { + return killauraCombined.aimbot; + } + + + static int getReachThreshold(KillauraCombined killauraCombined) { + return killauraCombined.reach; + } + + + static int getAccuracyThreshold(KillauraCombined killauraCombined) { + return killauraCombined.accuracy; + } + + + static int getNpcMultiplier(KillauraCombined killauraCombined) { + return killauraCombined.npcMultiplier; + } + + + static int getSuspendedCombatTime(KillauraCombined killauraCombined) { + return killauraCombined.suspendedCombatTime; + } + + + static Map getActiveDecoys(KillauraCombined killauraCombined) { + return killauraCombined.activeDecoys; + } + + static boolean isRandomType(KillauraCombined killauraCombined) { + return killauraCombined.randomType; + } + + static EntityType pickRandomEntityType(KillauraCombined killauraCombined) { + return killauraCombined.pickRandomEntityType(); + } + + private static class ResetCombatTargetsTask implements Runnable { + final KillauraCombined killaura; + + ResetCombatTargetsTask(KillauraCombined killauraCombined) { + this.killaura = killauraCombined; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.killaura.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private static class DecoyHitPacketListener extends PacketAdapter { + final KillauraCombined killaura; + + DecoyHitPacketListener(KillauraCombined killauraCombined, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.killaura = killauraCombined; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE && KillauraCombined.getSuspendedPlayers(this.killaura).contains(event.getPlayer().getUniqueId())) { + event.setCancelled(true); + } + } + } + + private static class DecayViolationsTask implements Runnable { + final KillauraCombined killaura; + + DecayViolationsTask(KillauraCombined killauraCombined) { + this.killaura = killauraCombined; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (!this.killaura.getPlugin().checkManager.isPlayerExempt(player)) { + if (this.killaura.aimbotHeuristic.getDetectionChance(player) > KillauraCombined.getAimbotThreshold(this.killaura)) { + this.killaura.recordViolation(player.getUniqueId(), this.killaura.aimbotHeuristic.getDetectionChance(player) / 5 + 2, HackType.KILLAURA, player.getName() + " failed KillauraCombined: (AimbotHeuristic) Chance of hacking = " + this.killaura.aimbotHeuristic.getDetectionChance(player)); + } + + if (this.killaura.reachHeuristic.getDetectionChance(player) > KillauraCombined.getReachThreshold(this.killaura)) { + this.killaura.recordViolation(player.getUniqueId(), this.killaura.reachHeuristic.getDetectionChance(player) / 5 + 2, HackType.KILLAURA, player.getName() + " failed KillauraCombined: (ReachHeuristic) Chance of hacking = " + this.killaura.reachHeuristic.getDetectionChance(player)); + } + + if (this.killaura.accuracyHeuristic.getDetectionChance(player) > KillauraCombined.getAccuracyThreshold(this.killaura)) { + this.killaura.recordViolation(player.getUniqueId(), this.killaura.accuracyHeuristic.getDetectionChance(player) / 5 + 2, HackType.KILLAURA, player.getName() + " failed KillauraCombined: (AccuracyHeuristic) Chance of hacking = " + this.killaura.accuracyHeuristic.getDetectionChance(player)); + } + } + } + } + } + + private static class ClearSuspendedCombatTask implements Runnable { + final DecoyResultHandler handler; + + ClearSuspendedCombatTask(DecoyResultHandler decoyResultHandler) { + this.handler = decoyResultHandler; + } + + @Override + public void run() { + KillauraCombined.getSuspendedPlayers(this.handler.spawnTask.killaura).remove(this.handler.spawnTask.event.getDamager().getUniqueId()); + } + } + + private static class DecoyResultHandler implements CombatDecoyPair.HitListener { + final SpawnDecoyTask spawnTask; + + DecoyResultHandler(SpawnDecoyTask spawnDecoyTask) { + this.spawnTask = spawnDecoyTask; + } + + @Override + public void onDecoyComplete(int i, int i2) { + if (i2 > 0) { + this.spawnTask.killaura.recordViolation(this.spawnTask.event.getDamager().getUniqueId(), KillauraCombined.getNpcMultiplier(this.spawnTask.killaura), HackType.KILLAURA, this.spawnTask.event.getDamager().getName() + " failed Killaura: attacked through another player"); + KillauraCombined.getSuspendedPlayers(this.spawnTask.killaura).add(this.spawnTask.event.getDamager().getUniqueId()); + Bukkit.getServer() + .getScheduler() + .scheduleSyncDelayedTask(this.spawnTask.killaura.getPlugin(), new ClearSuspendedCombatTask(this), KillauraCombined.getSuspendedCombatTime(this.spawnTask.killaura)); + } else { + this.spawnTask.killaura.decreaseViolationLevel(this.spawnTask.event.getDamager().getUniqueId(), 1); + } + + KillauraCombined.getActiveDecoys(this.spawnTask.killaura).remove(this.spawnTask.event.getDamager().getUniqueId()); + } + } + + private static class SpawnDecoyTask implements Runnable { + final EntityDamageByEntityEvent event; + final KillauraCombined killaura; + + SpawnDecoyTask(KillauraCombined killauraCombined, EntityDamageByEntityEvent event) { + this.killaura = killauraCombined; + this.event = event; + } + + @Override + public void run() { + if (((OfflinePlayer)this.event.getDamager()).isOnline()) { + CombatDecoyPair combatDecoyPair = new CombatDecoyPair(this.killaura.getPlugin(), (Player)this.event.getDamager(), this.event.getEntity(), new DecoyResultHandler(this)); + KillauraCombined.getActiveDecoys(this.killaura).put(this.event.getDamager().getUniqueId(), combatDecoyPair); + if (KillauraCombined.isRandomType(this.killaura)) { + combatDecoyPair.spawn(KillauraCombined.pickRandomEntityType(this.killaura)); + } else if (EntityTargetCategories.isPrimaryCombatTarget(this.event.getEntity().getType())) { + combatDecoyPair.spawn(this.event.getEntity().getType()); + } else { + combatDecoyPair.spawn(EntityType.PLAYER); + } + } + } + } +} 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..7880c6b --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Knockback.java @@ -0,0 +1,172 @@ +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.EntityTargetCategories; +import me.konsolas.aac.util.KnockbackDistanceTracker; +import me.konsolas.aac.util.Ping; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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 ConcurrentHashMap trackers = 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.isPlayerExempt((Player)event.getEntity()) + && event.getCause() != DamageCause.THORNS) { + if (this.trackers.containsKey(event.getEntity().getUniqueId())) { + this.trackers.get(event.getEntity().getUniqueId()).cancelTask(); + this.trackers.remove(event.getEntity().getUniqueId()); + } + + if (EntityTargetCategories.isKnockbackSource(event.getDamager().getType())) { + double d = event.getDamager().getLocation().distance(event.getEntity().getLocation()); + if (!(d < 1.2)) { + if (event.getDamager().getType() == EntityType.ARROW) { + Arrow arrow = (Arrow)event.getDamager(); + if (arrow.getShooter() instanceof LivingEntity) { + LivingEntity livingEntity = (LivingEntity)arrow.getShooter(); + if (event.getEntity().getEntityId() == livingEntity.getEntityId()) { + return; + } + } + } + + Player player = (Player)event.getEntity(); + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(player.getLocation()); + if (!this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 0.0, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 0.0, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 0.0, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 0.0, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 0.0, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 0.0, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 0.0, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 0.0, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 1.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 1.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 1.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 1.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 1.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 1.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 1.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 1.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 2.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 2.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 2.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 2.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 2.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 2.1, 0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.6, 2.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(-0.6, 2.1, -0.6)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 1.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getRelativeMaterial(0.0, 2.1, 0.0)) + && !this.isExemptBlock(relativeBlockCache.getCenterBlock().getType())) { + int value = this.tickDelay; + int value2 = Ping.getPing(player); + if (this.addPing) { + value += value2 < this.maxPing ? value2 / 100 : this.maxPing / 100; + } + + KnockbackDistanceTracker knockbackDistanceTracker; + try { + knockbackDistanceTracker = new KnockbackDistanceTracker(event.getDamager(), event.getEntity(), false); + } catch (IllegalStateException ex) { + return; + } + + this.trackers.put(player.getUniqueId(), knockbackDistanceTracker); + knockbackDistanceTracker.setTaskId(Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new EvaluateKnockbackTask(this, player), value)); + } + } + } + } + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + return true; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (this.trackers.containsKey(event.getPlayer().getUniqueId())) { + KnockbackDistanceTracker knockbackDistanceTracker = this.trackers.get(event.getPlayer().getUniqueId()); + knockbackDistanceTracker.updateLocation(event.getPlayer().getLocation()); + } + } + + private boolean isExemptBlock(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; + } + + static ConcurrentHashMap getTrackers(Knockback knockback) { + return knockback.trackers; + } + + + static double getMinKnockbackDist(Knockback knockback) { + return knockback.minKnockbackDist; + } + + + private static class EvaluateKnockbackTask implements Runnable { + final Player player; + final Knockback knockback; + + EvaluateKnockbackTask(Knockback knockback, Player player) { + this.knockback = knockback; + this.player = player; + } + + @Override + public void run() { + KnockbackDistanceTracker knockbackDistanceTracker = (KnockbackDistanceTracker)Knockback.getTrackers(this.knockback).get(this.player.getUniqueId()); + Knockback.getTrackers(this.knockback).remove(this.player.getUniqueId()); + double d = knockbackDistanceTracker.getMaxDistance() - knockbackDistanceTracker.getInitialDistance(); + knockbackDistanceTracker.getRetreatTicks(); + if (d == 0.0) { + this.knockback.recordViolation(this.player.getUniqueId(), 2, HackType.KNOCKBACK, this.player.getName() + " failed Knockback: didn't move away from his attacker when hit"); + } else if (d < Knockback.getMinKnockbackDist(this.knockback)) { + this.knockback.recordViolation(this.player.getUniqueId(), 2, HackType.KNOCKBACK, this.player.getName() + " failed Knockback: didn't move far enough when hit (" + d + " blocks" + (knockbackDistanceTracker.isExempt() ? ", inWater)" : ")")); + } else { + this.knockback.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..3c55e68 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Reach.java @@ -0,0 +1,90 @@ +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 me.konsolas.aac.util.blocks.RelativeBlockCache; +import org.bukkit.Location; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.LivingEntity; +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 lastMoveEvents = 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) { + if (event.getEntity() instanceof LivingEntity) { + Location location = event.getDamager().getLocation().add(0.0, 1.5, 0.0); + Location location2 = event.getEntity().getLocation(); + Location location3 = event.getEntity().getLocation().add(0.0, ((LivingEntity)event.getEntity()).getEyeHeight(), 0.0); + double d = Math.min(location.distance(location2), location.distance(location3)); + this.plugin.verboseLogger.logPlayerDebug((Player)event.getDamager(), "(Reach) EntityDamageByEntityEvent dist[m:" + this.maxReach + ",r:" + d + "]"); + if (!(d > this.maxReach) || !(d < this.maxBukkitReach)) { + this.decreaseViolationLevel(event.getDamager().getUniqueId(), 1); + } else if (event.getEntity() instanceof Player) { + PlayerMoveEvent event2 = this.lastMoveEvents.get(event.getEntity().getUniqueId()); + double d2; + if (event2 != null) { + d2 = event2.getFrom().distance(event2.getTo()) * this.moveMultiplier; + } else { + d2 = 0.0; + } + + if (d > this.maxReach + d2 + && this.recordViolation( + event.getDamager().getUniqueId(), + 2, + HackType.REACH, + event.getDamager().getName() + " failed Reach: Tried to hit a player " + d + " blocks away" + )) { + event.setCancelled(true); + } + } else if (d > this.maxReach + 1.2 + && this.recordViolation( + event.getDamager().getUniqueId(), + 1, + HackType.REACH, + event.getDamager().getName() + " failed Reach: Tried to hit an entity " + d + " blocks away" + )) { + event.setCancelled(true); + } + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + this.lastMoveEvents.put(event.getPlayer().getUniqueId(), new PlayerMoveEvent(event.getPlayer(), event.getFrom(), event.getTo())); + } + + @Override + public boolean shouldProcessPlayerMove(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..4a2cc2b --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/combat/Regen.java @@ -0,0 +1,41 @@ +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.RegainReason; +import org.bukkit.event.entity.EntityRegainHealthEvent; + +public final class Regen extends Detector { + private long minRegenDelay = 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); + } + + @EventHandler + public void onEntityRegainHealth(EntityRegainHealthEvent event) { + if (event.getEntity().getType() == EntityType.PLAYER && !this.plugin.checkManager.isPlayerExempt((Player)event.getEntity())) { + Player player = (Player)event.getEntity(); + long ticks = this.plugin.playerState.getLastRegenerationTime(player); + RegainReason regainReason = this.plugin.playerState.getLastRegenerationReason(player); + long now = System.currentTimeMillis() - ticks; + if (regainReason == RegainReason.SATIATED && event.getRegainReason() == RegainReason.SATIATED) { + if (now < this.minRegenDelay) { + if (this.recordViolation(player.getUniqueId(), 1, HackType.REGEN, player.getName() + " failed Regen: tried to regenerate health faster than normal") + && 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..8c8bb2d --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/BadPackets.java @@ -0,0 +1,161 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType; +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 ConcurrentMap packetCounts = new ConcurrentHashMap<>(); + private Set throttledPlayers = 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 PacketRateCheckTask(this), 3L, 3L)); + MovementPacketListener movementPacketListener = new MovementPacketListener(this, this.plugin, ListenerPriority.LOWEST, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.LOOK); + this.packetListeners.add(movementPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(movementPacketListener); + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onBadPacketsPlayerJoin(PlayerJoinEvent event) { + this.violationLevels.put(event.getPlayer().getUniqueId(), 0); + this.packetCounts.put(event.getPlayer().getUniqueId(), 0); + } + + static ConcurrentMap getPacketCounts(BadPackets badPackets) { + return badPackets.packetCounts; + } + + static int getMaxMoves(BadPackets badPackets) { + return badPackets.maxMoves; + } + + + static Set getThrottledPlayers(BadPackets badPackets) { + return badPackets.throttledPlayers; + } + + + static int getCancelThreshold(BadPackets badPackets) { + return badPackets.cancelThreshold; + } + + private static class ClearCancelThrottleTask implements Runnable { + final UUID playerId; + final PacketRateCheckTask rateTask; + + ClearCancelThrottleTask(PacketRateCheckTask packetRateCheckTask, UUID uuid) { + this.rateTask = packetRateCheckTask; + this.playerId = uuid; + } + + @Override + public void run() { + BadPackets.getThrottledPlayers(this.rateTask.badPackets).remove(this.playerId); + } + } + + private static class PacketRateCheckTask implements Runnable { + final BadPackets badPackets; + + PacketRateCheckTask(BadPackets badPackets) { + this.badPackets = badPackets; + } + + @Override + public void run() { + for (Entry entry : BadPackets.getPacketCounts(this.badPackets).entrySet()) { + if (BadPackets.getPacketCounts(this.badPackets).containsKey(entry.getKey())) { + Player player = Bukkit.getPlayer((UUID)entry.getKey()); + if (player == null) { + BadPackets.getPacketCounts(this.badPackets).remove(entry.getKey()); + } else { + if ((Integer)entry.getValue() > BadPackets.getMaxMoves(this.badPackets) && !this.badPackets.getPlugin().checkManager.isPlayerExempt(player)) { + if (!BadPackets.getThrottledPlayers(this.badPackets).contains(entry.getKey())) { + this.badPackets.recordViolation((UUID)entry.getKey(), ((Integer)entry.getValue() - BadPackets.getMaxMoves(this.badPackets)) / 10, HackType.BADPACKETS, player.getName() + " failed BadPackets: sent " + BadPackets.getPacketCounts(this.badPackets).get(entry.getKey()) + " moves in 3 ticks."); + } else { + this.badPackets.recordViolation((UUID)entry.getKey(), ((Integer)entry.getValue() - BadPackets.getMaxMoves(this.badPackets)) / 50, HackType.BADPACKETS, player.getName() + " failed BadPackets: sent " + BadPackets.getPacketCounts(this.badPackets).get(entry.getKey()) + " moves in 3 ticks."); + BadPackets.getThrottledPlayers(this.badPackets).add(entry.getKey()); + UUID uuid = (UUID)entry.getKey(); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.badPackets.getPlugin(), new ClearCancelThrottleTask(this, uuid), 50L); + } + } else { + this.badPackets.decreaseViolationLevel((UUID)entry.getKey(), 1); + } + + BadPackets.getPacketCounts(this.badPackets).put(entry.getKey(), 0); + } + } + } + } + } + + private static class MovementPacketListener extends PacketAdapter { + final BadPackets badPackets; + + MovementPacketListener(BadPackets badPackets, Plugin plugin, ListenerPriority listenerPriority, PacketType... packetTypeArray) { + super(plugin, listenerPriority, packetTypeArray); + this.badPackets = badPackets; + } + + public void onPacketReceiving(PacketEvent event) { + try { + if (event.getPacketType() == Client.FLYING + || event.getPacketType() == Client.POSITION + || event.getPacketType() == Client.POSITION_LOOK + || event.getPacketType() == Client.LOOK) { + if (((AAC)this.plugin).checkManager.isPlayerExempt(event.getPlayer())) { + return; + } + + BadPackets.getPacketCounts(this.badPackets).putIfAbsent(event.getPlayer().getUniqueId(), 0); + BadPackets.getPacketCounts(this.badPackets).put(event.getPlayer().getUniqueId(), (Integer)BadPackets.getPacketCounts(this.badPackets).get(event.getPlayer().getUniqueId()) + 1); + if ((Integer)BadPackets.getPacketCounts(this.badPackets).get(event.getPlayer().getUniqueId()) > BadPackets.getCancelThreshold(this.badPackets)) { + ((AAC)this.plugin) + .verboseLogger + .logPlayerDebug( + event.getPlayer(), + "(BadPackets) PacketPlayInFlying cancelled packets[m:" + + BadPackets.getCancelThreshold(this.badPackets) + + ",r:" + + BadPackets.getPacketCounts(this.badPackets).get(event.getPlayer().getUniqueId()) + + "]" + ); + event.setCancelled(true); + } + } + } catch (NullPointerException ex) { + } + } + } + + public enum MovementCategory { + SPEED, + FLY, + GLIDE; + + private static final MovementCategory[] VALUES = new MovementCategory[]{SPEED, FLY, GLIDE}; + } +} 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..12e56c9 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Climb.java @@ -0,0 +1,84 @@ +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 me.konsolas.aac.util.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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 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 shouldProcessPlayerMove(PlayerMoveEvent event) { + if (event.getPlayer().isFlying() || event.getPlayer().getVehicle() != null) { + return false; + } else if (!BlockCollisionChecks.isOnClimbable(event.getPlayer())) { + this.climbStartHeights.remove(event.getPlayer().getUniqueId()); + return false; + } else { + return true; + } + } + + @Override + public boolean shouldProcessDamage(EntityDamageByEntityEvent event) { + return true; + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (flag && flag2) { + double y = event.getFrom().getY(); + double y2 = event.getTo().getY(); + double d = y2 - y; + if (d > 0.0) { + if (d > this.maxStartSpeed) { + if (this.recordViolation( + event.getPlayer().getUniqueId(), 2, HackType.CLIMB, event.getPlayer().getName() + " failed Climb: initiated a ladder climb too quickly" + ) + && this.teleport) { + event.setTo(event.getFrom()); + } + } else if (!this.climbStartHeights.containsKey(event.getPlayer().getUniqueId()) + || !(event.getPlayer().getLocation().getY() > this.climbStartHeights.get(event.getPlayer().getUniqueId()) + this.maxStartSpeed)) { + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } else if (d > this.maxAscentSpeed + && this.recordViolation( + event.getPlayer().getUniqueId(), 2, HackType.CLIMB, event.getPlayer().getName() + " failed Climb: climbed a ladder too quickly" + ) + && this.teleport) { + event.setTo(event.getFrom()); + } + + if (!this.climbStartHeights.containsKey(event.getPlayer().getUniqueId())) { + this.climbStartHeights.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation().getY()); + } + } else { + this.climbStartHeights.remove(event.getPlayer().getUniqueId()); + } + } + } + + @Override + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + this.climbStartHeights.remove(event.getEntity().getUniqueId()); + } +} 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..eb3078c --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Fly.java @@ -0,0 +1,325 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.ProtocolLibrary; +import com.comphenix.protocol.events.PacketContainer; +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.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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.entity.Boat; +import org.bukkit.entity.Entity; +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.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerToggleFlightEvent; +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 maxJump = 1.4; + private double slimeAllow = 60.0; + private double knockbackAllow = 3.1; + private double velocityMultiplier = 1.2; + private double allow = 0.8; + private double naturalAllow = 2.1; + private boolean teleport = true; + private Map airborneTime = new ConcurrentHashMap<>(); + private Set recentFlightToggles = new HashSet<>(); + private Set exemptPlayers = new HashSet<>(); + private ExpiringMap slimeLaunchedPlayers; + + public Fly(AAC plugin) { + super(plugin); + this.maxJump = this.plugin.getConfig().getDouble("fly.max_jump", this.maxJump); + this.slimeAllow = this.plugin.getConfig().getDouble("fly.slime_allow", this.slimeAllow); + this.knockbackAllow = this.plugin.getConfig().getDouble("fly.knockback_allow", this.knockbackAllow); + this.velocityMultiplier = this.plugin.getConfig().getDouble("fly.velocity_multiplier", this.velocityMultiplier); + this.allow = this.plugin.getConfig().getDouble("fly.allow", this.allow); + this.naturalAllow = this.plugin.getConfig().getDouble("fly.natural_allow", this.naturalAllow); + this.teleport = this.plugin.getConfig().getBoolean("fly.teleport", this.teleport); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 20L, 50L)); + this.slimeLaunchedPlayers = ExpiringMap.builder().expiration(300L, TimeUnit.MILLISECONDS).expirationPolicy(ExpirationPolicy.CREATED).build(); + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + this.recentFlightToggles.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearFlightToggleTask(this, event), 50L); + } + + public boolean isSlimeLaunched(Player player) { + return this.slimeLaunchedPlayers.containsKey(player.getUniqueId()); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + if (!event.getPlayer().isDead() + && !this.recentFlightToggles.contains(event.getPlayer().getUniqueId()) + && !event.getPlayer().getGameMode().equals(GameMode.SPECTATOR) + && !event.getPlayer().isFlying()) { + if (event.getPlayer().getVehicle() != null) { + return false; + } + + for (Entity entity : event.getPlayer().getNearbyEntities(3.0, 3.0, 3.0)) { + if (entity instanceof Boat) { + return false; + } + } + + return !event.getPlayer().getAllowFlight(); + } else { + return false; + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + int value = -1; + if (event.getPlayer().hasPotionEffect(PotionEffectType.JUMP)) { + for (PotionEffect potionEffect : event.getPlayer().getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.JUMP)) { + value = potionEffect.getAmplifier(); + } + } + } + + Player player = event.getPlayer(); + if (!this.airborneTime.containsKey(event.getPlayer().getUniqueId())) { + this.airborneTime.put(event.getPlayer().getUniqueId(), this.maxJump); + } + + if (this.plugin.combatLogoutListener.hasRecentDamage(player) && this.airborneTime.get(player.getUniqueId()) < this.knockbackAllow) { + if (this.plugin.combatLogoutListener.getLastDamageCause(player) == DamageCause.ENTITY_ATTACK || this.plugin.combatLogoutListener.getLastDamageCause(player) == DamageCause.PROJECTILE) { + this.airborneTime.put(player.getUniqueId(), this.knockbackAllow); + } else if (this.airborneTime.get(player.getUniqueId()) < this.naturalAllow) { + this.airborneTime.put(player.getUniqueId(), this.naturalAllow); + } + } + + if (value > -1) { + double d = Math.pow(value + 1 + 4.2, 2.0) / 16.0 + this.maxJump; + this.airborneTime.put(player.getUniqueId(), d > this.airborneTime.get(player.getUniqueId()) ? d : this.airborneTime.get(player.getUniqueId())); + } + + if (BlockCollisionChecks.isAboveBounceBlock(relativeBlockCache)) { + this.airborneTime.put(event.getPlayer().getUniqueId(), this.slimeAllow); + this.exemptPlayers.add(player.getUniqueId()); + } + + if (this.exemptPlayers.contains(event.getPlayer().getUniqueId())) { + if (flag) { + this.exemptPlayers.remove(event.getPlayer().getUniqueId()); + } + + this.airborneTime.put(event.getPlayer().getUniqueId(), this.slimeAllow); + } + + double y = event.getTo().getY() - this.plugin.movementDispatcher.getSafeLocation(player).getY(); + double d2 = y - this.airborneTime.get(player.getUniqueId()); + if (d2 > 0.0) { + this.plugin + .verboseLogger + .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.movementDispatcher.getSafeLocation(event.getPlayer()).getY() + + "] height[t:" + + this.airborneTime.get(player.getUniqueId()) + + ",r:" + + y + + "]" + ); + if (this.recordViolation( + player.getUniqueId(), + (int)((long)d2 > 100L ? 100L : 1L + (long)d2), + HackType.FLY, + player.getName() + " failed Fly: tried to jump too high (" + y + " blocks)" + ) + && (d2 > this.allow || this.getViolationLevel(player) > 2) + && this.teleport) { + this.slimeLaunchedPlayers.putIfAbsent(player.getUniqueId(), false); + this.slimeLaunchedPlayers.resetExpiration(player.getUniqueId()); + float f = player.getFallDistance(); + this.plugin.movementDispatcher.setTeleportExempt(this, player); + Location location = this.plugin.movementDispatcher.getSafeLocation(player); + player.teleport(location, TeleportCause.UNKNOWN); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new DeferredFallSetbackTask(this, player, location, f, event)); + } + } + + if (flag2) { + this.airborneTime.put(event.getPlayer().getUniqueId(), this.maxJump); + } + } + + @EventHandler + public void onPlayerVelocity(PlayerVelocityEvent event) { + if (!(event.getVelocity().getY() <= 0.0)) { + if (!this.airborneTime.containsKey(event.getPlayer().getUniqueId())) { + this.airborneTime.put(event.getPlayer().getUniqueId(), this.maxJump); + } + + double y = this.predictMaxJumpHeight(event.getVelocity().getY()); + double y2 = event.getPlayer().getLocation().getY() - this.plugin.movementDispatcher.getSafeLocation(event.getPlayer()).getY(); + if (y + y2 > this.airborneTime.get(event.getPlayer().getUniqueId())) { + this.airborneTime.put(event.getPlayer().getUniqueId(), (y + y2) * this.velocityMultiplier); + } + + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), + "(Fly) PlayerVelocityEvent velocityY[r:" + event.getVelocity().getY() + "] newHeight[u:" + this.airborneTime.get(event.getPlayer().getUniqueId()) + "]" + ); + } + } + + private double predictMaxJumpHeight(double d) { + double d2 = 0.0; + double d3 = 0.0; + int value = 0; + + do { + d2 += d3; + d3 = (d + 4.0) * StrictMath.exp(-0.02 * value) - 4.0; + value++; + } while (d3 > 0.0); + + return d2; + } + + @EventHandler(priority = EventPriority.MONITOR) + public void onFlyPlayerJoin(PlayerJoinEvent event) { + this.violationLevels.put(event.getPlayer().getUniqueId(), 0); + this.airborneTime.put(event.getPlayer().getUniqueId(), this.maxJump); + Bukkit.getPluginManager().callEvent(new PlayerVelocityEvent(event.getPlayer(), event.getPlayer().getVelocity())); + } + + @Override + public void destroy() { + super.destroy(); + } + + public void clearCaches() { + this.exemptPlayers.clear(); + this.airborneTime.clear(); + this.slimeLaunchedPlayers.clear(); + this.recentFlightToggles.clear(); + } + + + static Set getRecentFlightToggles(Fly fly) { + return fly.recentFlightToggles; + } + + + private static class DecayViolationsTask implements Runnable { + final Fly fly; + + DecayViolationsTask(Fly fly) { + this.fly = fly; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.fly.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private static class ClearFlightToggleTask implements Runnable { + final PlayerToggleFlightEvent event; + final Fly fly; + + ClearFlightToggleTask(Fly fly, PlayerToggleFlightEvent event) { + this.fly = fly; + this.event = event; + } + + @Override + public void run() { + Fly.getRecentFlightToggles(this.fly).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class ApplyFallDamageTask implements Runnable { + final PacketContainer packet; + final DeferredFallSetbackTask setbackTask; + + ApplyFallDamageTask(DeferredFallSetbackTask deferredFallSetbackTask, PacketContainer packet) { + this.setbackTask = deferredFallSetbackTask; + this.packet = packet; + } + + @Override + public void run() { + this.setbackTask.player.setFallDistance(this.setbackTask.fallDistance); + + try { + ProtocolLibrary.getProtocolManager().recieveClientPacket(this.setbackTask.event.getPlayer(), this.packet, false); + } catch (Exception ex) { + this.setbackTask.fly.getPlugin().verboseLogger.logViolation("(Fly) Failed to deal fall damage to player: " + ex.getMessage()); + } + } + } + + private static class DeferredFallSetbackTask implements Runnable { + final Player player; + final Location location; + final float fallDistance; + final PlayerMoveEvent event; + final Fly fly; + + DeferredFallSetbackTask(Fly fly, Player player, Location location, float f, PlayerMoveEvent event) { + this.fly = fly; + this.player = player; + this.location = location; + this.fallDistance = f; + this.event = event; + } + + @Override + public void run() { + this.fly.getPlugin().movementDispatcher.setTeleportExempt(this.fly, this.player); + this.player.teleport(this.location, TeleportCause.UNKNOWN); + PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(Client.FLYING); + packet.getBooleans().write(0, true); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.fly.getPlugin(), new ApplyFallDamageTask(this, packet), 2L); + } + } +} 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..7ab1e72 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Glide.java @@ -0,0 +1,473 @@ +package me.konsolas.aac.detectors.movement; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map.Entry; +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.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.MovementObstacleChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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.Boat; +import org.bukkit.entity.Entity; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.block.BlockBreakEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +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 int velTicks = 12; + private Set exemptPlayers = new HashSet<>(); + private Map lastMoveTicks = new HashMap<>(); + private Map fallDistances = new HashMap<>(); + private Map lastDeltaY = new HashMap<>(); + private Map violationStreaks = new HashMap<>(); + private Set flightToggleBypass = 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.velTicks = this.plugin.getConfig().getInt("glide.vel_ticks", this.velTicks); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 32L, 23L)); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + this.recordMoveTick(event.getPlayer()); + return event.getPlayer().getGameMode() != GameMode.SPECTATOR + && !event.getPlayer().isFlying() + && !event.getPlayer().isDead() + && event.getPlayer().getLocation().getY() > -70.0 + && !event.getPlayer().getAllowFlight(); + } + + private void recordMoveTick(Player player) { + if (!player.isOnline()) { + this.lastMoveTicks.remove(player.getUniqueId()); + } else { + this.lastMoveTicks.put(player.getUniqueId(), this.currentTick); + } + } + + @Override + public void setCurrentTick(long ticks) { + super.setCurrentTick(ticks); + if (ticks % 29L == 0L) { + this.exemptPlayers.clear(); + } + + if (ticks % 3L == 0L) { + Iterator iterator = this.lastMoveTicks.entrySet().iterator(); + + while (iterator.hasNext()) { + Entry entry = (Entry)iterator.next(); + if (ticks - (Long)entry.getValue() > 5L) { + UUID uuid = (UUID)entry.getKey(); + Player player = Bukkit.getPlayer(uuid); + if (player == null || !player.isOnline()) { + iterator.remove(); + } else if (!this.plugin.checkManager.isPlayerExempt(player)) { + if (!BlockCollisionChecks.isOnGround(player.getLocation())) { + PlayerMoveEvent event = new PlayerMoveEvent(player, player.getLocation(), player.getLocation()); + if (this.shouldProcessPlayerMove(event)) { + this.onPlayerMove(event, false, false, new RelativeBlockCache(event.getFrom()), new RelativeBlockCache(event.getTo())); + } + } + } else { + iterator.remove(); + } + } + } + } + } + + @EventHandler + public void onGlideToggleFlight(PlayerToggleFlightEvent event) { + this.fallDistances.remove(event.getPlayer().getUniqueId()); + this.flightToggleBypass.add(event.getPlayer().getUniqueId()); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + double y = event.getTo().getY() - event.getFrom().getY(); + double d = this.tolerance; + long now = this.plugin.playerState.getLastVelocityPacketTime(event.getPlayer()) != Long.MIN_VALUE + ? System.currentTimeMillis() - this.plugin.playerState.getLastVelocityPacketTime(event.getPlayer()) + : Long.MAX_VALUE; + boolean flag3 = this.plugin.playerState.hasActiveVelocity(event.getPlayer()) || now < this.velTicks * 50; + int value = 0; + + for (PotionEffect potionEffect : event.getPlayer().getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.JUMP)) { + value = potionEffect.getAmplifier() + 1; + } + } + + boolean flag4 = this.flightToggleBypass.contains(event.getPlayer().getUniqueId()); + this.flightToggleBypass.remove(event.getPlayer().getUniqueId()); + if (y == 0.0 && flag) { + this.flightToggleBypass.add(event.getPlayer().getUniqueId()); + } + + if (!flag && flag4) { + flag = true; + } + + if (!this.fallDistances.containsKey(event.getPlayer().getUniqueId())) { + this.fallDistances.put(event.getPlayer().getUniqueId(), y); + } else { + if (!flag2 && VerticalMotionModel.predictNextDeltaY(this.fallDistances.get(event.getPlayer().getUniqueId())) < y - d / 2.0 && y < 0.0 && BlockCollisionChecks.isNearLava(relativeBlockCache2)) { + flag2 = true; + this.flightToggleBypass.add(event.getPlayer().getUniqueId()); + } + + boolean flag5 = VerticalMotionModel.isValidVerticalMotion( + y, + flag, + flag2, + flag3, + this.velTicks, + now, + this.fallDistances.get(event.getPlayer().getUniqueId()), + d, + value, + this.plugin.playerState.getLastHorizontalVelocity(event.getPlayer()) + ); + boolean flag6 = shouldCheckGlide(event, flag, flag2); + if (flag6 && !isNearWebOrPiston(relativeBlockCache)) { + boolean flag7 = event.getFrom().getBlock().getType() == Material.SLIME_BLOCK + || event.getFrom().clone().subtract(0.0, 1.0, 0.0).getBlock().getType() == Material.SLIME_BLOCK + || event.getFrom().clone().subtract(0.0, 2.0, 0.0).getBlock().getType() == Material.SLIME_BLOCK; + boolean flag8 = event.getTo().getBlock().getType() == Material.SLIME_BLOCK + || event.getTo().clone().subtract(0.0, 1.0, 0.0).getBlock().getType() == Material.SLIME_BLOCK + || event.getFrom().clone().subtract(0.0, 2.0, 0.0).getBlock().getType() == Material.SLIME_BLOCK; + if (flag7 || flag8) { + flag5 = VerticalMotionModel.isWithinUpperBound(y, 1.0, d); + if (!this.lastDeltaY.containsKey(event.getPlayer().getUniqueId())) { + this.lastDeltaY.put(event.getPlayer().getUniqueId(), Math.abs(y) < 1.0 ? 1.0 : Math.abs(y)); + } else { + double d2 = this.lastDeltaY.get(event.getPlayer().getUniqueId()); + if (Math.abs(y) > d2) { + this.lastDeltaY.put(event.getPlayer().getUniqueId(), Math.abs(y)); + } + } + } + + if (this.lastDeltaY.containsKey(event.getPlayer().getUniqueId())) { + if (this.violationStreaks.containsKey(event.getPlayer().getUniqueId())) { + double d3 = VerticalMotionModel.scaleVerticalEstimate(this.lastDeltaY.get(event.getPlayer().getUniqueId())); + flag5 = VerticalMotionModel.isWithinUpperBound(y, d3, d); + if (this.violationStreaks.get(event.getPlayer().getUniqueId()) >= 5) { + this.lastDeltaY.remove(event.getPlayer().getUniqueId()); + this.violationStreaks.remove(event.getPlayer().getUniqueId()); + } + } else { + this.violationStreaks.put(event.getPlayer().getUniqueId(), 0); + double d4 = VerticalMotionModel.scaleVerticalEstimate(this.lastDeltaY.get(event.getPlayer().getUniqueId())); + flag5 = VerticalMotionModel.isWithinUpperBound(y, d4, d); + } + + if (this.violationStreaks.containsKey(event.getPlayer().getUniqueId())) { + this.violationStreaks.put(event.getPlayer().getUniqueId(), this.violationStreaks.get(event.getPlayer().getUniqueId()) + 1); + } + } + + if (!flag7 && flag8 && !flag && flag2) { + this.lastDeltaY + .put( + event.getPlayer().getUniqueId(), + VerticalMotionModel.predictNextDeltaY(this.fallDistances.get(event.getPlayer().getUniqueId())) < 0.9 + ? 0.9 + : VerticalMotionModel.predictNextDeltaY(this.fallDistances.get(event.getPlayer().getUniqueId())) + ); + } + + if (this.fallDistances.get(event.getPlayer().getUniqueId()) > 0.0 && y < 0.0) { + flag5 = true; + } + + if (flag && flag2 && y > 0.0) { + flag5 = true; + } + } else { + flag5 = true; + } + + if (flag2 && Math.abs(y) < 0.8) { + flag5 = true; + } + + if (!flag5 && !this.exemptPlayers.contains(event.getPlayer().getUniqueId()) && (y < 0.0 && y > 2.0 || flag3)) { + this.exemptPlayers.add(event.getPlayer().getUniqueId()); + flag5 = true; + } + + if (this.fallDistances.get(event.getPlayer().getUniqueId()) >= 0.0 && y < 0.0 && y > -0.6) { + flag5 = true; + } + + if (!flag5 + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.GLIDE, + event.getPlayer().getName() + + " failed Glide: didn't fall correctly (change in y:" + + y + + ", expected:" + + VerticalMotionModel.predictNextDeltaY(this.fallDistances.get(event.getPlayer().getUniqueId())) + + ")" + ) + && this.teleport + && (this.getViolationLevel(event.getPlayer()) > this.minVl || Math.abs(y) > 1.5)) { + applySetback(event.getPlayer(), event, this, this.plugin); + this.fallDistances.put(event.getPlayer().getUniqueId(), event.getPlayer().getVelocity().getY()); + } + + if (flag5) { + this.fallDistances.put(event.getPlayer().getUniqueId(), y); + } + } + } + + public static boolean shouldCheckGlide(PlayerMoveEvent event, boolean flag, boolean flag2) { + if (event.getPlayer().getVehicle() != null) { + return false; + } + + if (BlockCollisionChecks.isOnClimbable(event.getPlayer())) { + return false; + } + + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(event.getTo()); + if (!relativeBlockCache.getRelativeBlock(0.0, 3.0, 0.0).getType().isSolid() && !relativeBlockCache.getRelativeBlock(0.0, 2.0, 0.0).getType().isSolid() + || !relativeBlockCache.getSubtractedBlock(0.0, 1.0, 0.0).getType().isSolid() && !relativeBlockCache.getSubtractedBlock(0.0, 2.0, 0.0).getType().isSolid()) { + for (Entity entity : event.getPlayer().getNearbyEntities(3.0, 3.0, 3.0)) { + if (entity instanceof Boat) { + return false; + } + } + + return !Speed.isNearLowBlock(event.getPlayer()) && !Jesus.isInOrAboveLiquid(event.getPlayer()) && !isInLiquid(event.getPlayer()); + } else { + return false; + } + } + + public static boolean isInLiquid(Player player) { + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(player.getLocation()); + return relativeBlockCache.getSubtractedBlock(0.0, 0.5, 0.45).isLiquid() + || relativeBlockCache.getSubtractedBlock(0.45, 0.6, 0.0).isLiquid() + || relativeBlockCache.getSubtractedBlock(0.0, 0.6, -0.45).isLiquid() + || relativeBlockCache.getSubtractedBlock(-0.45, 0.6, 0.0).isLiquid() + || relativeBlockCache.getSubtractedBlock(-0.45, 0.6, -0.45).isLiquid() + || relativeBlockCache.getSubtractedBlock(-0.45, 0.6, 0.45).isLiquid() + || relativeBlockCache.getSubtractedBlock(0.45, 0.6, -0.45).isLiquid() + || relativeBlockCache.getSubtractedBlock(0.45, 0.6, 0.45).isLiquid(); + } + + public static boolean isNearWebOrPiston(RelativeBlockCache relativeBlockCache) { + HashSet set = new HashSet<>(); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.0)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.0)); + + for (Block block : set) { + Block block2 = block.getRelative(BlockFace.UP); + Block block3 = block.getRelative(BlockFace.DOWN); + Block block4 = block.getRelative(BlockFace.DOWN).getRelative(BlockFace.DOWN); + if (isWebOrPiston(block) || isWebOrPiston(block3) || isWebOrPiston(block2) || isWebOrPiston(block4)) { + return true; + } + + if (block2.getRelative(BlockFace.UP).getType() == Material.WEB) { + return true; + } + } + + return false; + } + + private static boolean isWebOrPiston(Block block) { + return block.getType() == Material.PISTON_BASE + || block.getType() == Material.PISTON_EXTENSION + || block.getType() == Material.PISTON_MOVING_PIECE + || block.getType() == Material.PISTON_STICKY_BASE + || block.getType() == Material.WEB; + } + + @EventHandler + public void onFlightDisabled(PlayerToggleFlightEvent event) { + this.fallDistances.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + this.fallDistances.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.fallDistances.remove(event.getPlayer().getUniqueId()); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearRespawnBypassTask(this, event), 4L); + } + + public static void applySetback(Player player, PlayerMoveEvent event, Detector detector, AAC plugin) { + applySetbackWithVelocity(player, event, plugin, detector, player.getVelocity().getY() - 0.1); + } + + private static void applySetbackWithVelocity(Player player, PlayerMoveEvent event, AAC plugin, Detector detector, double d) { + if (d > -0.05) { + d = -0.05; + } + + Location location = plugin.movementDispatcher.getSafeLocation(player); + if (location != null) { + double x = Math.abs(event.getTo().getX() - location.getX()); + double z = Math.abs(event.getTo().getZ() - location.getZ()); + double d2 = Math.sqrt(Math.pow(x, 2.0) + Math.pow(z, 2.0)); + if (d2 < 3.0 && event.getFrom().getY() > location.getY()) { + plugin.movementDispatcher.setTeleportExempt(detector, player); + player.teleport(location, TeleportCause.UNKNOWN); + } + } + + Location location2 = event.getFrom(); + + for (double d3 = 0.0; d3 > d && MovementObstacleChecks.isPlayerUnobstructed(new RelativeBlockCache(player.getLocation().add(0.0, d3, 0.0))); d3 -= 0.3) { + location2 = player.getLocation().add(0.0, d3, 0.0); + } + + Location location3 = event.getFrom(); + + for (double d4 = 0.0; d4 > d && MovementObstacleChecks.isPlayerUnobstructed(new RelativeBlockCache(location2.clone().add(0.0, d4, 0.0))); d4 -= 0.1) { + location3 = location2.clone().add(0.0, d4, 0.0); + } + + float f = player.getFallDistance(); + plugin.movementDispatcher.setTeleportExempt(detector, player); + player.teleport(location2, TeleportCause.UNKNOWN); + plugin.movementDispatcher.setTeleportExempt(detector, player); + player.setVelocity(new Vector(0.0, d > 0.0 ? 0.0 : d, 0.0)); + Location location4 = location3; + double d5 = d; + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new DeferredFallSetbackTask(player, location4, f, event, plugin, detector, d5)); + plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new ClearSetbackStateTask(plugin, player), 2L); + } + + static Set getExemptPlayers(Glide glide) { + return glide.exemptPlayers; + } + + + static Map getFallDistances(Glide glide) { + return glide.fallDistances; + } + + private static class DecayViolationsTask implements Runnable { + final Glide glide; + + DecayViolationsTask(Glide glide) { + this.glide = glide; + } + + @Override + public void run() { + Glide.getExemptPlayers(this.glide).clear(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.glide.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private static class ClearRespawnBypassTask implements Runnable { + final PlayerRespawnEvent event; + final Glide glide; + + ClearRespawnBypassTask(Glide glide, PlayerRespawnEvent event) { + this.glide = glide; + this.event = event; + } + + @Override + public void run() { + Glide.getFallDistances(this.glide).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static final class DeferredFallSetbackTask implements Runnable { + final Player player; + final Location safeLocation; + final float fallDistance; + final PlayerMoveEvent event; + final AAC plugin; + final Detector detector; + final double velocityY; + + DeferredFallSetbackTask(Player player, Location location, float f, PlayerMoveEvent event, AAC plugin, Detector detector, double d) { + this.player = player; + this.safeLocation = location; + this.fallDistance = f; + this.event = event; + this.plugin = plugin; + this.detector = detector; + this.velocityY = d; + } + + @Override + public void run() { + this.player.teleport(this.safeLocation, TeleportCause.UNKNOWN); + this.player.setFallDistance(this.fallDistance + (float)(this.event.getFrom().getY() - this.safeLocation.getY())); + this.plugin.movementDispatcher.setTeleportExempt(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 ClearSetbackStateTask implements Runnable { + final AAC plugin; + final Player player; + + ClearSetbackStateTask(AAC plugin, Player player) { + this.plugin = plugin; + this.player = player; + } + + @Override + public void run() { + this.plugin.movementDispatcher.clearTeleportExempt(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..c0ebde0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/HeadRoll.java @@ -0,0 +1,47 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType; +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.plugin.Plugin; + +public final class HeadRoll extends Detector { + public HeadRoll(AAC plugin) { + super(plugin); + HeadLookPacketListener headLookPacketListener = new HeadLookPacketListener(this, this.plugin, Client.LOOK, Client.POSITION_LOOK); + this.packetListeners.add(headLookPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(headLookPacketListener); + } + + + private static class HeadLookPacketListener extends PacketAdapter { + final HeadRoll headRoll; + + HeadLookPacketListener(HeadRoll headRoll, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.headRoll = headRoll; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.LOOK || event.getPacketType() == Client.POSITION_LOOK) { + try { + if (((AAC)this.plugin).checkManager.isPlayerExempt(event.getPlayer())) { + return; + } + + float f = (Float)event.getPacket().getFloat().read(1); + if (f > 90.1F || f < -90.1F) { + event.setCancelled(true); + this.headRoll.recordViolation(event.getPlayer().getUniqueId(), 1, HackType.HEADROLL, event.getPlayer().getName() + " failed HeadRoll: Moved with an illegal pitch (" + f + ")"); + } + } catch (NullPointerException ex) { + } + } + } + } +} 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..3f3028d --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Jesus.java @@ -0,0 +1,148 @@ +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.blocks.RelativeBlockCache; +import org.bukkit.Bukkit; +import org.bukkit.Location; +import org.bukkit.block.Block; +import org.bukkit.entity.Boat; +import org.bukkit.entity.Entity; +import org.bukkit.entity.Player; +import org.bukkit.event.player.PlayerMoveEvent; + +public final class Jesus extends Detector implements MoveListener { + private final Map safeLocations = new HashMap<>(); + private Map waterTicks = new HashMap<>(); + private Set waterWalkCandidates = new HashSet<>(); + private boolean teleport = true; + + public Jesus(AAC plugin) { + super(plugin); + this.teleport = this.plugin.getConfig().getBoolean("jesus.teleport"); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 20L, 100L)); + } + + public static boolean isInOrAboveLiquid(Player player) { + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(player.getLocation()); + return isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.0, 0.5, 0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.3, 0.6, 0.0)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.0, 0.6, -0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, 0.0)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, -0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, 0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.3, 0.6, -0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.3, 0.6, 0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.0, 0.0, 0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.3, 0.0, 0.0)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.0, 0.0, -0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, 0.0)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, -0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, 0.3)) + || isSolidNonLiquid(relativeBlockCache.getSubtractedBlock(0.3, 0.0, -0.3)) + ? false + : relativeBlockCache.getSubtractedBlock(0.0, 0.5, 0.0).isLiquid() || relativeBlockCache.getSubtractedBlock(0.0, 1.5, 0.0).isLiquid() || relativeBlockCache.getCenterBlock().isLiquid(); + } + + private static boolean isSolidNonLiquid(Block block) { + return !block.isLiquid() && !block.isEmpty(); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + if (!event.getPlayer().isFlying() && event.getPlayer().getVehicle() == null) { + for (Entity entity : event.getPlayer().getNearbyEntities(3.0, 3.0, 3.0)) { + if (entity instanceof Boat) { + return false; + } + } + + return true; + } else { + return false; + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (isInOrAboveLiquid(event.getPlayer()) + && event.getPlayer().getLocation().add(0.0, 0.5, 0.0).getBlock().isEmpty() + && ( + event.getPlayer().getLocation().subtract(0.0, 1.5, 0.0).getBlock().isLiquid() + || event.getPlayer().getLocation().subtract(0.0, 0.5, 0.0).getBlock().isLiquid() + ) + && !this.plugin.combatLogoutListener.hasRecentDamage(event.getPlayer())) { + if (event.getPlayer().getLocation().subtract(0.0, 0.2, 0.0).getBlock().isLiquid()) { + if (!this.waterTicks.containsKey(event.getPlayer().getUniqueId())) { + this.waterTicks.put(event.getPlayer().getUniqueId(), 0); + } + + this.waterWalkCandidates.add(event.getPlayer().getUniqueId()); + } + + if (this.waterWalkCandidates.contains(event.getPlayer().getUniqueId())) { + if (!this.waterTicks.containsKey(event.getPlayer().getUniqueId())) { + this.waterTicks.put(event.getPlayer().getUniqueId(), 0); + } + + this.waterTicks.put(event.getPlayer().getUniqueId(), this.waterTicks.get(event.getPlayer().getUniqueId()) + 1); + if (this.waterTicks.get(event.getPlayer().getUniqueId()) > 20 + && this.recordViolation( + event.getPlayer().getUniqueId(), 1, HackType.JESUS, event.getPlayer().getName() + " failed Jesus: tried to float above water" + ) + && this.teleport) { + event.setTo(event.getFrom().subtract(0.0, 0.1, 0.0)); + } + } + } else { + this.waterTicks.remove(event.getPlayer().getUniqueId()); + } + } + + private double getLiquidDepth(Location location, int i) { + if (this.withY(location, location.getY() + 1.5).getBlock().isLiquid()) { + return 256.0; + } + + for (double y = location.getY() + 1.0; y > location.getY() - i; y--) { + if (this.withY(location, y).getBlock().isLiquid()) { + return this.withY(location, y).getBlock().getY() + 1; + } + } + + return 256.0; + } + + private Location withY(Location location, double d) { + location.setY(d); + return location; + } + + static Map getSafeLocations(Jesus jesus) { + return jesus.safeLocations; + } + + + private static class DecayViolationsTask implements Runnable { + final Jesus jesus; + + DecayViolationsTask(Jesus jesus) { + this.jesus = jesus; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Jesus.getSafeLocations(this.jesus).put(player.getUniqueId(), player.getLocation()); + this.jesus.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..c61aff0 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/NoFall.java @@ -0,0 +1,281 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType.Play.Client; +import com.comphenix.protocol.PacketType; +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.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +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.event.player.PlayerRespawnEvent; +import org.bukkit.plugin.Plugin; + +public final class NoFall extends Detector implements MoveListener { + private double requiredVelocity = -0.2; + private boolean dealDamage = true; + private Map groundHeights = new HashMap<>(); + private Map spoofedFallStartY = new HashMap<>(); + private Set exemptGroundDamage = new HashSet<>(); + private Queue pendingFallSnapshots = 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); + GroundPacketListener groundPacketListener = new GroundPacketListener(this, this.plugin, Client.POSITION, Client.POSITION_LOOK, Client.FLYING); + this.packetListeners.add(groundPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(groundPacketListener); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + return event.getPlayer().getGameMode() != GameMode.CREATIVE + && event.getPlayer().getGameMode() != GameMode.SPECTATOR + && !event.getPlayer().getAllowFlight() + && event.getPlayer().getVehicle() == null; + } + + @Override + public void setCurrentTick(long ticks) { + while (!this.pendingFallSnapshots.isEmpty()) { + FallSnapshot fallSnapshot = this.pendingFallSnapshots.poll(); + boolean flag = BlockCollisionChecks.isOnGround(FallSnapshot.getLocation(fallSnapshot)); + boolean flag2 = FallSnapshot.isOnGround(fallSnapshot); + double d = FallSnapshot.getDeltaY(fallSnapshot); + double y = FallSnapshot.getY(fallSnapshot); + this.plugin.verboseLogger.logPlayerDebug(FallSnapshot.getPlayer(fallSnapshot), "(NoFall) Packet [onGround r:" + flag2 + "]"); + if (!flag && this.groundHeights.containsKey(FallSnapshot.getPlayer(fallSnapshot).getUniqueId())) { + double d2 = this.groundHeights.get(FallSnapshot.getPlayer(fallSnapshot).getUniqueId()); + if (d2 - y > 3.0) { + if (d < this.requiredVelocity) { + if (flag2 + && this.recordViolation( + FallSnapshot.getPlayer(fallSnapshot).getUniqueId(), + 1, + HackType.NOFALL, + FallSnapshot.getPlayer(fallSnapshot).getName() + " failed NoFall: Claimed to be on the ground midair" + )) { + this.spoofedFallStartY.put(FallSnapshot.getPlayer(fallSnapshot).getUniqueId(), d2); + } + } else if (flag2) { + this.spoofedFallStartY.put(FallSnapshot.getPlayer(fallSnapshot).getUniqueId(), d2); + } + } + } + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + double y = event.getTo().getY() - event.getFrom().getY(); + double y2 = event.getTo().getY(); + if (flag2 && y >= 0.0 && this.spoofedFallStartY.containsKey(event.getPlayer().getUniqueId())) { + this.plugin.verboseLogger.logPlayerDebug(event.getPlayer(), "(NoFall) " + event.getPlayer().getName() + " landed"); + float f = this.calculateFallDamage(this.spoofedFallStartY.get(event.getPlayer().getUniqueId()), y2); + if (f >= 1.0) { + if (this.dealDamage) { + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new DeferredFallSetbackTask(this, event, f), 2L); + this.spoofedFallStartY.remove(event.getPlayer().getUniqueId()); + this.groundHeights.remove(event.getPlayer().getUniqueId()); + } else { + this.spoofedFallStartY.remove(event.getPlayer().getUniqueId()); + this.groundHeights.remove(event.getPlayer().getUniqueId()); + } + } + } + + if (flag2 && y == 0.0) { + this.exemptGroundDamage.add(event.getPlayer().getUniqueId()); + } else { + this.exemptGroundDamage.remove(event.getPlayer().getUniqueId()); + } + + if (!flag && !flag2) { + if (this.groundHeights.containsKey(event.getPlayer().getUniqueId())) { + if (y2 > this.groundHeights.get(event.getPlayer().getUniqueId())) { + this.groundHeights.put(event.getPlayer().getUniqueId(), y2); + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), "(NoFall) " + event.getPlayer().getName() + " New highestY for " + event.getPlayer().getName() + " [u:" + y2 + "]" + ); + } + } else { + this.groundHeights.put(event.getPlayer().getUniqueId(), y2); + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), "(NoFall) " + event.getPlayer().getName() + " created highestY for " + event.getPlayer().getName() + " [u:" + y2 + "]" + ); + } + } else { + this.groundHeights.remove(event.getPlayer().getUniqueId()); + } + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onBlockBreak(BlockBreakEvent event) { + this.groundHeights.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation().getY()); + this.spoofedFallStartY.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.groundHeights.remove(event.getPlayer().getUniqueId()); + this.spoofedFallStartY.remove(event.getPlayer().getUniqueId()); + } + + private float calculateFallDamage(double d, double d2) { + return (float)(d - d2 - 3.0); + } + + public boolean hasSpoofedFall(Player player) { + return this.spoofedFallStartY.containsKey(player.getUniqueId()); + } + + static Queue getPendingFallSnapshots(NoFall noFall) { + return noFall.pendingFallSnapshots; + } + + static Set getExemptGroundDamage(NoFall noFall) { + return noFall.exemptGroundDamage; + } + + + private static class GroundPacketListener extends PacketAdapter { + final NoFall noFall; + + GroundPacketListener(NoFall noFall, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.noFall = noFall; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPlayer().getGameMode() != GameMode.CREATIVE + && event.getPlayer().getGameMode() != GameMode.SPECTATOR + && !event.getPlayer().getAllowFlight() + && event.getPlayer().getVehicle() == null) { + PacketContainer packet = event.getPacket(); + Location location = event.getPlayer().getLocation(); + if (event.getPacketType() == Client.POSITION_LOOK || event.getPacketType() == Client.POSITION) { + location = new Location( + event.getPlayer().getWorld(), (Double)packet.getDoubles().read(0), (Double)packet.getDoubles().read(1), (Double)packet.getDoubles().read(2) + ); + } + + NoFall.getPendingFallSnapshots(this.noFall) + .add( + new FallSnapshot( + this.noFall, + location, + (Boolean)packet.getBooleans().read(0), + event.getPlayer().getLocation().getY(), + event.getPlayer().getVelocity().getY(), + event.getPlayer() + ) + ); + if (NoFall.getExemptGroundDamage(this.noFall).contains(event.getPlayer().getUniqueId())) { + packet.getBooleans().write(0, true); + } + } + } + } + + private static class ApplyFallDamageTask implements Runnable { + final PacketContainer packet; + final DeferredFallSetbackTask setbackTask; + + ApplyFallDamageTask(DeferredFallSetbackTask deferredFallSetbackTask, PacketContainer packet) { + this.setbackTask = deferredFallSetbackTask; + this.packet = packet; + } + + @Override + public void run() { + try { + ProtocolLibrary.getProtocolManager().recieveClientPacket(this.setbackTask.event.getPlayer(), this.packet, false); + } catch (Exception ex) { + this.setbackTask.noFall.getPlugin().verboseLogger.logViolation("(NoFall) Failed to deal fall damage to player: " + ex.getMessage()); + } + } + } + + private static class DeferredFallSetbackTask implements Runnable { + final PlayerMoveEvent event; + final float fallDamage; + final NoFall noFall; + + DeferredFallSetbackTask(NoFall noFall, PlayerMoveEvent event, float f) { + this.noFall = noFall; + this.event = event; + this.fallDamage = f; + } + + @Override + public void run() { + this.event.getPlayer().setFallDistance(this.fallDamage + 3.0F); + PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(Client.FLYING); + packet.getBooleans().write(0, true); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.noFall.getPlugin(), new ApplyFallDamageTask(this, packet), 1L); + this.noFall.getPlugin().verboseLogger.logViolation("(NoFall) Dealing " + this.fallDamage + " damage to " + this.event.getPlayer().getName()); + } + } + + private static class FallSnapshot { + private Location location; + private boolean onGround; + private double y; + private double deltaY; + private Player player; + final NoFall noFall; + + public FallSnapshot(NoFall noFall, Location location, boolean flag, double d, double d2, Player player) { + this.noFall = noFall; + this.location = location; + this.onGround = flag; + this.y = d; + this.deltaY = d2; + this.player = player; + } + + static Location getLocation(FallSnapshot fallSnapshot) { + return fallSnapshot.location; + } + + static boolean isOnGround(FallSnapshot fallSnapshot) { + return fallSnapshot.onGround; + } + + static double getDeltaY(FallSnapshot fallSnapshot) { + return fallSnapshot.deltaY; + } + + static double getY(FallSnapshot fallSnapshot) { + return fallSnapshot.y; + } + + static Player getPlayer(FallSnapshot fallSnapshot) { + return fallSnapshot.player; + } + } +} 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..976c1ae --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/NormalMovements.java @@ -0,0 +1,426 @@ +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.blocks.RelativeBlockCache; +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 Map stepCounts = new HashMap<>(); + private Map jumpTickCounts = new HashMap<>(); + private Map expectedMaxY = new HashMap<>(); + private static final double DELTA_TOLERANCE = 0.02; + private static final double[] JUMP_VELOCITIES = new double[]{0.42, 0.33, 0.16}; + private static final double STEP_1_HEIGHT = 0.33; + private static final double STEP_2_HEIGHT = 0.24; + private static final double STEP_3_HEIGHT = 0.16; + private static final double GRAVITY_STEP = 0.08; + private static final double WATER_ASCENT_LIMIT = 0.27; + private boolean fJump = false; + private boolean fStep = true; + private boolean fFloat = true; + private boolean fDy = true; + private boolean teleport = true; + private Set teleportExemptPlayers = new HashSet<>(); + + 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); + Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 1L, 27L); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ClearBypassTask(this), 22L, 19L)); + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + this.stepCounts.remove(event.getPlayer().getUniqueId()); + this.jumpTickCounts.remove(event.getPlayer().getUniqueId()); + this.expectedMaxY.remove(event.getPlayer().getUniqueId()); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + Player player = event.getPlayer(); + int value = 0; + + for (PotionEffect potionEffect : player.getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.JUMP)) { + value = potionEffect.getAmplifier() + 1; + } + } + + double y = event.getTo().getY() - event.getFrom().getY(); + double x = event.getTo().getX() - event.getFrom().getX(); + x = event.getTo().getZ() - event.getFrom().getZ(); + boolean flag3 = isNearPistonOrWeb(player); + if (this.fJump) { + if (flag && !flag2 && y > 0.0 && !isNearClimbable(player)) { + this.stepCounts.put(player.getUniqueId(), 0); + } + + if (flag2 || Speed.hasSolidCeiling(player) || isNearClimbable(player) || isStandingOnSlime(player) || flag3) { + this.stepCounts.remove(player.getUniqueId()); + } + + if (this.stepCounts.containsKey(player.getUniqueId())) { + int value2 = this.stepCounts.get(player.getUniqueId()); + this.stepCounts.put(player.getUniqueId(), value2 + 1); + if (y <= 0.0 + && value2 < 4 + && this.recordViolation( + player.getUniqueId(), 1, HackType.NORMALMOVEMENTS, player.getName() + " failed NormalMovements: moved unexpectedly f:jump:-1 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + + switch (value2) { + case 0: + if (NumberUtil.isWithinRange(y, JUMP_VELOCITIES[1], 0.02) || NumberUtil.isWithinRange(y, JUMP_VELOCITIES[2], 0.02)) { + this.stepCounts.remove(player.getUniqueId()); + } else if (NumberUtil.isWithinRange(y, 0.08, 0.02)) { + this.stepCounts.put(player.getUniqueId(), 5); + } else if (!NumberUtil.isWithinRange(y, value > 0 ? value / 10.0 + JUMP_VELOCITIES[0] : JUMP_VELOCITIES[0], 0.02) + && this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:0 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + + if (value > 0) { + this.stepCounts.remove(player.getUniqueId()); + } + break; + case 1: + if (!NumberUtil.isWithinRange(y, 0.33, 0.02)) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:1 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + break; + case 2: + if (!NumberUtil.isWithinRange(y, 0.24, 0.02)) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:2 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + break; + case 3: + if (!NumberUtil.isWithinRange(y, 0.16, 0.02)) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:3 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + break; + case 4: + if (!NumberUtil.isWithinRange(y, 0.08, 0.02)) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:4 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + break; + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + default: + if (y > 0.27) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:jump:" + value2 + "(dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + break; + case 12: + if (NumberUtil.isWithinRange(y, JUMP_VELOCITIES[0], 0.02)) { + this.stepCounts.put(player.getUniqueId(), 1); + } + } + } + } + + if (this.fStep && flag && flag2) { + if (value <= 1) { + if (y > 0.5625) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), 1, HackType.NORMALMOVEMENTS, player.getName() + " failed NormalMovements: moved unexpectedly f:step:0 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + } else if (y > value / 10.0 + JUMP_VELOCITIES[0]) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), 1, HackType.NORMALMOVEMENTS, player.getName() + " failed NormalMovements: moved unexpectedly f:step:0 (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.FLY); + } + } + } + + if (this.fFloat) { + if (!flag && !flag2 && NumberUtil.isWithinRange(0.0, y, 0.1) && !flag3) { + if (!this.jumpTickCounts.containsKey(player.getUniqueId())) { + this.jumpTickCounts.put(player.getUniqueId(), 0); + } + + int value3 = this.jumpTickCounts.get(player.getUniqueId()); + this.jumpTickCounts.put(player.getUniqueId(), value3 + 1); + if (value3 > 2) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), + 1, + HackType.NORMALMOVEMENTS, + player.getName() + " failed NormalMovements: moved unexpectedly f:float:" + value3 + " (dY:" + y + ")" + )) { + if (value3 < 4) { + this.handleMovementViolation(event, BadPackets.MovementCategory.SPEED); + } else { + this.handleMovementViolation(event, BadPackets.MovementCategory.GLIDE); + } + } + } + } else { + this.jumpTickCounts.remove(player.getUniqueId()); + } + } + + if (this.fDy && this.expectedMaxY.containsKey(player.getUniqueId()) && !flag3) { + double d = this.expectedMaxY.get(player.getUniqueId()); + if (player.getVelocity().getY() > -0.4 && d > -0.2 && y < -0.6) { + if (!this.teleportExemptPlayers.contains(player.getUniqueId())) { + this.teleportExemptPlayers.add(player.getUniqueId()); + } else if (this.recordViolation( + player.getUniqueId(), 1, HackType.NORMALMOVEMENTS, player.getName() + " failed NormalMovements: moved unexpectedly f:dy:- (dY:" + y + ")" + )) { + this.handleMovementViolation(event, BadPackets.MovementCategory.GLIDE); + } + } + } + + this.expectedMaxY.put(player.getUniqueId(), y); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + if (!event.getPlayer().isFlying() + && event.getPlayer().getGameMode() != GameMode.CREATIVE + && event.getPlayer().getGameMode() != GameMode.SPECTATOR + && event.getPlayer().getVehicle() == null) { + for (Entity entity : event.getPlayer().getNearbyEntities(2.0, 2.0, 2.0)) { + if (entity.getType() == EntityType.BOAT || entity.getType() == EntityType.MINECART) { + return false; + } + } + + return !this.plugin.combatLogoutListener.hasRecentDamage(event.getPlayer()) + && !this.plugin.playerState.hasActiveVelocity(event.getPlayer()) + && event.getPlayer().getVelocity().getY() < 0.5 + && Math.abs(event.getPlayer().getVelocity().getX()) < 0.5 + && Math.abs(event.getPlayer().getVelocity().getZ()) < 0.5; + } else { + return false; + } + } + + private void handleMovementViolation(PlayerMoveEvent event, BadPackets.MovementCategory movementCategory) { + if (this.teleport) { + switch (MovementCategorySwitch.SWITCH_TABLE[movementCategory.ordinal()]) { + case 1: + this.plugin.movementDispatcher.setTeleportExempt(this, event.getPlayer()); + event.getPlayer().teleport(this.plugin.movementDispatcher.getSafeLocation(event.getPlayer()), TeleportCause.UNKNOWN); + break; + case 2: + Speed speed = (Speed)this.plugin.checkManager.getDetector(HackType.SPEED); + if (speed != null) { + event.setTo(speed.getOrUpdateSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer()))); + } else { + event.setTo(event.getFrom()); + } + break; + case 3: + Glide.applySetback(event.getPlayer(), event, this, this.plugin); + } + } + } + + public void clearCaches() { + this.stepCounts.clear(); + this.jumpTickCounts.clear(); + this.expectedMaxY.clear(); + } + + public static boolean isNearClimbable(Player player) { + Block block = player.getLocation().getBlock(); + + for (BlockFace face : BlockFace.values()) { + if (block.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 isNearPistonOrWeb(Player player) { + HashSet set = new HashSet<>(); + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(player.getLocation()); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.0)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, -0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.3)); + set.add(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.0)); + + for (Block block : set) { + if (isPistonWebOrSnow(block)) { + return true; + } + + Block block2 = block.getRelative(BlockFace.UP); + if (block2.getType() == Material.WEB || block2.getRelative(BlockFace.UP).getType() == Material.WEB) { + return true; + } + } + + return false; + } + + private static boolean isPistonWebOrSnow(Block block) { + return block.getType() == Material.PISTON_BASE + || block.getType() == Material.PISTON_EXTENSION + || block.getType() == Material.PISTON_MOVING_PIECE + || block.getType() == Material.PISTON_STICKY_BASE + || block.getType() == Material.WEB + || block.getType() == Material.SNOW; + } + + + static Set getTeleportExemptPlayers(NormalMovements normalMovements) { + return normalMovements.teleportExemptPlayers; + } + + private static class DecayViolationsTask implements Runnable { + final NormalMovements normalMovements; + + DecayViolationsTask(NormalMovements normalMovements) { + this.normalMovements = normalMovements; + } + + @Override + public void run() { + for (UUID uuid : this.normalMovements.violationLevels.keySet()) { + this.normalMovements.decreaseViolationLevel(uuid, 1); + } + } + } + + private static class ClearBypassTask implements Runnable { + final NormalMovements normalMovements; + + ClearBypassTask(NormalMovements normalMovements) { + this.normalMovements = normalMovements; + } + + @Override + public void run() { + NormalMovements.getTeleportExemptPlayers(this.normalMovements).clear(); + } + } + + class MovementCategorySwitch { + static final int[] SWITCH_TABLE = new int[BadPackets.MovementCategory.values().length]; + + static { + try { + SWITCH_TABLE[BadPackets.MovementCategory.FLY.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[BadPackets.MovementCategory.SPEED.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[BadPackets.MovementCategory.GLIDE.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + } + } +} 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..353761b --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Phase.java @@ -0,0 +1,322 @@ +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.blocks.MovementObstacleChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +import org.bukkit.Bukkit; +import org.bukkit.GameMode; +import org.bukkit.Location; +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.PlayerChangedWorldEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.material.Directional; +import org.bukkit.material.Door; +import org.bukkit.material.Gate; +import org.bukkit.material.TrapDoor; + +public final class Phase extends Detector implements MoveListener { + private Set exemptPlayers = new HashSet<>(); + private Map lastSafeLocations = new HashMap<>(); + private Set frozenPlayers = new HashSet<>(); + private Map lastCollidedBlocks = new HashMap<>(); + private Set ignoredTeleportPlayers = new HashSet<>(); + private int freezeTime = 500; + + public Phase(AAC plugin) { + super(plugin); + this.freezeTime = this.plugin.getConfig().getInt("phase.freeze_time", this.freezeTime); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 69L, 47L)); + } + + @Override + public void setCurrentTick(long ticks) { + for (Player player : Bukkit.getOnlinePlayers()) { + if (!this.plugin.checkManager.isPlayerExempt(player) && !player.getGameMode().equals(GameMode.SPECTATOR) && player.getVehicle() == null) { + UUID uuid = player.getUniqueId(); + Location location = this.lastSafeLocations.containsKey(uuid) ? this.lastSafeLocations.get(uuid) : player.getLocation(); + Location location2 = player.getLocation(); + if (location != null && !location.equals(location2)) { + if (location.getWorld() == location2.getWorld() + && location.distance(location2) > 10.0 + && this.recordViolation(player.getUniqueId(), 1, HackType.PHASE, player.getName() + " failed Phase: moved too far away from safe location.")) { + this.lastCollidedBlocks.remove(player.getUniqueId()); + this.plugin.movementDispatcher.setTeleportExempt(this, player); + player.teleport(location, TeleportCause.UNKNOWN); + } else { + Block block = this.findCollidedBlock(location, location2); + if (block == null) { + this.lastSafeLocations.put(uuid, location2); + } else if (( + !location2.getBlock().equals(location.getBlock().getRelative(BlockFace.UP)) && !location2.getBlock().equals(location.getBlock()) + || !MovementObstacleChecks.isPassableBlock(location.getBlock().getRelative(BlockFace.UP)) + ) + && this.recordViolation( + player.getUniqueId(), + 1, + HackType.PHASE, + player.getName() + " failed Phase: tried to move through " + block.getType() + " at " + block.getLocation().toVector().toString() + )) { + this.lastCollidedBlocks.remove(player.getUniqueId()); + this.plugin.movementDispatcher.setTeleportExempt(this, player); + player.teleport(this.lastSafeLocations.get(uuid), TeleportCause.UNKNOWN); + } + } + } + } else { + this.lastSafeLocations.put(player.getUniqueId(), player.getLocation()); + } + } + } + + private Block findCollidedBlock(Location location, Location location2) { + if (location.getWorld() != location2.getWorld()) { + return null; + } + + int value = Math.max(location.getBlockX(), location2.getBlockX()); + int value2 = Math.min(location.getBlockX(), location2.getBlockX()); + int value3 = Math.max(location.getBlockY(), location2.getBlockY()) + 1; + int value4 = Math.min(location.getBlockY(), location2.getBlockY()); + int value5 = Math.max(location.getBlockZ(), location2.getBlockZ()); + int value6 = Math.min(location.getBlockZ(), location2.getBlockZ()); + if (value3 > 256) { + value = 256; + } + + if (value4 > 256) { + value4 = 256; + } + + for (int value7 = value2; value7 <= value; value7++) { + for (int value8 = value6; value8 <= value5; value8++) { + for (int value9 = value4; value9 <= value3; value9++) { + Block block = location.getWorld().getBlockAt(value7, value9, value8); + if ((value9 != value4 || location.getBlockY() == location2.getBlockY()) && this.passesThroughBlock(block, location, location2)) { + return block; + } + } + } + } + + return null; + } + + private boolean passesThroughBlock(Block block, Location location, Location location2) { + if (MovementObstacleChecks.isPassableBlock(block)) { + return false; + } + + double x = Math.max(location.getX(), location2.getX()); + double x2 = Math.min(location.getX(), location2.getX()); + double y = Math.max(location.getY(), location2.getY()) + 1.8; + double y2 = Math.min(location.getY(), location2.getY()); + double z = Math.max(location.getZ(), location2.getZ()); + double z2 = Math.min(location.getZ(), location2.getZ()); + double d = block.getLocation().getBlockX() + 1; + double d2 = block.getLocation().getBlockX(); + double d3 = block.getLocation().getBlockY() + 2; + double d4 = block.getLocation().getBlockY(); + double d5 = block.getLocation().getBlockZ() + 1; + double d6 = block.getLocation().getBlockZ(); + if (d4 > y2) { + d3--; + } + + if (MovementObstacleChecks.isCarpetOrPressurePlate(block)) { + Door door = (Door)block.getType().getNewData(block.getData()); + if (door.isTopHalf()) { + return false; + } + + BlockFace face = door.getFacing(); + if (door.isOpen()) { + Block block2 = block.getRelative(BlockFace.UP); + if (!MovementObstacleChecks.isCarpetOrPressurePlate(block2)) { + return false; + } + + boolean flag = (block2.getData() & 1) == 1; + if (face == BlockFace.NORTH) { + face = flag ? BlockFace.WEST : BlockFace.EAST; + } else if (face == BlockFace.EAST) { + face = flag ? BlockFace.NORTH : BlockFace.SOUTH; + } else if (face == BlockFace.SOUTH) { + face = flag ? BlockFace.EAST : BlockFace.WEST; + } else { + face = flag ? BlockFace.SOUTH : BlockFace.NORTH; + } + } + + if (face == BlockFace.WEST) { + d -= 0.8; + } + + if (face == BlockFace.EAST) { + d2 += 0.8; + } + + if (face == BlockFace.NORTH) { + d5 -= 0.8; + } + + if (face == BlockFace.SOUTH) { + d6 += 0.8; + } + } else if (MovementObstacleChecks.isFullCollisionBlock(block)) { + boolean flag2 = ((Gate)block.getType().getNewData(block.getData())).isOpen(); + if (flag2) { + return false; + } + + BlockFace face2 = ((Directional)block.getType().getNewData(block.getData())).getFacing(); + if (face2 != BlockFace.NORTH && face2 != BlockFace.SOUTH) { + d5 -= 0.2; + d6 += 0.2; + } else { + d -= 0.2; + d2 += 0.2; + } + } else if (MovementObstacleChecks.isDoorOrTrapdoor(block)) { + TrapDoor trapDoor = (TrapDoor)block.getType().getNewData(block.getData()); + if (trapDoor.isOpen()) { + return false; + } + + if (trapDoor.isInverted()) { + d4 += 0.85; + } else { + d3 -= d4 > y2 ? 0.85 : 1.85; + } + } else if (MovementObstacleChecks.isWaterloggedOrPartial(block)) { + d -= 0.2; + d2 += 0.2; + d5 -= 0.2; + d6 += 0.2; + if (x > d && x2 > d && z > d5 && z2 > d5 + || x < d2 && x2 < d2 && z > d5 && z2 > d5 + || x > d && x2 > d && z < d6 && z2 < d6 + || x < d2 && x2 < d2 && z < d6 && z2 < d6) { + return false; + } + + if (block.getRelative(BlockFace.EAST).getType() == block.getType()) { + d += 0.2; + } + + if (block.getRelative(BlockFace.WEST).getType() == block.getType()) { + d2 -= 0.2; + } + + if (block.getRelative(BlockFace.SOUTH).getType() == block.getType()) { + d5 += 0.2; + } + + if (block.getRelative(BlockFace.NORTH).getType() == block.getType()) { + d6 -= 0.2; + } + } + + boolean x3 = location.getX() < location2.getX(); + boolean y3 = location.getY() < location2.getY(); + boolean z3 = location.getZ() < location2.getZ(); + return x2 != x + && y2 <= d3 + && y >= d4 + && z2 <= d5 + && z >= d6 + && (x3 && x2 <= d2 && x >= d2 || !x3 && x2 <= d && x >= d) + || y2 != y + && x2 <= d + && x >= d2 + && z2 <= d5 + && z >= d6 + && (y3 && y2 <= d4 && y >= d4 || !y3 && y2 <= d3 && y >= d3) + || z2 != z + && x2 <= d + && x >= d2 + && y2 <= d3 + && y >= d4 + && (z3 && z2 <= d6 && z >= d6 || !z3 && z2 <= d5 && z >= d5); + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + return event.getPlayer().getVehicle() == null + && event.getPlayer().getGameMode() != GameMode.SPECTATOR + && event.getPlayer().getGameMode() != GameMode.CREATIVE + && !this.exemptPlayers.contains(event.getPlayer().getUniqueId()); + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (this.frozenPlayers.contains(event.getPlayer().getUniqueId())) { + event.setTo(this.lastSafeLocations.get(event.getPlayer().getUniqueId())); + this.frozenPlayers.remove(event.getPlayer().getUniqueId()); + } else { + if (!this.lastSafeLocations.containsKey(event.getPlayer().getUniqueId())) { + this.lastSafeLocations.put(event.getPlayer().getUniqueId(), event.getFrom()); + } + } + } + + @EventHandler + public void onPlayerTeleport(PlayerTeleportEvent event) { + this.clearCollisionHistory(event.getPlayer(), event.getTo()); + } + + @EventHandler + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.clearCollisionHistory(event.getPlayer(), event.getRespawnLocation()); + } + + @EventHandler + public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { + this.lastSafeLocations.remove(event.getPlayer().getUniqueId()); + this.lastCollidedBlocks.remove(event.getPlayer().getUniqueId()); + } + + private void clearCollisionHistory(Player player, Location location) { + this.lastSafeLocations.remove(player.getUniqueId()); + this.lastCollidedBlocks.remove(player.getUniqueId()); + } + + public void clearCaches() { + this.exemptPlayers.clear(); + this.lastSafeLocations.clear(); + this.lastCollidedBlocks.clear(); + } + + public boolean isFrozen(Player player) { + return false; + } + + + private static class DecayViolationsTask implements Runnable { + final Phase phase; + + DecayViolationsTask(Phase phase) { + this.phase = phase; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.phase.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..6905421 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/movement/Speed.java @@ -0,0 +1,1448 @@ +package me.konsolas.aac.detectors.movement; + +import com.comphenix.protocol.PacketType.Play.Client; +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.Entry; +import java.util.Map; +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.util.TPS; +import me.konsolas.aac.util.blocks.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.RelativeBlockCache; +import me.konsolas.aac.util.general.NumberUtil; +import me.konsolas.aac.util.general.PlayerItemUseReflection; +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.Boat; +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.block.BlockPlaceEvent; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; +import org.bukkit.event.player.PlayerInteractEntityEvent; +import org.bukkit.event.player.PlayerJoinEvent; +import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerRespawnEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; +import org.bukkit.event.player.PlayerTeleportEvent; +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 snapshotQueue = new ArrayBlockingQueue<>(1200); + private final AsyncProcessor primaryProcessor = new AsyncProcessor(this); + private AsyncProcessor backupProcessor = null; + private final Map diveTicks = new HashMap<>(); + private final Set leftWaterPlayers = new HashSet<>(); + private final Set exemptPlayers = new HashSet<>(); + private final ConcurrentMap moveCounts = new ConcurrentHashMap<>(); + private final ConcurrentMap customMoveCounts = new ConcurrentHashMap<>(); + private final Map sneakToggleCounts = new HashMap<>(); + private final Map useToggleCounts = new HashMap<>(); + private final Map airTicks = new HashMap<>(); + private final Map lastDistances = new HashMap<>(); + private final Map landingGraceTicks = new HashMap<>(); + private final ExpiringMap violationAccumulation; + private final Map sneakDurationTicks = new HashMap<>(); + private final Map useDurationTicks = new HashMap<>(); + private final ExpiringMap safeSetbackLocations; + private final Set airViolationWarned = new HashSet<>(); + private final Set groundedViolationTicks = new HashSet<>(); + private final Set recentUseBypassPlayers = 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 itemSpeed = 0.25; + private double soulSandSpeed = 0.35; + private double iceSpeed = 0.7; + private double jumpMultiplier = 1.5; + private boolean useMoveCounting = true; + private int maxMoves = 22; + private double speedMultiplier = 0.2; + private double slowMultiplier = 0.05; + private int maxSneakToggles = 15; + private int maxUseToggles = 15; + private int divePeriod = 20; + private double diveSpeed = 0.5; + private int vlsToBand = 6; + private int clearVlDelay = 20; + private double bandMultiplier = 3.0; + private boolean enabled = true; + private double customMaxMoves = 20.5; + private int time = 100; + private boolean bypassBand = false; + private boolean useFlags = true; + private double velMultiplier = 2.0; + private static final double BASE_AIR_DRAG = 1.0; + private static final double AIR_FRICTION = 0.99; + + 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.itemSpeed = this.plugin.getConfig().getDouble("speed.item_speed", this.itemSpeed); + this.iceSpeed = this.plugin.getConfig().getDouble("speed.ice_speed", this.iceSpeed); + this.divePeriod = this.plugin.getConfig().getInt("speed.dive_period", this.divePeriod); + this.jumpMultiplier = this.plugin.getConfig().getDouble("speed.jump_multiplier", this.jumpMultiplier); + this.useMoveCounting = this.plugin.getConfig().getBoolean("speed.use_move_counting", this.useMoveCounting); + this.maxMoves = this.plugin.getConfig().getInt("speed.max_moves", this.maxMoves); + this.speedMultiplier = this.plugin.getConfig().getDouble("speed.speed_multiplier", this.speedMultiplier); + this.slowMultiplier = this.plugin.getConfig().getDouble("speed.slow_multiplier", this.slowMultiplier); + this.maxSneakToggles = this.plugin.getConfig().getInt("speed.max_sneak_toggles", this.maxSneakToggles); + this.maxUseToggles = this.plugin.getConfig().getInt("speed.max_use_toggles", this.maxUseToggles); + this.diveSpeed = this.plugin.getConfig().getDouble("speed.dive_speed", this.diveSpeed); + this.vlsToBand = this.plugin.getConfig().getInt("speed.vls_to_band", this.vlsToBand); + this.clearVlDelay = this.plugin.getConfig().getInt("speed.clear_vl_delay", this.clearVlDelay); + this.bandMultiplier = this.plugin.getConfig().getDouble("speed.band_multiplier", this.bandMultiplier); + this.enabled = this.plugin.getConfig().getBoolean("speed.custom.enabled", this.enabled); + this.customMaxMoves = this.plugin.getConfig().getDouble("speed.custom.max_moves", this.customMaxMoves); + this.time = this.plugin.getConfig().getInt("speed.custom.time", this.time); + this.bypassBand = this.plugin.getConfig().getBoolean("speed.custom.bypass_band", this.bypassBand); + this.useFlags = this.plugin.getConfig().getBoolean("speed.use_flags", this.useFlags); + this.velMultiplier = this.plugin.getConfig().getDouble("speed.vel_multiplier", this.velMultiplier); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecaySlowTask(this), 20L, 53L)); + if (this.useMoveCounting) { + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetMoveCountTask(this), 10L, 50L)); + } + + if (this.enabled) { + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetCustomMoveCountTask(this), 10L, this.time)); + } + + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new ResetToggleCountsTask(this), 6L, 20L)); + this.violationAccumulation = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.ACCESSED).expiration(this.clearVlDelay, TimeUnit.SECONDS).build(); + this.safeSetbackLocations = ExpiringMap.builder().expirationPolicy(ExpirationPolicy.ACCESSED).expiration(2L, TimeUnit.SECONDS).build(); + BlockPlacePacketListener blockPlacePacketListener = new BlockPlacePacketListener(this, this.plugin, Client.BLOCK_PLACE); + this.packetListeners.add(blockPlacePacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(blockPlacePacketListener); + this.primaryProcessor.start(); + } + + @Override + public void setCurrentTick(long ticks) { + if (ticks % 79L == 0L) { + this.airViolationWarned.clear(); + } + } + + public static boolean hasSolidCeiling(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 isNearLowBlock(Player player) { + Block block = player.getLocation().getBlock(); + + for (BlockFace face : BlockFace.values()) { + Material material = block.getRelative(face).getType(); + if (BlockCollisionChecks.isSlabOrStair(material) || material == Material.TRAP_DOOR || material == Material.IRON_TRAPDOOR) { + return true; + } + } + + return false; + } + + @EventHandler + public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { + this.recentUseBypassPlayers.add(event.getPlayer().getUniqueId()); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearInteractBypassTask(this, event), 2L); + } + + @EventHandler + public void onBlockPlace(BlockPlaceEvent event) { + this.recentUseBypassPlayers.add(event.getPlayer().getUniqueId()); + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearPlaceBypassTask(this, event), 2L); + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR) + public void onSpeedPlayerJoin(PlayerJoinEvent event) { + this.violationLevels.put(event.getPlayer().getUniqueId(), 0); + this.safeSetbackLocations.put(event.getPlayer().getUniqueId(), event.getPlayer().getLocation()); + } + + @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH) + public void onPlayerTeleport(PlayerTeleportEvent event) { + if (this.plugin.movementDispatcher.getTeleportExempt(event.getPlayer()) == null) { + this.exemptPlayers.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearTeleportBypassTask(this, event), 10L); + } + } + + @EventHandler(ignoreCancelled = true) + public void onPlayerRespawn(PlayerRespawnEvent event) { + this.exemptPlayers.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearRespawnBypassTask(this, event), 50L); + } + + @EventHandler + public void onPlayerToggleSneak(PlayerToggleSneakEvent event) { + if (!this.plugin.checkManager.isPlayerExempt(event.getPlayer())) { + if (!this.sneakToggleCounts.containsKey(event.getPlayer().getUniqueId())) { + this.sneakToggleCounts.put(event.getPlayer().getUniqueId(), 1); + } else { + this.sneakToggleCounts.put(event.getPlayer().getUniqueId(), this.sneakToggleCounts.get(event.getPlayer().getUniqueId()) + 1); + if (this.sneakToggleCounts.get(event.getPlayer().getUniqueId()) > this.maxSneakToggles) { + if (this.plugin.checkManager.getDetector(HackType.FLY) != null && ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 3, + HackType.SPEED, + event.getPlayer().getName() + + " failed Speed: tried to toggle sneak too quickly (" + + this.sneakToggleCounts.get(event.getPlayer().getUniqueId()) + + " toggles/second)" + )) { + if (this.violationAccumulation.containsKey(event.getPlayer().getUniqueId())) { + if (this.violationAccumulation.get(event.getPlayer().getUniqueId()) > this.vlsToBand) { + event.getPlayer().teleport(this.getOrUpdateSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())), TeleportCause.UNKNOWN); + } + + this.violationAccumulation.put(event.getPlayer().getUniqueId(), this.violationAccumulation.get(event.getPlayer().getUniqueId()) + 1.0); + } else { + this.violationAccumulation.put(event.getPlayer().getUniqueId(), 1.3); + } + } + + return; + } + } + + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), "(Speed) PlayerToggleSneakEvent sneaks[m:" + this.maxSneakToggles + ",r:" + this.sneakToggleCounts.get(event.getPlayer().getUniqueId()) + "]" + ); + } + } + + @EventHandler + public void onPlayerToggleFlight(PlayerToggleFlightEvent event) { + if (!event.isFlying()) { + this.exemptPlayers.add(event.getPlayer().getUniqueId()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ClearFlightBypassTask(this, event), 50L); + } + } + + @Override + public boolean shouldProcessPlayerMove(PlayerMoveEvent event) { + if (this.exemptPlayers.contains(event.getPlayer().getUniqueId())) { + return false; + } + + if (!event.getPlayer().isDead() + && !event.getPlayer().isFlying() + && !event.getPlayer().getGameMode().equals(GameMode.SPECTATOR) + && event.getPlayer().getVehicle() == null) { + for (Entity entity : event.getPlayer().getNearbyEntities(3.0, 3.0, 3.0)) { + if (entity instanceof Boat) { + return false; + } + } + + return (this.plugin.checkManager.getDetector(HackType.FLY) == null || !((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) + && !event.getPlayer().getAllowFlight(); + } else { + this.diveTicks.put(event.getPlayer().getUniqueId(), 20); + return false; + } + } + + @Override + public void onPlayerMove(PlayerMoveEvent event, boolean flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + if (this.enabled) { + this.customMoveCounts.putIfAbsent(event.getPlayer().getUniqueId(), 0); + this.customMoveCounts.put(event.getPlayer().getUniqueId(), this.customMoveCounts.get(event.getPlayer().getUniqueId()) + 1); + if (this.customMoveCounts.get(event.getPlayer().getUniqueId()).intValue() > this.customMaxMoves * (20.0 / TPS.getTps()) * (this.time / 20.0)) { + if (this.useFlags) { + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), + "(Speed) use_move_counting customMoveEvents[m:" + + this.maxMoves * (20.0 / TPS.getTps()) + + ",r:" + + this.customMoveCounts.get(event.getPlayer().getUniqueId()) + + "]" + ); + } + + if (this.plugin.checkManager.getDetector(HackType.FLY) != null && ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.SPEED, + event.getPlayer().getName() + + " failed Speed: tried to speed up time (" + + this.customMoveCounts.get(event.getPlayer().getUniqueId()).intValue() / (this.time / 20.0) + + " moves/second)" + )) { + if (this.plugin.checkManager.getDetector(HackType.FLY) != null && ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + this.recordSafeSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())); + if (this.bypassBand) { + this.plugin.movementDispatcher.setTeleportExempt(this, event.getPlayer()); + event.getPlayer().teleport(this.getOrUpdateSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())), TeleportCause.UNKNOWN); + } else if (this.violationAccumulation.containsKey(event.getPlayer().getUniqueId())) { + if (this.violationAccumulation.get(event.getPlayer().getUniqueId()) > this.vlsToBand) { + this.plugin.movementDispatcher.setTeleportExempt(this, event.getPlayer()); + event.getPlayer().teleport(this.getOrUpdateSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())), TeleportCause.UNKNOWN); + } + + this.violationAccumulation.put(event.getPlayer().getUniqueId(), this.violationAccumulation.get(event.getPlayer().getUniqueId()) + 1.0); + } else { + this.violationAccumulation.put(event.getPlayer().getUniqueId(), 1.0); + } + } + + return; + } + } + + if (this.useMoveCounting) { + this.moveCounts.putIfAbsent(event.getPlayer().getUniqueId(), 0); + this.moveCounts.put(event.getPlayer().getUniqueId(), this.moveCounts.get(event.getPlayer().getUniqueId()) + 1); + if (this.moveCounts.get(event.getPlayer().getUniqueId()).intValue() > this.maxMoves * (20.0 / TPS.getTps()) * 2.5) { + if (this.useFlags) { + this.plugin + .verboseLogger + .logPlayerDebug( + event.getPlayer(), + "(Speed) use_move_counting moveEvents[m:" + this.maxMoves * (20.0 / TPS.getTps()) + ",r:" + this.moveCounts.get(event.getPlayer().getUniqueId()) + "]" + ); + } + + if (this.plugin.checkManager.getDetector(HackType.FLY) != null && ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.SPEED, + event.getPlayer().getName() + + " failed Speed: tried to speed up time (" + + this.moveCounts.get(event.getPlayer().getUniqueId()).intValue() / 2.5 + + " moves/second)" + )) { + if (this.plugin.checkManager.getDetector(HackType.FLY) != null && ((Fly)this.plugin.checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + this.recordSafeSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())); + if (this.violationAccumulation.containsKey(event.getPlayer().getUniqueId())) { + if (this.violationAccumulation.get(event.getPlayer().getUniqueId()) > this.vlsToBand) { + this.plugin.movementDispatcher.setTeleportExempt(this, event.getPlayer()); + event.getPlayer().teleport(this.getOrUpdateSetbackLocation(event.getPlayer(), this.plugin.movementDispatcher.getSafeLocation(event.getPlayer())), TeleportCause.UNKNOWN); + } + + this.violationAccumulation.put(event.getPlayer().getUniqueId(), this.violationAccumulation.get(event.getPlayer().getUniqueId()) + 1.0); + } else { + this.violationAccumulation.put(event.getPlayer().getUniqueId(), 1.0); + } + } + + return; + } + } + + int value = -1; + int value2 = -1; + if (event.getPlayer().hasPotionEffect(PotionEffectType.SPEED) || event.getPlayer().hasPotionEffect(PotionEffectType.SLOW)) { + for (PotionEffect potionEffect : event.getPlayer().getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.SPEED)) { + value = potionEffect.getAmplifier(); + } else if (potionEffect.getType().equals(PotionEffectType.SLOW)) { + value2 = potionEffect.getAmplifier(); + } + } + } + + int value3 = value; + int value4 = value2; + boolean flag3 = event.getPlayer().getLocation().getBlock().getType() == Material.SOUL_SAND + || event.getPlayer().getLocation().subtract(0.0, 1.0, 0.0).getBlock().getType() == Material.SOUL_SAND; + boolean flag4 = Jesus.isInOrAboveLiquid(event.getPlayer()) || event.getPlayer().getLocation().getBlock().isLiquid(); + boolean flag5 = isNearLowBlock(event.getPlayer()); + boolean flag6 = this.isSubmerged(event.getPlayer()); + Block block = event.getPlayer().getLocation().getBlock(); + boolean flag7 = hasSolidCeiling(event.getPlayer()); + boolean flag8 = this.isInWeb(event.getPlayer()); + boolean flag9 = isStandingOnIce(event.getPlayer().getLocation()); + boolean flag10 = BlockCollisionChecks.isAboveBounceBlock(relativeBlockCache); + boolean flag11 = BlockCollisionChecks.isAdjacentToSolidBlock(relativeBlockCache); + + try { + if (this.snapshotQueue.size() > 1024) { + this.plugin.getLogger().warning("Speed AsyncProcessor may not be emptying the queue quickly enough"); + this.plugin.getLogger().warning("Queue size is " + this.snapshotQueue.size()); + if (this.backupProcessor == null) { + this.plugin.getLogger().severe("(Speed) Attempting to recover by starting new consumer."); + this.backupProcessor = new AsyncProcessor(this); + this.backupProcessor.start(); + } else { + this.plugin.getLogger().severe("(Speed) No more consumers avaliable."); + } + + this.plugin.getLogger().warning("Resetting queue..."); + this.snapshotQueue.clear(); + } + + this.snapshotQueue + .add( + new MovementSnapshot( + this, + event, + flag, + flag2, + value3, + value4, + event.getPlayer().getVelocity(), + flag3, + flag4, + flag5, + flag6, + block, + flag7, + flag8, + flag9, + this.plugin.movementDispatcher.getSafeLocation(event.getPlayer()), + flag10, + flag11 + ) + ); + } 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) { + HashSet set = new HashSet<>(); + + for (Entry entry : this.safeSetbackLocations.entrySet()) { + if (((Location)entry.getValue()).getWorld().equals(event.getWorld())) { + set.add(entry.getKey()); + } + } + + for (UUID uuid : set) { + this.safeSetbackLocations.remove(uuid); + } + } + + private boolean isInWeb(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, 2.0, 0.0).getBlock().isLiquid(); + } + + public void clearCaches() { + this.violationAccumulation.clear(); + this.safeSetbackLocations.clear(); + this.snapshotQueue.clear(); + } + + @Override + public void destroy() { + super.destroy(); + this.primaryProcessor.shutdown(); + } + + private void handleSpeedViolation(Player player, double d, double d2, Location location) { + if (this.violationAccumulation.containsKey(player.getUniqueId())) { + if (d > d2 * 5.0) { + this.violationAccumulation.put(player.getUniqueId(), 10000.0); + } + + this.violationAccumulation.put(player.getUniqueId(), this.violationAccumulation.get(player.getUniqueId()) + (d - d2) * this.bandMultiplier + 2.0); + } else { + if (d > d2 * 5.0) { + this.violationAccumulation.put(player.getUniqueId(), 10000.0); + } + + this.violationAccumulation.put(player.getUniqueId(), (d - d2) * this.bandMultiplier + 2.0); + } + + Location location2 = this.getOrUpdateSetbackLocation(player, location); + if (this.violationAccumulation.get(player.getUniqueId()) > this.vlsToBand) { + Speed speed = this; + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new DeferredSetbackTask(this, player, location, speed, location2)); + } + } + + public static boolean isStandingOnIce(Location location) { + RelativeBlockCache relativeBlockCache = new RelativeBlockCache(location); + return isIceBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.6, 0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.6, 0.0)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.6, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, 0.0)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.6, 0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.6, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.6, 0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.0, 1.5, 0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 1.5, 0.0)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.0, 1.5, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 1.5, 0.0)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 1.5, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(-0.3, 1.5, 0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 1.5, -0.3)) + || isIceBlock(relativeBlockCache.getSubtractedBlock(0.3, 1.5, 0.3)); + } + + private static boolean isIceBlock(Block block) { + return block.getType() == Material.ICE || block.getType() == Material.PACKED_ICE; + } + + public Location getOrUpdateSetbackLocation(Player player, Location location) { + this.recordSafeSetbackLocation(player, location); + return this.safeSetbackLocations.get(player.getUniqueId()); + } + + private void recordSafeSetbackLocation(Player player, Location location) { + if (!this.safeSetbackLocations.containsKey(player.getUniqueId())) { + double x = Math.abs(player.getLocation().getX() - location.getX()); + double z = Math.abs(player.getLocation().getZ() - location.getZ()); + double d = Math.sqrt(Math.pow(x, 2.0) + Math.pow(z, 2.0)); + if (d < 7.0 && player.getLocation().getY() >= location.getY()) { + this.safeSetbackLocations.put(player.getUniqueId(), location); + } else { + this.safeSetbackLocations.put(player.getUniqueId(), player.getLocation()); + } + + this.plugin.verboseLogger.logPlayerDebug(player, "(Speed) Updated setback to " + this.safeSetbackLocations.get(player.getUniqueId()).toVector().toString()); + } + } + + + static ConcurrentMap getMoveCounts(Speed speed) { + return speed.moveCounts; + } + + static ConcurrentMap getCustomMoveCounts(Speed speed) { + return speed.customMoveCounts; + } + + static Map getSneakToggleCounts(Speed speed) { + return speed.sneakToggleCounts; + } + + static Map getUseToggleCounts(Speed speed) { + return speed.useToggleCounts; + } + + + static int getMaxUseToggles(Speed speed) { + return speed.maxUseToggles; + } + + + static void recordSafeSetbackLocation(Speed speed, Player player, Location location) { + speed.recordSafeSetbackLocation(player, location); + } + + static void handleSpeedViolation(Speed speed, Player player, double d, double d2, Location location) { + speed.handleSpeedViolation(player, d, d2, location); + } + + static Set getRecentUseBypassPlayers(Speed speed) { + return speed.recentUseBypassPlayers; + } + + static Set getExemptPlayers(Speed speed) { + return speed.exemptPlayers; + } + + static BlockingQueue getSnapshotQueue(Speed speed) { + return speed.snapshotQueue; + } + + + static double getSprintingSpeed(Speed speed) { + return speed.sprintingSpeed; + } + + static Set getGroundedViolationTicks(Speed speed) { + return speed.groundedViolationTicks; + } + + + static ExpiringMap getViolationAccumulation(Speed speed) { + return speed.violationAccumulation; + } + + static int getVlsToBand(Speed speed) { + return speed.vlsToBand; + } + + + static ExpiringMap getSafeSetbackLocations(Speed speed) { + return speed.safeSetbackLocations; + } + + + static Map getLandingGraceTicks(Speed speed) { + return speed.landingGraceTicks; + } + + static boolean isUseFlags(Speed speed) { + return speed.useFlags; + } + + static Map getSneakDurationTicks(Speed speed) { + return speed.sneakDurationTicks; + } + + static double getSneakingSpeed(Speed speed) { + return speed.sneakingSpeed; + } + + static Map getUseDurationTicks(Speed speed) { + return speed.useDurationTicks; + } + + static double getItemSpeed(Speed speed) { + return speed.itemSpeed; + } + + static double getIceSpeed(Speed speed) { + return speed.iceSpeed; + } + + static double getSoulSandSpeed(Speed speed) { + return speed.soulSandSpeed; + } + + static double getSurfaceSpeed(Speed speed) { + return speed.surfaceSpeed; + } + + static Map getDiveTicks(Speed speed) { + return speed.diveTicks; + } + + static double getUnderwaterSpeed(Speed speed) { + return speed.underwaterSpeed; + } + + static int getDivePeriod(Speed speed) { + return speed.divePeriod; + } + + + static Set getLeftWaterPlayers(Speed speed) { + return speed.leftWaterPlayers; + } + + static double getDiveSpeed(Speed speed) { + return speed.diveSpeed; + } + + + static double getCobwebSpeed(Speed speed) { + return speed.cobwebSpeed; + } + + static double getSpeedMultiplier(Speed speed) { + return speed.speedMultiplier; + } + + static double getSlowMultiplier(Speed speed) { + return speed.slowMultiplier; + } + + static double getJumpMultiplier(Speed speed) { + return speed.jumpMultiplier; + } + + + static Map getAirTicks(Speed speed) { + return speed.airTicks; + } + + + static Map getLastDistances(Speed speed) { + return speed.lastDistances; + } + + + static double getVelMultiplier(Speed speed) { + return speed.velMultiplier; + } + + + static Set getAirViolationWarned(Speed speed) { + return speed.airViolationWarned; + } + + + private static class DecaySlowTask implements Runnable { + final Speed speed; + + DecaySlowTask(Speed speed) { + this.speed = speed; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.speed.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private static class ClearFlightBypassTask implements Runnable { + final PlayerToggleFlightEvent event; + final Speed speed; + + ClearFlightBypassTask(Speed speed, PlayerToggleFlightEvent event) { + this.speed = speed; + this.event = event; + } + + @Override + public void run() { + Speed.getExemptPlayers(this.speed).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class DeferredSetbackTask implements Runnable { + final Player player; + final Location targetLocation; + final Speed detector; + final Location setbackLocation; + final Speed speed; + + DeferredSetbackTask(Speed speed, Player player, Location location, Speed speed2, Location location2) { + this.speed = speed; + this.player = player; + this.targetLocation = location; + this.detector = speed2; + this.setbackLocation = location2; + } + + @Override + public void run() { + if (this.player.isOnline() && !this.player.isDead() && !this.player.isFlying() && this.speed.getOrUpdateSetbackLocation(this.player, this.targetLocation) != null) { + this.speed.getPlugin().movementDispatcher.setTeleportExempt(this.detector, this.player); + this.player.teleport(this.setbackLocation, TeleportCause.UNKNOWN); + } + } + } + + class DamageCauseSwitch { + static final int[] SWITCH_TABLE = new int[DamageCause.values().length]; + + static { + try { + SWITCH_TABLE[DamageCause.ENTITY_ATTACK.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[DamageCause.PROJECTILE.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[DamageCause.ENTITY_EXPLOSION.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + } + } + + private static class ResetMoveCountTask implements Runnable { + final Speed speed; + + ResetMoveCountTask(Speed speed) { + this.speed = speed; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.getMoveCounts(this.speed).put(player.getUniqueId(), 0); + } + } + } + + private static class ResetCustomMoveCountTask implements Runnable { + final Speed speed; + + ResetCustomMoveCountTask(Speed speed) { + this.speed = speed; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.getCustomMoveCounts(this.speed).put(player.getUniqueId(), 0); + } + } + } + + private static class ResetToggleCountsTask implements Runnable { + final Speed speed; + + ResetToggleCountsTask(Speed speed) { + this.speed = speed; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Speed.getSneakToggleCounts(this.speed).put(player.getUniqueId(), 0); + Speed.getUseToggleCounts(this.speed).put(player.getUniqueId(), 0); + this.speed.decreaseViolationLevel(player.getUniqueId(), 1); + } + } + } + + private static class BlockPlacePacketListener extends PacketAdapter { + final Speed speed; + + BlockPlacePacketListener(Speed speed, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.speed = speed; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.BLOCK_PLACE) { + if (((AAC)this.plugin).checkManager.isPlayerExempt(event.getPlayer())) { + return; + } + + if (!Speed.getUseToggleCounts(this.speed).containsKey(event.getPlayer().getUniqueId())) { + Speed.getUseToggleCounts(this.speed).put(event.getPlayer().getUniqueId(), 1); + } else { + Speed.getUseToggleCounts(this.speed).put(event.getPlayer().getUniqueId(), (Integer)Speed.getUseToggleCounts(this.speed).get(event.getPlayer().getUniqueId()) + 1); + if ((Integer)Speed.getUseToggleCounts(this.speed).get(event.getPlayer().getUniqueId()) > Speed.getMaxUseToggles(this.speed)) { + if (((AAC)this.plugin).checkManager.getDetector(HackType.FLY) != null + && ((Fly)((AAC)this.plugin).checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer())) { + return; + } + + if (this.speed.recordViolation(event.getPlayer().getUniqueId(), 2, HackType.SPEED, event.getPlayer().getName() + + " failed Speed: tried to toggle use too quickly (" + + Speed.getUseToggleCounts(this.speed).get(event.getPlayer().getUniqueId()) + + " toggles/second)")) { + Speed.recordSafeSetbackLocation(this.speed, event.getPlayer(), ((AAC)this.plugin).movementDispatcher.getSafeLocation(event.getPlayer())); + Speed.handleSpeedViolation(this.speed, event.getPlayer(), 2.0, 1.0, ((AAC)this.plugin).movementDispatcher.getSafeLocation(event.getPlayer())); + } + } + } + } + } + } + + private static class ClearInteractBypassTask implements Runnable { + final PlayerInteractEntityEvent event; + final Speed speed; + + ClearInteractBypassTask(Speed speed, PlayerInteractEntityEvent event) { + this.speed = speed; + this.event = event; + } + + @Override + public void run() { + Speed.getRecentUseBypassPlayers(this.speed).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class ClearPlaceBypassTask implements Runnable { + final BlockPlaceEvent event; + final Speed speed; + + ClearPlaceBypassTask(Speed speed, BlockPlaceEvent event) { + this.speed = speed; + this.event = event; + } + + @Override + public void run() { + Speed.getRecentUseBypassPlayers(this.speed).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class ClearTeleportBypassTask implements Runnable { + final PlayerTeleportEvent event; + final Speed speed; + + ClearTeleportBypassTask(Speed speed, PlayerTeleportEvent event) { + this.speed = speed; + this.event = event; + } + + @Override + public void run() { + Speed.getExemptPlayers(this.speed).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class ClearRespawnBypassTask implements Runnable { + final PlayerRespawnEvent event; + final Speed speed; + + ClearRespawnBypassTask(Speed speed, PlayerRespawnEvent event) { + this.speed = speed; + this.event = event; + } + + @Override + public void run() { + Speed.getExemptPlayers(this.speed).remove(this.event.getPlayer().getUniqueId()); + } + } + + private static class WebSetbackTask implements Runnable { + final PlayerMoveEvent event; + final AsyncProcessor processor; + + WebSetbackTask(AsyncProcessor asyncProcessor, PlayerMoveEvent event) { + this.processor = asyncProcessor; + this.event = event; + } + + @Override + public void run() { + this.event.getPlayer().teleport((Location)Speed.getSafeSetbackLocations(this.processor.speed).get(this.event.getPlayer().getUniqueId()), TeleportCause.UNKNOWN); + } + } + + private static class AsyncProcessor extends Thread { + final Speed speed; + + private AsyncProcessor(Speed speed) { + this.speed = speed; + } + + @Override + public void run() { + try { + while (true) { + MovementSnapshot movementSnapshot = (MovementSnapshot)Speed.getSnapshotQueue(this.speed).take(); + PlayerMoveEvent event = movementSnapshot.event; + Player player = event.getPlayer(); + double x = Math.sqrt(Math.pow(movementSnapshot.velocity.getX(), 2.0) + Math.pow(movementSnapshot.velocity.getZ(), 2.0)); + double x2 = Math.sqrt(Math.pow(event.getTo().getX() - event.getFrom().getX(), 2.0) + Math.pow(event.getTo().getZ() - event.getFrom().getZ(), 2.0)); + boolean flag = this.speed.getPlugin().combatLogoutListener.hasRecentDamage(player); + StringBuilder sb = new StringBuilder(); + double d = Speed.getSprintingSpeed(this.speed); + boolean flag2 = false; + boolean flag3 = false; + if (movementSnapshot.fromOnGround && movementSnapshot.toOnGround) { + if (Speed.getGroundedViolationTicks(this.speed).contains(event.getPlayer().getUniqueId())) { + sb.append("grounded "); + flag2 = true; + } else { + Speed.getGroundedViolationTicks(this.speed).add(event.getPlayer().getUniqueId()); + } + } else { + Speed.getGroundedViolationTicks(this.speed).remove(event.getPlayer().getUniqueId()); + } + + if (!NumberUtil.isWithinRange(event.getTo().getY() - event.getFrom().getY(), -0.04, 0.062) + && movementSnapshot.blockAtFeet != null + && movementSnapshot.blockAtFeet.getType() == Material.WEB + && player.getLocation().getY() % 1.0 != 0.0 + && this.speed.recordViolation(event.getPlayer().getUniqueId(), 1, HackType.SPEED, event.getPlayer().getName() + " failed Speed: moved wrongly in a web (" + (event.getTo().getY() - event.getFrom().getY()) + ")")) { + if (Speed.getViolationAccumulation(this.speed).containsKey(event.getPlayer().getUniqueId())) { + if ((Double)Speed.getViolationAccumulation(this.speed).get(event.getPlayer().getUniqueId()) > Speed.getVlsToBand(this.speed)) { + this.speed.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(this.speed.getPlugin(), new WebSetbackTask(this, event)); + } + + Speed.getViolationAccumulation(this.speed).put(event.getPlayer().getUniqueId(), (Double)Speed.getViolationAccumulation(this.speed).get(event.getPlayer().getUniqueId()) + 1.0); + } else { + Speed.getViolationAccumulation(this.speed).put(event.getPlayer().getUniqueId(), 1.3); + } + } + + if (!NumberUtil.isWithinRange(event.getFrom().getX(), event.getTo().getX(), 0.04) || !NumberUtil.isWithinRange(event.getFrom().getZ(), event.getTo().getZ(), 0.04)) { + if (Speed.getLandingGraceTicks(this.speed).containsKey(player.getUniqueId())) { + Speed.getLandingGraceTicks(this.speed).put(player.getUniqueId(), (Integer)Speed.getLandingGraceTicks(this.speed).get(player.getUniqueId()) - 1); + if ((Integer)Speed.getLandingGraceTicks(this.speed).get(player.getUniqueId()) <= 0) { + Speed.getLandingGraceTicks(this.speed).remove(player.getUniqueId()); + } + + d *= 1.5; + d += 0.3; + } + + if (player.isSprinting() && Speed.isUseFlags(this.speed)) { + sb.append("sprinting"); + } + + if (player.isSneaking()) { + if (Speed.getSneakDurationTicks(this.speed).containsKey(player.getUniqueId())) { + Speed.getSneakDurationTicks(this.speed).put(player.getUniqueId(), (Integer)Speed.getSneakDurationTicks(this.speed).get(player.getUniqueId()) + 1); + } else { + Speed.getSneakDurationTicks(this.speed).put(player.getUniqueId(), 1); + } + + if ((Integer)Speed.getSneakDurationTicks(this.speed).get(player.getUniqueId()) > 7) { + d = Speed.getSneakingSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("sneaking "); + } + + flag3 = true; + } + } else { + Speed.getSneakDurationTicks(this.speed).remove(player.getUniqueId()); + } + + if ((!PlayerItemUseReflection.isUsingItem(player) || Speed.getRecentUseBypassPlayers(this.speed).contains(player.getUniqueId())) && !player.isBlocking()) { + Speed.getUseDurationTicks(this.speed).remove(player.getUniqueId()); + } else { + if (Speed.getUseDurationTicks(this.speed).containsKey(player.getUniqueId())) { + Speed.getUseDurationTicks(this.speed).put(player.getUniqueId(), (Integer)Speed.getUseDurationTicks(this.speed).get(player.getUniqueId()) + 1); + } else { + Speed.getUseDurationTicks(this.speed).put(player.getUniqueId(), 1); + } + + if ((Integer)Speed.getUseDurationTicks(this.speed).get(player.getUniqueId()) > 7) { + d = Speed.getItemSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("item "); + } + + flag3 = true; + } + } + + if (movementSnapshot.onIce) { + d = Speed.getIceSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("ice "); + } + } + + if (movementSnapshot.onSoulSand) { + d = Speed.getSoulSandSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("soulsand "); + } + } + + boolean flag4 = movementSnapshot.inLiquid; + boolean flag5 = false; + if (flag4 && !movementSnapshot.nearLowBlock && !flag) { + if (Speed.isUseFlags(this.speed)) { + sb.append("watersurface "); + } + + if (player.getInventory().getBoots() != null && player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER) > 0) { + flag5 = true; + switch (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER)) { + case 1: + d *= 0.5; + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider1 "); + } + break; + case 2: + d *= 0.8; + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider2 "); + } + break; + default: + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider3 "); + } + } + } else { + d = Speed.getSurfaceSpeed(this.speed); + } + } else if (Speed.getDiveTicks(this.speed).containsKey(player.getUniqueId())) { + Speed.getDiveTicks(this.speed).remove(player.getUniqueId()); + } + + if (movementSnapshot.submerged && !flag5 && !flag) { + if (Speed.isUseFlags(this.speed)) { + sb.append("underwater "); + } + + if (player.getInventory().getBoots() != null && player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER) > 0) { + switch (player.getInventory().getBoots().getEnchantmentLevel(Enchantment.DEPTH_STRIDER)) { + case 1: + d *= 0.6; + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider1 "); + } + break; + case 2: + d *= 0.8; + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider2 "); + } + break; + default: + if (Speed.isUseFlags(this.speed)) { + sb.append("depthstrider3 "); + } + } + } else { + d = Speed.getUnderwaterSpeed(this.speed); + } + } + + if (Speed.getDiveTicks(this.speed).containsKey(event.getPlayer().getUniqueId())) { + if ((Integer)Speed.getDiveTicks(this.speed).get(event.getPlayer().getUniqueId()) >= Speed.getDivePeriod(this.speed)) { + this.speed.getPlugin().verboseLogger.logPlayerDebug(event.getPlayer(), "(Speed) Finished dive"); + Speed.getDiveTicks(this.speed).remove(event.getPlayer().getUniqueId()); + Speed.getLeftWaterPlayers(this.speed).add(event.getPlayer().getUniqueId()); + } else { + Speed.getDiveTicks(this.speed).put(event.getPlayer().getUniqueId(), (Integer)Speed.getDiveTicks(this.speed).get(event.getPlayer().getUniqueId()) + 1); + d = Speed.getDiveSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("diving "); + } + } + } else { + if (flag4 && !Speed.getLeftWaterPlayers(this.speed).contains(player.getUniqueId())) { + Speed.getDiveTicks(this.speed).put(player.getUniqueId(), 0); + this.speed.getPlugin().verboseLogger.logPlayerDebug(player, "(Speed) Started dive"); + d = Speed.getDiveSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("diving "); + } + } + + if (!flag4 && !movementSnapshot.submerged && Speed.getLeftWaterPlayers(this.speed).contains(player.getUniqueId())) { + Speed.getLeftWaterPlayers(this.speed).remove(player.getUniqueId()); + if (Speed.isUseFlags(this.speed)) { + this.speed.getPlugin().verboseLogger.logPlayerDebug(player, "(Speed) Left the water"); + } + } + } + + if (movementSnapshot.inWeb) { + d = Speed.getCobwebSpeed(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("cobweb "); + } + } + + if (movementSnapshot.speedAmplifier >= 0) { + d += d * (movementSnapshot.speedAmplifier + 1) * Speed.getSpeedMultiplier(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("speed").append(movementSnapshot.speedAmplifier + 1).append(" "); + } + } + + if (movementSnapshot.slowAmplifier >= 0) { + d -= d * (movementSnapshot.slowAmplifier + 1) * Speed.getSlowMultiplier(this.speed); + if (Speed.isUseFlags(this.speed)) { + sb.append("slow").append(movementSnapshot.slowAmplifier + 1).append(" "); + } + } + + d = d * 5.0 * player.getWalkSpeed(); + if (BlockCollisionChecks.isFenceOrGate(movementSnapshot.blockAtFeet.getType()) + || movementSnapshot.hasCeiling + || movementSnapshot.nearLowBlock + || movementSnapshot.blockAtFeet.getType() == Material.SNOW + || movementSnapshot.blockAtFeet.getType() == Material.VINE + || flag + || movementSnapshot.aboveCollidable) { + if (Speed.isUseFlags(this.speed)) { + sb.append("boost "); + } + + d *= Speed.getJumpMultiplier(this.speed); + } + + if (movementSnapshot.toOnGround + && movementSnapshot.fromOnGround + && !this.speed.getPlugin().playerState.hasActiveVelocity(player) + && this.speed.getPlugin().playerState.getLastVelocityPacketTime(player) + 200L < System.currentTimeMillis()) { + if (flag && d < Speed.getSprintingSpeed(this.speed)) { + d = Speed.getSprintingSpeed(this.speed); + } + + Speed.getAirTicks(this.speed).remove(event.getPlayer().getUniqueId()); + String str = sb.toString(); + if (Speed.isUseFlags(this.speed)) { + this.speed.getPlugin().verboseLogger.logPlayerDebug(player, "(Speed) PlayerMoveEvent distance[r:" + x2 + ",t:" + d + ",f:" + str + "]"); + } + + int value = flag2 ? 2 : 1; + if (flag3 + && !flag2 + && (!Speed.getViolationAccumulation(this.speed).containsKey(event.getPlayer().getUniqueId()) || (Double)Speed.getViolationAccumulation(this.speed).get(event.getPlayer().getUniqueId()) < 2.0)) { + d += 0.1; + } + + if (x2 > d) { + if (x2 - d > 5.0) { + if (this.speed.recordViolation(player.getUniqueId(), (int)(x2 - d - 4.0) * 10 > 20 ? 20 : (int)(x2 - d - 4.0) * 10, HackType.SPEED, player.getName() + " failed Speed: tried to teleport??? (" + x2 + " blocks, expected " + d + "), f:" + str) + && ( + this.speed.getPlugin().checkManager.getDetector(HackType.FLY) == null + || !((Fly)this.speed.getPlugin().checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer()) + )) { + Speed.handleSpeedViolation(this.speed, player, x2, d, movementSnapshot.fromLocation); + } + } else if (this.speed.recordViolation(player.getUniqueId(), value, HackType.SPEED, player.getName() + " failed Speed: tried to move too quickly (" + x2 + " blocks, expected " + d + "), f:" + str) + && ( + this.speed.getPlugin().checkManager.getDetector(HackType.FLY) == null + || !((Fly)this.speed.getPlugin().checkManager.getDetector(HackType.FLY)).isSlimeLaunched(event.getPlayer()) + )) { + if (flag3) { + Speed.handleSpeedViolation(this.speed, player, x2 + 1.0, d, movementSnapshot.fromLocation); + } else { + Speed.handleSpeedViolation(this.speed, player, x2, d, movementSnapshot.fromLocation); + } + } + } + } else { + if (flag3) { + d *= Speed.getJumpMultiplier(this.speed); + } + + if (x < 0.05) { + x = 0.05; + } + + sb.append("hvel").append(x).append(' '); + Double doubleVal = (Double)Speed.getLastDistances(this.speed).get(player.getUniqueId()); + Speed.getLastDistances(this.speed).put(player.getUniqueId(), x2); + + boolean flag6 = true; + double d2 = this.speed.getPlugin().playerState.getLastHorizontalVelocity(player); + long ticks = this.speed.getPlugin().playerState.getLastVelocityPacketTime(player); + long ticks2; + if (ticks != Long.MIN_VALUE) { + ticks2 = System.currentTimeMillis() - ticks; + } else { + ticks2 = Long.MAX_VALUE; + } + + boolean flag7 = ticks2 < 200L || this.speed.getPlugin().playerState.hasActiveVelocity(event.getPlayer()); + if (movementSnapshot.fromOnGround && !flag7 && ticks2 > 100L) { + sb.append("takeoff "); + double d3 = d; + d3 += d3 * (Speed.getSpeedMultiplier(this.speed) * (movementSnapshot.speedAmplifier + 1)); + d3 -= d3 * (Speed.getSlowMultiplier(this.speed) * (movementSnapshot.slowAmplifier + 1)); + d3 += player.getWalkSpeed(); + d = d3; + if (x2 <= d) { + flag6 = false; + } + } else if (movementSnapshot.toOnGround && !flag7 && ticks2 > 100L) { + sb.append("landing "); + d *= 1.2; + if (x2 <= d) { + flag6 = false; + } + + Speed.getLandingGraceTicks(this.speed).put(player.getUniqueId(), 2); + } else if (flag7 && !this.speed.getPlugin().combatLogoutListener.hasRecentDamage(player)) { + sb.append("velocity "); + flag6 = false; + d = x * Speed.getVelMultiplier(this.speed) > d2 ? x * Speed.getVelMultiplier(this.speed) : d2; + if (x2 <= d) { + flag6 = false; + } + } else if (this.speed.getPlugin().combatLogoutListener.hasRecentDamage(player) || flag7) { + sb.append("damaged "); + flag6 = false; + DamageCause damageCause = this.speed.getPlugin().combatLogoutListener.getLastDamageCause(player); + switch (DamageCauseSwitch.SWITCH_TABLE[damageCause.ordinal()]) { + case 1: + case 2: + sb.append("attacked"); + d = Speed.getSprintingSpeed(this.speed) * Speed.getJumpMultiplier(this.speed) + d2 * Speed.getVelMultiplier(this.speed); + break; + case 3: + sb.append("blownup"); + d = Speed.getSprintingSpeed(this.speed) * Speed.getJumpMultiplier(this.speed) + x * 1.5 * Speed.getVelMultiplier(this.speed); + break; + default: + d = Speed.getSprintingSpeed(this.speed) * Speed.getJumpMultiplier(this.speed) * 1.0; + } + } + + if (!flag7 && !this.speed.getPlugin().combatLogoutListener.hasRecentDamage(event.getPlayer()) && movementSnapshot.underCollidable) { + d = Speed.getSprintingSpeed(this.speed) * Speed.getJumpMultiplier(this.speed); + } + + if (flag6) { + if (Speed.getAirTicks(this.speed).containsKey(player.getUniqueId())) { + Speed.getAirTicks(this.speed).put(player.getUniqueId(), (Integer)Speed.getAirTicks(this.speed).get(player.getUniqueId()) + 1); + } else { + Speed.getAirTicks(this.speed).put(player.getUniqueId(), 0); + } + + int value2 = (Integer)Speed.getAirTicks(this.speed).get(event.getPlayer().getUniqueId()); + sb.append("phase").append(value2).append(' '); + double d4 = NumberUtil.pow(1.0, 0.99, (Integer)Speed.getAirTicks(this.speed).get(event.getPlayer().getUniqueId())); + d4 += d4 * (Speed.getSpeedMultiplier(this.speed) * (movementSnapshot.speedAmplifier + 1)); + d4 -= d4 * (Speed.getSlowMultiplier(this.speed) * (movementSnapshot.slowAmplifier + 1)); + d4 += player.getWalkSpeed(); + d *= d4; + } + + String str2 = sb.toString(); + if (Speed.isUseFlags(this.speed)) { + this.speed.getPlugin().verboseLogger.logPlayerDebug(player, "(Speed) AirPlayerMoveEvent distance[r:" + x2 + ",t:" + d + ",f:" + str2 + "]"); + } + + if (x2 > d) { + if (!Speed.getAirViolationWarned(this.speed).contains(event.getPlayer().getUniqueId()) && !(x2 - d > 0.8)) { + Speed.getAirViolationWarned(this.speed).add(event.getPlayer().getUniqueId()); + } else if (this.speed.recordViolation(player.getUniqueId(), 1, HackType.SPEED, player.getName() + " failed Speed: moved too quickly midair (" + x2 + " blocks, expected " + d + "), f:" + str2)) { + Speed.handleSpeedViolation(this.speed, player, x2, d, movementSnapshot.fromLocation); + } + } + } + } + } + } catch (InterruptedException ex) { + this.speed.getPlugin().getLogger().info("Speed AsyncProcessor is exiting due to an interrupt"); + } catch (Exception ex2) { + this.speed.getPlugin().getLogger().warning("(Speed) (AsyncProcessor) WARNING: Automatically handled possible error"); + ex2.printStackTrace(); + Speed.getSnapshotQueue(this.speed).clear(); + this.run(); + } + } + + public void shutdown() { + this.interrupt(); + } + + } + + private static class MovementSnapshot { + PlayerMoveEvent event; + boolean fromOnGround; + boolean toOnGround; + int speedAmplifier; + int slowAmplifier; + Vector velocity; + boolean onSoulSand; + boolean inLiquid; + boolean nearLowBlock; + boolean submerged; + Block blockAtFeet; + boolean hasCeiling; + boolean inWeb; + boolean onIce; + Location fromLocation; + boolean underCollidable; + boolean aboveCollidable; + final Speed speed; + + MovementSnapshot( + Speed speed, + PlayerMoveEvent event, + boolean flag, + boolean flag2, + int i, + int i2, + Vector vector, + boolean flag3, + boolean flag4, + boolean flag5, + boolean flag6, + Block block, + boolean flag7, + boolean flag8, + boolean flag9, + Location location, + boolean flag10, + boolean flag11 + ) { + this.speed = speed; + this.event = event; + this.fromOnGround = flag; + this.toOnGround = flag2; + this.speedAmplifier = i; + this.slowAmplifier = i2; + this.velocity = vector; + this.onSoulSand = flag3; + this.inLiquid = flag4; + this.nearLowBlock = flag5; + this.submerged = flag6; + this.blockAtFeet = block; + this.hasCeiling = flag7; + this.inWeb = flag8; + this.onIce = flag9; + this.fromLocation = location; + this.underCollidable = flag10; + this.aboveCollidable = flag11; + } + } +} 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..2796328 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/FastBreak.java @@ -0,0 +1,105 @@ +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 Map breakStartTimes = new HashMap<>(); + private Map targetBlocks = new HashMap<>(); + private 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) { + if (event.getClickedBlock().equals(this.targetBlocks.get(event.getPlayer().getUniqueId()))) { + long now = System.currentTimeMillis(); + long ticks = this.breakStartTimes.get(event.getPlayer().getUniqueId()); + long ticks2 = now - ticks / 50L; + if (ticks2 >= BlockUtil.getBreakTicks(event.getClickedBlock().getType(), event.getPlayer())) { + this.breakStartTimes.put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + } else { + this.targetBlocks.put(event.getPlayer().getUniqueId(), event.getClickedBlock()); + this.breakStartTimes.put(event.getPlayer().getUniqueId(), System.currentTimeMillis()); + } + + if (this.checkDelay && this.lastBreakTimes.containsKey(event.getPlayer().getUniqueId()) && BlockUtil.getHasteLevel(event.getPlayer()) == 0) { + long ticks3 = this.lastBreakTimes.get(event.getPlayer().getUniqueId()); + long now2 = System.currentTimeMillis(); + if (now2 - ticks3 < 100L + && event.getClickedBlock() != null + && BlockUtil.getBreakTicks(event.getClickedBlock().getType(), event.getPlayer()) >= 1L + && this.recordViolation( + event.getPlayer().getUniqueId(), + 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.isPlayerExempt(event.getPlayer())) { + if (!event.getBlock().equals(this.targetBlocks.get(event.getPlayer().getUniqueId())) + && this.recordViolation( + event.getPlayer().getUniqueId(), 1, HackType.FASTBREAK, event.getPlayer().getName() + " failed FastBreak: broke the wrong block" + ) + && this.cancelBreak) { + event.setCancelled(true); + } + + if (this.breakStartTimes.containsKey(event.getPlayer().getUniqueId())) { + long now = System.currentTimeMillis(); + long ticks = this.breakStartTimes.get(event.getPlayer().getUniqueId()); + long ticks2 = (now - ticks) / 50L; + long ticks3 = BlockUtil.getBreakTicks(event.getBlock().getType(), event.getPlayer()); + if (ticks3 == 0L) { + return; + } + + if (ticks2 + this.letTicks < ticks3) { + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.FASTBREAK, + event.getPlayer().getName() + " failed FastBreak: tried to break blocks too quickly (" + ticks2 + ", expected " + ticks3 + ")" + ) + && this.cancelBreak) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } + } + + this.lastBreakTimes.put(event.getPlayer().getUniqueId(), 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..216f7a8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/FastPlace.java @@ -0,0 +1,55 @@ +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 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().getItemInHand().getType() != Material.FLINT_AND_STEEL + && event.getPlayer().getGameMode() != GameMode.CREATIVE + && !this.plugin.checkManager.isPlayerExempt(event.getPlayer())) { + if (!event.getPlayer().getItemInHand().isSimilar(new ItemStack(Material.INK_SACK, 1, (short)15))) { + if (this.lastPlaceTimes.containsKey(event.getPlayer().getUniqueId())) { + long now = System.currentTimeMillis(); + long ticks = this.lastPlaceTimes.get(event.getPlayer().getUniqueId()); + if (now - ticks < this.minDelay) { + if (this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.FASTBREAK, + event.getPlayer().getName() + " failed FastPlace: tried to place blocks too quickly (" + (now - ticks) + " ms)" + ) + && this.cancelPlace) { + event.setCancelled(true); + } + } else { + this.decreaseViolationLevel(event.getPlayer().getUniqueId(), 1); + } + } + + this.lastPlaceTimes.put(event.getPlayer().getUniqueId(), 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..44f302d --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/ImpossibleInteract.java @@ -0,0 +1,302 @@ +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.BlockCollisionChecks; +import me.konsolas.aac.util.blocks.BlockUtil; +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.isPlayerExempt(event.getPlayer())) { + return; + } + + if (this.cancelGhosthand) { + if (BlockUtil.getBreakTicks(event.getClickedBlock().getType(), event.getPlayer()) < 2L) { + return; + } + + BlockIterator blockIterator; + try { + blockIterator = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean flag = true; + boolean flag2 = false; + + while (blockIterator.hasNext()) { + Block block = blockIterator.next(); + if (block.equals(event.getClickedBlock())) { + flag2 = true; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block) && !flag2) { + flag = false; + } + } + + if (!flag && flag2) { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new VerifyLineOfSightTask(this, 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.isPlayerExempt(event.getPlayer())) { + if (BlockUtil.getBreakTicks(event.getBlock().getType(), event.getPlayer()) > 2L) { + if (this.cancelGhosthand) { + BlockIterator blockIterator; + try { + blockIterator = new BlockIterator(event.getPlayer(), 6); + } catch (IllegalStateException ex) { + return; + } + + boolean flag = false; + + while (blockIterator.hasNext()) { + Block block = blockIterator.next(); + if (block.equals(event.getBlock())) { + flag = true; + break; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block)) { + break; + } + } + + if (!flag + && 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.isPlayerExempt(event.getPlayer())) { + Material material = event.getBlockAgainst().getType(); + if ((material == Material.LAVA || material == Material.WATER || material == Material.STATIONARY_LAVA || material == Material.STATIONARY_WATER) + && this.cancelLiquids + && event.getPlayer().getItemInHand().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 blockIterator; + try { + blockIterator = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean flag = true; + boolean flag2 = false; + + while (blockIterator.hasNext()) { + Block block = blockIterator.next(); + if (block.equals(event.getBlockAgainst())) { + flag2 = true; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block) && !block.equals(event.getBlock()) && !flag2) { + flag = false; + } + } + + if (!flag) { + event.setCancelled(true); + } + } + } + } + + @EventHandler + public void onInventoryOpen(InventoryOpenEvent event) { + if (this.cancelGhosthand) { + try { + if (this.plugin.checkManager.isPlayerExempt((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 blockIterator; + try { + blockIterator = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean flag = true; + boolean flag2 = false; + + while (blockIterator.hasNext()) { + Block block = blockIterator.next(); + if (block.equals(((BlockState)doubleChest.getLeftSide()).getBlock()) || block.equals(((BlockState)doubleChest.getRightSide()).getBlock())) { + flag2 = true; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block) && !flag2) { + flag = false; + } + } + + if (!flag + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)" + )) { + event.setCancelled(true); + return; + } + } else { + Block block2; + try { + block2 = ((BlockState)event.getInventory().getHolder()).getBlock(); + } catch (Exception ex2) { + return; + } + + BlockIterator blockIterator2; + try { + blockIterator2 = new BlockIterator(event.getPlayer(), 7); + } catch (IllegalStateException ex3) { + return; + } + + boolean flag3 = true; + boolean flag4 = false; + + while (blockIterator2.hasNext()) { + Block block3 = blockIterator2.next(); + if (block3.equals(block2)) { + flag4 = true; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block3) && !flag4) { + flag3 = false; + } + } + + if (!flag3 + && this.recordViolation( + event.getPlayer().getUniqueId(), + 2, + HackType.IMPOSSIBLEINTERACT, + event.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)" + )) { + event.setCancelled(true); + return; + } + } + + return; + } + + return; + } + + return; + } catch (ClassCastException ex4) { + } + } + } + + + private static class VerifyLineOfSightTask implements Runnable { + final PlayerInteractEvent event; + final ImpossibleInteract impossibleInteract; + + VerifyLineOfSightTask(ImpossibleInteract impossibleInteract, PlayerInteractEvent event) { + this.impossibleInteract = impossibleInteract; + this.event = event; + } + + @Override + public void run() { + BlockIterator blockIterator; + try { + blockIterator = new BlockIterator(this.event.getPlayer(), 7); + } catch (IllegalStateException ex) { + return; + } + + boolean flag = true; + boolean flag2 = false; + + while (blockIterator.hasNext()) { + Block block = blockIterator.next(); + if (block.equals(this.event.getClickedBlock())) { + flag2 = true; + } + + if (BlockCollisionChecks.isSolidGroundBlock(block) && !flag2) { + flag = false; + } + } + + if (!flag + && flag2 + && this.impossibleInteract.recordViolation(this.event.getPlayer().getUniqueId(), 2, HackType.IMPOSSIBLEINTERACT, this.event.getPlayer().getName() + " failed ImpossibleInteract: interacted through a block (GhostHand)")) { + this.event.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..45b37ce --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/NoSwing.java @@ -0,0 +1,120 @@ +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); + AttackSwingPacketListener attackSwingPacketListener = new AttackSwingPacketListener(this, this.plugin, WrapperPlayClientUseEntity.TYPE); + this.packetListeners.add(attackSwingPacketListener); + ProtocolLibrary.getProtocolManager().addPacketListener(attackSwingPacketListener); + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + if (event.getPlayer().getGameMode() != GameMode.CREATIVE && !this.plugin.checkManager.isPlayerExempt(event.getPlayer())) { + long now = System.currentTimeMillis(); + Player player = event.getPlayer(); + AAC plugin = this.plugin; + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new VerifyBreakSwingTask(this, plugin, player, now), 5L); + } + } + + + private static class VerifyAttackSwingTask implements Runnable { + final AAC plugin; + final Player player; + final long timestamp; + final AttackSwingPacketListener listener; + + VerifyAttackSwingTask(AttackSwingPacketListener attackSwingPacketListener, AAC plugin, Player player, long ticks) { + this.listener = attackSwingPacketListener; + this.plugin = plugin; + this.player = player; + this.timestamp = ticks; + } + + @Override + public void run() { + this.plugin + .verboseLogger + .logPlayerDebug(this.player, "(NoSwing) PlayClientUseEntity lastAnimated[e:" + this.timestamp + ",r:" + this.plugin.playerState.getLastArmSwingTime(this.player) + "]"); + + try { + if (!NumberUtil.isWithinRange(this.timestamp, this.plugin.playerState.getLastArmSwingTime(this.player), 300 + Ping.getPing(this.player))) { + this.listener.noSwing.recordViolation(this.player.getUniqueId(), 1, HackType.NOSWING, this.player.getName() + " failed NoSwing: didn't swing arm (attack)"); + } else { + this.listener.noSwing.decreaseViolationLevel(this.player.getUniqueId(), 2); + } + } catch (NullPointerException ex) { + } + } + } + + private static class AttackSwingPacketListener extends PacketAdapter { + final NoSwing noSwing; + + AttackSwingPacketListener(NoSwing noSwing, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.noSwing = noSwing; + } + + public void onPacketReceiving(PacketEvent event) { + if (!((AAC)this.plugin).checkManager.isPlayerExempt(event.getPlayer())) { + if (event.getPacketType() != WrapperPlayClientUseEntity.TYPE || new WrapperPlayClientUseEntity(event.getPacket()).getType() == EntityUseAction.ATTACK) { + long now = System.currentTimeMillis(); + Player player = event.getPlayer(); + AAC plugin = (AAC)this.plugin; + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new VerifyAttackSwingTask(this, plugin, player, now), 5L); + } + } + } + } + + private static class VerifyBreakSwingTask implements Runnable { + final AAC plugin; + final Player player; + final long timestamp; + final NoSwing noSwing; + + VerifyBreakSwingTask(NoSwing noSwing, AAC plugin, Player player, long ticks) { + this.noSwing = noSwing; + this.plugin = plugin; + this.player = player; + this.timestamp = ticks; + } + + @Override + public void run() { + this.plugin + .verboseLogger + .logPlayerDebug(this.player, "(NoSwing) BlockBreakEvent lastAnimated[e:" + this.timestamp + ",r:" + this.plugin.playerState.getLastArmSwingTime(this.player) + "]"); + + try { + if (!NumberUtil.isWithinRange(this.timestamp, this.plugin.playerState.getLastArmSwingTime(this.player), 299 + Ping.getPing(this.player))) { + this.noSwing.recordViolation(this.player.getUniqueId(), 1, HackType.NOSWING, this.player.getName() + " failed NoSwing: didn't swing arm (block break)"); + } else { + this.noSwing.decreaseViolationLevel(this.player.getUniqueId(), 2); + } + } catch (NullPointerException ex) { + } + } + } +} 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..2c800b3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/Nuker.java @@ -0,0 +1,92 @@ +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 Map breakCounts = new HashMap<>(); + private 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 ResetBreakCountTask(this), 6L, 20L)); + this.scheduledTaskIds.add(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayViolationsTask(this), 6L, 50L)); + } + + @EventHandler + public void onBlockBreak(BlockBreakEvent event) { + if (!this.plugin.checkManager.isPlayerExempt(event.getPlayer())) { + if (!this.lastBrokenPositions.containsKey(event.getPlayer().getUniqueId()) + || !this.lastBrokenPositions.get(event.getPlayer().getUniqueId()).equals(event.getBlock().getLocation().toVector())) { + if (!this.breakCounts.containsKey(event.getPlayer().getUniqueId())) { + this.breakCounts.put(event.getPlayer().getUniqueId(), 1); + } else { + this.breakCounts.put(event.getPlayer().getUniqueId(), this.breakCounts.get(event.getPlayer().getUniqueId()) + 1); + if (this.breakCounts.get(event.getPlayer().getUniqueId()) > this.maxBreaksPerSecond) { + if (this.breakCounts.get(event.getPlayer().getUniqueId()) % this.vlDivisor == 0 + && this.recordViolation( + event.getPlayer().getUniqueId(), + 1, + HackType.NUKER, + event.getPlayer().getName() + " failed Nuker: broke too many blocks (" + this.breakCounts.get(event.getPlayer().getUniqueId()) + " blocks/second)" + )) { + event.setCancelled(true); + } + + return; + } + } + + this.lastBrokenPositions.put(event.getPlayer().getUniqueId(), event.getBlock().getLocation().toVector()); + } + } + } + + static Map getBreakCounts(Nuker nuker) { + return nuker.breakCounts; + } + + + private static class ResetBreakCountTask implements Runnable { + final Nuker nuker; + + ResetBreakCountTask(Nuker nuker) { + this.nuker = nuker; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + Nuker.getBreakCounts(this.nuker).put(player.getUniqueId(), 0); + } + } + } + + private static class DecayViolationsTask implements Runnable { + final Nuker nuker; + + DecayViolationsTask(Nuker nuker) { + this.nuker = nuker; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.nuker.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..0f8cfea --- /dev/null +++ b/src/main/java/me/konsolas/aac/detectors/world/PlayerRadar.java @@ -0,0 +1,157 @@ +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 me.konsolas.aac.util.blocks.RelativeBlockCache; +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 shouldProcessPlayerMove(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 flag, boolean flag2, RelativeBlockCache relativeBlockCache, RelativeBlockCache relativeBlockCache2) { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (player.getWorld().equals(event.getPlayer().getWorld()) && !player.equals(event.getPlayer())) { + Player player2 = event.getPlayer(); + if (!(player2.getLocation().distanceSquared(player.getLocation()) < this.requiredDist * this.requiredDist) + && !(player2.getLocation().distanceSquared(player.getLocation()) > this.maxDist * this.maxDist)) { + Vector vector = player.getLocation().toVector(); + Vector vector2 = player.getLocation().add(0.0, 1.9, 0.0).toVector(); + Vector vector3 = player2.getLocation().toVector(); + Vector vector4 = player2.getLocation().add(0.0, 1.9, 0.0).toVector(); + int value = (int)vector3.distance(vector); + Vector vector5 = vector3.clone().subtract(vector).normalize(); + Vector vector6 = vector4.clone().subtract(vector).normalize(); + Vector vector7 = vector3.clone().subtract(vector2).normalize(); + Vector vector8 = vector4.clone().subtract(vector2).normalize(); + Vector vector9 = vector.clone(); + boolean flag3 = true; + + for (int value2 = 0; value2 < value; value2++) { + Block block = player2.getWorld().getBlockAt(vector9.toLocation(player2.getWorld())); + if (!BlockUtil.isTransparent(block.getType())) { + flag3 = false; + break; + } + + vector9.add(vector5); + } + + vector9 = vector.clone(); + if (!flag3) { + flag3 = true; + + for (int value3 = 0; value3 < value; value3++) { + Block block2 = player2.getWorld().getBlockAt(vector9.toLocation(player2.getWorld())); + if (!BlockUtil.isTransparent(block2.getType())) { + if (player.canSee(player2)) { + player.hidePlayer(player2); + } + + if (player2.canSee(player)) { + player2.hidePlayer(player); + } + + flag3 = false; + break; + } + + vector9.add(vector6); + } + } + + vector9 = vector2.clone(); + if (!flag3) { + flag3 = true; + + for (int value4 = 0; value4 < value; value4++) { + Block block3 = player2.getWorld().getBlockAt(vector9.toLocation(player2.getWorld())); + if (!BlockUtil.isTransparent(block3.getType())) { + if (player.canSee(player2)) { + player.hidePlayer(player2); + } + + if (player2.canSee(player)) { + player2.hidePlayer(player); + } + + flag3 = false; + break; + } + + vector9.add(vector7); + } + } + + vector9 = vector2.clone(); + if (!flag3) { + flag3 = true; + + for (int value5 = 0; value5 < value; value5++) { + Block block4 = player2.getWorld().getBlockAt(vector9.toLocation(player2.getWorld())); + if (!BlockUtil.isTransparent(block4.getType())) { + if (player.canSee(player2)) { + player.hidePlayer(player2); + } + + if (player2.canSee(player)) { + player2.hidePlayer(player); + } + + flag3 = false; + break; + } + + vector9.add(vector8); + } + } + + if (flag3 && !player.canSee(player2)) { + player.showPlayer(player2); + } + + if (flag3 && !player2.canSee(player)) { + player2.showPlayer(player); + } + } else { + if (!player.canSee(player2)) { + player.showPlayer(player2); + } + + if (!player2.canSee(player)) { + player2.showPlayer(player); + } + } + } + } + } + + @Override + public void destroy() { + super.destroy(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + for (Player player2 : Bukkit.getServer().getOnlinePlayers()) { + player.showPlayer(player2); + } + } + } +} 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..c2cde7a --- /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 Player viewer; + + public GUIBase(Player player, AAC plugin, int i, String str) { + this.viewer = player; + this.plugin = plugin; + player.closeInventory(); + this.inventory = Bukkit.createInventory(null, i, str); + Bukkit.getServer().getPluginManager().registerEvents(this, plugin); + } + + protected void setMenuItem(int i, ItemStack item, int i2, String str, List list) { + ItemStack item2 = new ItemStack(item); + ItemMeta itemMeta = item2.getItemMeta(); + itemMeta.setLore(list); + itemMeta.addItemFlags(new ItemFlag[]{ItemFlag.HIDE_ENCHANTS}); + itemMeta.addEnchant(Enchantment.DURABILITY, i2, true); + itemMeta.setDisplayName(str); + item2.setItemMeta(itemMeta); + this.inventory.setItem(i, item2); + } + + protected List splitLore(String str, String str2) { + ArrayList list = new ArrayList(); + String[] strArray = str.split(str2); + Collections.addAll(list, strArray); + return list; + } + + @EventHandler + public void onInventoryClick(InventoryClickEvent event) { + if (event.getInventory().getName().equals(this.inventory.getName()) + && event.getWhoClicked().getUniqueId().equals(this.getViewer().getUniqueId()) + && event.getCurrentItem() != null + && event.getCurrentItem().getType() != Material.AIR) { + event.setCancelled(true); + this.destroy(); + int value = event.getCurrentItem().getEnchantmentLevel(Enchantment.DURABILITY); + this.onSlotClick(value); + } + } + + @Override + public void destroy() { + HandlerList.unregisterAll(this); + this.viewer.closeInventory(); + } + + public Player getViewer() { + return this.viewer; + } + + protected abstract void onSlotClick(int i); +} 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..7d1013d --- /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, computeInventorySize(HackType.values().length), "§6AAC: Manage checks"); + + for (HackType hackType : HackType.values()) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + this.setMenuItem( + hackType.getId(), + new ItemStack(Material.EMERALD_BLOCK), + hackType.getId(), + hackType.toString(), + this.splitLore("Click to disable the /" + hackType.getName() + " check.", "/") + ); + } else { + this.setMenuItem( + hackType.getId(), + new ItemStack(Material.REDSTONE_BLOCK), + hackType.getId(), + hackType.toString(), + this.splitLore("Click to enable the /" + hackType.getName() + " check.", "/") + ); + } + } + + player.openInventory(this.inventory); + } + + private static int computeInventorySize(int i) { + if (i <= 0) { + return 9; + } + + int value = (int)Math.ceil(i / 9.0); + return value > 5 ? 54 : value * 9; + } + + @Override + protected void onSlotClick(int i) { + for (HackType hackType : HackType.values()) { + if (hackType.getId() == i) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + this.plugin.checkManager.disableCheck(hackType, false); + this.plugin.verboseLogger.logViolation("Check " + hackType + " was disabled by " + this.getViewer().getName()); + } else { + this.plugin.checkManager.enableCheck(hackType, false); + this.plugin.verboseLogger.logViolation("Check " + hackType + " was enabled by " + this.getViewer().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..f533ab8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/admin/HomeGUI.java @@ -0,0 +1,59 @@ +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.setMenuItem(10, new ItemStack(Material.BED), 1, "Reload AAC", this.splitLore("Use this when you make changes/to the configuration file", "/")); + this.setMenuItem(16, new ItemStack(Material.REDSTONE_COMPARATOR), 2, "Manage Checks", this.splitLore("Enable or disable checks in /AAC", "/")); + this.setMenuItem(12, new ItemStack(Material.BOOK), 3, "List possible hackers", this.splitLore("List players in order of their /violations", "/")); + this.setMenuItem(14, new ItemStack(Material.REDSTONE), 4, "Toggle verbose output", this.splitLore("Toggle verbose output generated /by AAC for yourself", "/")); + player.openInventory(this.inventory); + } + + @Override + protected void onSlotClick(int i) { + switch (i) { + case 1: + this.getViewer().sendMessage(AAC.messagePrefix + "Reload request has been registered."); + this.plugin.verboseLogger.logViolation("Reload requested by " + this.getViewer().getName()); + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new ReloadPluginTask(this), 1L); + break; + case 2: + new CheckGUI(this.plugin, this.getViewer()); + break; + case 3: + new PlayerViolationsGUI(this.plugin, this.getViewer()); + break; + case 4: + if (this.plugin.verboseLogger.verboseExclusions.contains(this.getViewer().getUniqueId())) { + this.plugin.verboseLogger.verboseExclusions.remove(this.getViewer().getUniqueId()); + this.getViewer().sendMessage(AAC.messagePrefix + "AAC will now give you verbose output."); + } else { + this.plugin.verboseLogger.verboseExclusions.add(this.getViewer().getUniqueId()); + this.getViewer().sendMessage(AAC.messagePrefix + "AAC will no longer give you verbose output."); + } + } + } + + + private static class ReloadPluginTask implements Runnable { + final HomeGUI homeGui; + + ReloadPluginTask(HomeGUI homeGUI) { + this.homeGui = homeGUI; + } + + @Override + public void run() { + this.homeGui.plugin.disable(); + } + } +} 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..3530505 --- /dev/null +++ b/src/main/java/me/konsolas/aac/gui/admin/PlayerViolationsGUI.java @@ -0,0 +1,61 @@ +package me.konsolas.aac.gui.admin; + +import java.util.HashMap; +import java.util.Map.Entry; +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"); + HashMap map = new HashMap<>(); + int value = 0; + + for (Player player2 : Bukkit.getServer().getOnlinePlayers()) { + if (++value >= 54) { + break; + } + + map.put(player2.getName(), 0); + + for (HackType hackType : HackType.values()) { + if (this.plugin.checkManager.isCheckEnabled(hackType)) { + map.put(player2.getName(), (Integer)map.get(player2.getName()) + this.plugin.checkManager.getDetector(hackType).getRecentViolationCount(player2)); + } + } + } + + Map map2 = MapUtil.sortDescendingByValue(map); + value = 0; + + for (Entry entry : map2.entrySet()) { + this.setMenuItem( + value++, createPlayerSkull(Bukkit.getPlayer((String)entry.getKey()), (String)entry.getKey()), value, (String)entry.getKey(), this.splitLore("VL: " + entry.getValue(), "/") + ); + } + + player.openInventory(this.inventory); + } + + private static ItemStack createPlayerSkull(Player player, String str) { + ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short)SkullType.PLAYER.ordinal()); + SkullMeta skullMeta = (SkullMeta)item.getItemMeta(); + skullMeta.setOwner(player.getName()); + skullMeta.setDisplayName(str); + item.setItemMeta(skullMeta); + return item; + } + + @Override + protected void onSlotClick(int i) { + } +} 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..f9468f8 --- /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 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); + } + } + + public void setHeuristicScore(Player player, int i) { + this.scores.put(player.getUniqueId(), i > 0 ? i : 0); + } + + public int getHeuristicScore(Player player) { + try { + this.updateScore(player); + return this.scores.get(player.getUniqueId()); + } catch (NullPointerException ex) { + return 0; + } + } + + public abstract int getDetectionChance(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..87bf540 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/AccuracyHeuristic.java @@ -0,0 +1,110 @@ +package me.konsolas.aac.heuristics.combat; + +import com.comphenix.protocol.PacketType.Play.Client; +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 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 static final int SAMPLE_TICKS = 200; + private PacketListener packetListener; + private ExpiringMap recentLookChanges = ExpiringMap.builder().expiration(3L, TimeUnit.MILLISECONDS).expirationPolicy(ExpirationPolicy.CREATED).build(); + + public AccuracyHeuristic(AAC plugin) { + super(plugin); + this.packetListener = new AccuracyPacketListener(this, this.plugin, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.USE_ENTITY, Client.LOOK); + ProtocolLibrary.getProtocolManager().addPacketListener(this.packetListener); + } + + private float wrapAngleDiff(float f, float f2) { + float f3 = Math.abs(f - f2); + float f4 = f3 % 360.0F; + return f4 > 180.0F ? 360.0F - f4 : f4; + } + + @Override + public void destroy() { + super.destroy(); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + } + + @Override + public int getDetectionChance(Player player) { + int value = (int)(Math.pow(this.getHeuristicScore(player), 0.79) / 2.0); + return value >= 100 ? 99 : value; + } + + static ExpiringMap getRecentLookChanges(AccuracyHeuristic accuracyHeuristic) { + return accuracyHeuristic.recentLookChanges; + } + + + private static class RecordMissTask implements Runnable { + final PacketEvent event; + final AccuracyPacketListener listener; + + RecordMissTask(AccuracyPacketListener accuracyPacketListener, PacketEvent event) { + this.listener = accuracyPacketListener; + this.event = event; + } + + @Override + public void run() { + this.listener.heuristic.setHeuristicScore(this.event.getPlayer(), this.listener.heuristic.getHeuristicScore(this.event.getPlayer()) + 90); + } + } + + private static class RecordHitTask implements Runnable { + final PacketEvent event; + final AccuracyPacketListener listener; + + RecordHitTask(AccuracyPacketListener accuracyPacketListener, PacketEvent event) { + this.listener = accuracyPacketListener; + this.event = event; + } + + @Override + public void run() { + this.listener.heuristic.setHeuristicScore(this.event.getPlayer(), (int)(this.listener.heuristic.getHeuristicScore(this.event.getPlayer()) * 0.75)); + } + } + + private static class AccuracyPacketListener extends PacketAdapter { + final AccuracyHeuristic heuristic; + + AccuracyPacketListener(AccuracyHeuristic accuracyHeuristic, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.heuristic = accuracyHeuristic; + } + + public void onPacketReceiving(PacketEvent event) { + if (event.getPacketType() == Client.USE_ENTITY) { + WrapperPlayClientUseEntity wrapperPlayClientUseEntity = new WrapperPlayClientUseEntity(event.getPacket()); + if (wrapperPlayClientUseEntity.getType() == EntityUseAction.ATTACK) { + if (AccuracyHeuristic.getRecentLookChanges(this.heuristic).containsKey(event.getPlayer().getUniqueId())) { + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RecordMissTask(this, event), 200L); + } else { + this.plugin.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RecordHitTask(this, event), 200L); + } + } + } else { + ExpiringMap expiringMap = AccuracyHeuristic.getRecentLookChanges(this.heuristic); + UUID uuid = event.getPlayer().getUniqueId(); + boolean flag = false; + expiringMap.put(uuid, flag); + } + } + } +} 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..d0df4d6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/AimbotHeuristic.java @@ -0,0 +1,178 @@ +package me.konsolas.aac.heuristics.combat; + +import com.comphenix.protocol.PacketType.Play.Client; +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 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.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 class AimbotHeuristic extends Heuristic { + private Map snapshots = new HashMap<>(); + private PacketListener packetListener; + private int decayTaskId; + private ExpiringMap recentAttackPlayers; + private Map lastYawValues = new HashMap<>(); + private Map preAttackYawValues = new HashMap<>(); + + public AimbotHeuristic(AAC plugin) { + super(plugin); + this.recentAttackPlayers = ExpiringMap.builder().expiration(12L, TimeUnit.MILLISECONDS).expirationPolicy(ExpirationPolicy.CREATED).build(); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.snapshots.put(player.getUniqueId(), new RotationSnapshot(player)); + } + + this.packetListener = new AimbotPacketListener(this, this.plugin, Client.FLYING, Client.POSITION, Client.POSITION_LOOK, Client.USE_ENTITY, Client.LOOK); + ProtocolLibrary.getProtocolManager().addPacketListener(this.packetListener); + this.decayTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, new DecayScoreTask(this), 50L, 73L); + } + + @Override + public void destroy() { + super.destroy(); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + Bukkit.getServer().getScheduler().cancelTask(this.decayTaskId); + } + + @Override + public int getDetectionChance(Player player) { + double d = Math.pow(this.getHeuristicScore(player), 0.9) / 360.0; + return (int)Math.round(d * 100.0 > 99.0 ? 99.0 : d * 100.0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.snapshots.put(event.getPlayer().getUniqueId(), new RotationSnapshot(event.getPlayer())); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.snapshots.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.snapshots.remove(event.getPlayer().getUniqueId()); + } + + static ExpiringMap getRecentAttackPlayers(AimbotHeuristic aimbotHeuristic) { + return aimbotHeuristic.recentAttackPlayers; + } + + static Map getPreAttackYawValues(AimbotHeuristic aimbotHeuristic) { + return aimbotHeuristic.preAttackYawValues; + } + + static Map getLastYawValues(AimbotHeuristic aimbotHeuristic) { + return aimbotHeuristic.lastYawValues; + } + + + private static class AimbotPacketListener extends PacketAdapter { + final AimbotHeuristic heuristic; + + AimbotPacketListener(AimbotHeuristic aimbotHeuristic, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.heuristic = aimbotHeuristic; + } + + public void onPacketReceiving(PacketEvent event) { + try { + if (event.getPacketType() == Client.USE_ENTITY) { + WrapperPlayClientUseEntity wrapperPlayClientUseEntity = new WrapperPlayClientUseEntity(event.getPacket()); + if (wrapperPlayClientUseEntity.getType() == EntityUseAction.ATTACK) { + ExpiringMap expiringMap = AimbotHeuristic.getRecentAttackPlayers(this.heuristic); + UUID uuid = event.getPlayer().getUniqueId(); + boolean flag = false; + expiringMap.put(uuid, flag); + } + } else if (AimbotHeuristic.getRecentAttackPlayers(this.heuristic).containsKey(event.getPlayer().getUniqueId())) { + if (event.getPacketType() != Client.POSITION && event.getPacketType() != Client.FLYING) { + AimbotHeuristic.getPreAttackYawValues(this.heuristic).put(event.getPlayer().getUniqueId(), event.getPacket().getFloat().read(0)); + AimbotHeuristic.getRecentAttackPlayers(this.heuristic).remove(event.getPlayer().getUniqueId()); + } else { + AimbotHeuristic.getRecentAttackPlayers(this.heuristic).remove(event.getPlayer().getUniqueId()); + } + } else if (AimbotHeuristic.getPreAttackYawValues(this.heuristic).containsKey(event.getPlayer().getUniqueId())) { + if (event.getPacketType() != Client.POSITION && event.getPacketType() != Client.FLYING) { + float f = (Float)AimbotHeuristic.getLastYawValues(this.heuristic).get(event.getPlayer().getUniqueId()); + float f2 = (Float)event.getPacket().getFloat().read(0); + int value = (int)Math.abs((double)f2 - f); + int value2 = (int)Math.abs((double)f2 - ((Float)AimbotHeuristic.getPreAttackYawValues(this.heuristic).get(event.getPlayer().getUniqueId())).floatValue()); + if (value < value2 - 5) { + this.heuristic.setHeuristicScore(event.getPlayer(), this.heuristic.getHeuristicScore(event.getPlayer()) + 91); + } else { + this.heuristic.setHeuristicScore(event.getPlayer(), this.heuristic.getHeuristicScore(event.getPlayer()) - 20); + } + } else { + this.heuristic.setHeuristicScore(event.getPlayer(), this.heuristic.getHeuristicScore(event.getPlayer()) + 23); + } + + AimbotHeuristic.getPreAttackYawValues(this.heuristic).remove(event.getPlayer().getUniqueId()); + } else if (event.getPacketType() == Client.LOOK || event.getPacketType() == Client.POSITION_LOOK) { + float f3 = (Float)event.getPacket().getFloat().read(0); + AimbotHeuristic.getLastYawValues(this.heuristic).put(event.getPlayer().getUniqueId(), f3); + } + } catch (NullPointerException ex) { + } + } + } + + private static class DecayScoreTask implements Runnable { + final AimbotHeuristic heuristic; + + DecayScoreTask(AimbotHeuristic aimbotHeuristic) { + this.heuristic = aimbotHeuristic; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.heuristic.setHeuristicScore(player, (int)(this.heuristic.getHeuristicScore(player) * 0.86)); + } + } + } + + private static class RotationSnapshot { + public double previousYaw; + public double previousPitch; + public long lastUpdateTime; + public Location lastLocation; + public Entity lastTarget; + + public RotationSnapshot(Player player) { + this.previousYaw = player.getLocation().getYaw(); + this.previousPitch = player.getLocation().getPitch(); + this.lastUpdateTime = System.currentTimeMillis(); + this.lastLocation = null; + this.lastTarget = null; + } + } +} 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..284eef7 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/combat/ReachHeuristic.java @@ -0,0 +1,141 @@ +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 histories = new HashMap<>(); + private int resetTaskId; + + public ReachHeuristic(AAC plugin) { + super(plugin); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + this.histories.put(player.getUniqueId(), new PlayerReachHistory()); + } + + this.resetTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new ResetTargetHistoryTask(this), 10L, 10000L); + } + + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { + if (event.getCause() == DamageCause.ENTITY_ATTACK) { + try { + if (!EntityTargetCategories.isReachTarget(event.getEntity().getType())) { + return; + } + + if (event.getDamager().getType() == EntityType.PLAYER && !this.plugin.checkManager.isPlayerExempt((Player)event.getDamager())) { + PlayerReachHistory playerReachHistory = this.histories.get(event.getDamager().getUniqueId()); + if (System.currentTimeMillis() - playerReachHistory.lastUpdateTime > 1200L) { + playerReachHistory.lastUpdateTime = System.currentTimeMillis(); + return; + } + + Player player = (Player)event.getDamager(); + + try { + if (playerReachHistory.lastTarget != null && playerReachHistory.lastTarget.equals(event.getEntity())) { + double d = playerReachHistory.lastLocation.distance(event.getEntity().getLocation()); + if (d <= 0.1 || player.getLocation().distanceSquared(event.getEntity().getLocation()) <= 1.2) { + return; + } + } + } catch (Exception ex) { + return; + } + + playerReachHistory.distanceSamples.addSample(player.getLocation().distance(event.getEntity().getLocation())); + if (playerReachHistory.distanceSamples.getSamples().size() > 12) { + double d2 = playerReachHistory.distanceSamples.getMean(); + this.setHeuristicScore(player, (int)((d2 - 2.85) * 1000.0)); + } + + playerReachHistory.lastUpdateTime = System.currentTimeMillis(); + playerReachHistory.lastLocation = event.getEntity().getLocation(); + playerReachHistory.lastTarget = event.getEntity(); + } + } catch (NullPointerException ex2) { + this.plugin.verboseLogger.logViolation("(ReachHeuristic) caught an NPE"); + } + } + } + + @Override + protected void updateScore(Player player) { + } + + @Override + public int getDetectionChance(Player player) { + double d = Math.pow(this.getHeuristicScore(player), 0.9) / 420.0; + return (int)Math.round(d * 100.0 > 99.0 ? 99.0 : d * 100.0); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerJoin(PlayerJoinEvent event) { + super.onPlayerJoin(event); + this.histories.put(event.getPlayer().getUniqueId(), new PlayerReachHistory()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerQuit(PlayerQuitEvent event) { + super.onPlayerQuit(event); + this.histories.remove(event.getPlayer().getUniqueId()); + } + + @EventHandler(priority = EventPriority.MONITOR) + @Override + public void onPlayerKick(PlayerKickEvent event) { + super.onPlayerKick(event); + this.histories.remove(event.getPlayer().getUniqueId()); + } + + static Map getHistories(ReachHeuristic reachHeuristic) { + return reachHeuristic.histories; + } + + private static class ResetTargetHistoryTask implements Runnable { + final ReachHeuristic heuristic; + + ResetTargetHistoryTask(ReachHeuristic reachHeuristic) { + this.heuristic = reachHeuristic; + } + + @Override + public void run() { + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + ((PlayerReachHistory)ReachHeuristic.getHistories(this.heuristic).get(player.getUniqueId())).lastTarget = null; + ((PlayerReachHistory)ReachHeuristic.getHistories(this.heuristic).get(player.getUniqueId())).lastLocation = null; + } + } + } + + private static class PlayerReachHistory { + public SampleData distanceSamples = new SampleData<>(8); + public long lastUpdateTime = System.currentTimeMillis(); + public Location lastLocation = null; + public Entity lastTarget = null; + + public PlayerReachHistory() { + } + } +} 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..bb7d559 --- /dev/null +++ b/src/main/java/me/konsolas/aac/heuristics/util/SampleData.java @@ -0,0 +1,42 @@ +package me.konsolas.aac.heuristics.util; + +import java.util.ArrayDeque; +import java.util.Collection; +import java.util.Deque; + +public class SampleData { + private Deque samples; + private int capacity; + + public SampleData(int i) { + this.capacity = i; + this.samples = new ArrayDeque<>(i); + } + + public void addSample(T number) { + if (this.samples.size() >= this.capacity) { + this.samples.poll(); + this.samples.add((T)number); + } else { + this.samples.add((T)number); + } + } + + public Collection getSamples() { + return this.samples; + } + + public double getMean() { + double d = 0.0; + + for (Number number : this.samples) { + d += number.doubleValue(); + } + + return d / 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..3cf916a --- /dev/null +++ b/src/main/java/me/konsolas/aac/hooks/McMMO.java @@ -0,0 +1,122 @@ +package me.konsolas.aac.hooks; + +import com.gmail.nossr50.api.AbilityAPI; +import com.gmail.nossr50.events.fake.FakeBlockBreakEvent; +import java.util.UUID; +import java.util.concurrent.TimeUnit; +import me.konsolas.aac.AAC; +import me.konsolas.aac.api.HackType; +import me.konsolas.aac.api.PlayerViolationEvent; +import net.jodah.expiringmap.ExpirationPolicy; +import net.jodah.expiringmap.ExpiringMap; +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 { + ExpiringMap fakeBlockBreakExempt = ExpiringMap.builder().expiration(1000L, TimeUnit.SECONDS).expirationPolicy(ExpirationPolicy.ACCESSED).build(); + + public McMMO(AAC plugin) { + super(plugin); + } + + @EventHandler(priority = EventPriority.LOWEST) + public void onPlayerViolation(PlayerViolationEvent event) { + try { + if (event.getPlayer() == null || !event.getPlayer().isOnline()) { + return; + } + + if (this.fakeBlockBreakExempt.containsKey(event.getPlayer().getUniqueId())) { + event.setCancelled(true); + return; + } + + switch (HackTypeSwitch.SWITCH_TABLE[event.getHackType().ordinal()]) { + case 1: + case 2: + case 3: + if (AbilityAPI.serratedStrikesEnabled(event.getPlayer()) || AbilityAPI.skullSplitterEnabled(event.getPlayer())) { + event.setCancelled(true); + } + + for (Entity entity : event.getPlayer().getNearbyEntities(7.0, 7.0, 7.0)) { + if (entity instanceof LivingEntity && AbilityAPI.isBleeding((LivingEntity)entity)) { + event.setCancelled(true); + return; + } + } + break; + case 4: + if (AbilityAPI.isAnyAbilityEnabled(event.getPlayer())) { + event.setCancelled(true); + } + break; + case 5: + case 6: + case 7: + case 8: + if (AbilityAPI.berserkEnabled(event.getPlayer()) + || AbilityAPI.gigaDrillBreakerEnabled(event.getPlayer()) + || AbilityAPI.superBreakerEnabled(event.getPlayer()) + || AbilityAPI.treeFellerEnabled(event.getPlayer())) { + event.setCancelled(true); + } + } + } catch (Exception ex) { + } + } + + @EventHandler(priority = EventPriority.LOWEST) + public void onFakeBlockBreak(FakeBlockBreakEvent event) { + this.fakeBlockBreakExempt.put(event.getPlayer().getUniqueId(), false); + this.fakeBlockBreakExempt.resetExpiration(event.getPlayer().getUniqueId()); + } + + class HackTypeSwitch { + static final int[] SWITCH_TABLE = new int[HackType.values().length]; + + static { + try { + SWITCH_TABLE[HackType.ANGLE.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[HackType.REACH.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[HackType.KILLAURA.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + SWITCH_TABLE[HackType.NOSWING.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + SWITCH_TABLE[HackType.FASTBREAK.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + SWITCH_TABLE[HackType.NUKER.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + SWITCH_TABLE[HackType.IMPOSSIBLEINTERACT.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + SWITCH_TABLE[HackType.PHASE.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + } + } +} 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..3e8d0b6 --- /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 packet, PacketType packetType) { + if (packet == null) { + throw new IllegalArgumentException("Packet handle cannot be NULL."); + } + + if (!Objects.equal(packet.getType(), packetType)) { + throw new IllegalArgumentException(packet.getHandle() + " is not a packet of type " + packetType); + } + + this.handle = packet; + } + + public PacketContainer getHandle() { + return this.handle; + } + + public void sendPacket(Player player) { + try { + ProtocolLibrary.getProtocolManager().sendServerPacket(player, this.getHandle()); + } catch (InvocationTargetException ex) { + throw new RuntimeException("Cannot send packet.", ex); + } + } + + public void receivePacket(Player player) { + try { + ProtocolLibrary.getProtocolManager().recieveClientPacket(player, this.getHandle()); + } catch (Exception ex) { + throw new RuntimeException("Cannot recieve packet.", ex); + } + } +} 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..b81432d --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayClientUseEntity.java @@ -0,0 +1,44 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Client; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setTargetID(int i) { + this.handle.getIntegers().write(0, i); + } + + public EntityUseAction getType() { + return (EntityUseAction)this.handle.getEntityUseActions().read(0); + } + + public void setType(EntityUseAction entityUseAction) { + this.handle.getEntityUseActions().write(0, entityUseAction); + } + + public Vector getTargetVector() { + return (Vector)this.handle.getVectors().read(0); + } + + public void setTargetVector(Vector vector) { + this.handle.getVectors().write(0, vector); + } +} 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..9de0b2c --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerAnimation.java @@ -0,0 +1,45 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = Server.ANIMATION; + + public WrapperPlayServerAnimation() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerAnimation(PacketContainer packet) { + super(packet, TYPE); + } + + public int getEntityID() { + return (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public int getAnimation() { + return (Integer)this.handle.getIntegers().read(1); + } + + public void setAnimation(int i) { + this.handle.getIntegers().write(1, i); + } +} 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..0a4f82f --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityDestroy.java @@ -0,0 +1,30 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; + +public class WrapperPlayServerEntityDestroy extends AbstractPacket { + public static final PacketType TYPE = 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 ((int[])this.handle.getIntegerArrays().read(0)).length; + } + + public int[] getEntityIDs() { + return (int[])this.handle.getIntegerArrays().read(0); + } + + public void setEntityIds(int[] valueArray) { + this.handle.getIntegerArrays().write(0, valueArray); + } +} 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..a9e0068 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityEquipment.java @@ -0,0 +1,54 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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.inventory.ItemStack; + +public class WrapperPlayServerEntityEquipment extends AbstractPacket { + public static final PacketType TYPE = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public int getSlot() { + return (Integer)this.handle.getIntegers().read(1); + } + + public void setSlot(int i) { + this.handle.getIntegers().write(1, i); + } + + public ItemStack getItem() { + return (ItemStack)this.handle.getItemModifier().read(0); + } + + public void setItem(ItemStack item) { + this.handle.getItemModifier().write(0, item); + } +} 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..7930b66 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMetadata.java @@ -0,0 +1,47 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public List getMetadata() { + return (List)this.handle.getWatchableCollectionModifier().read(0); + } + + public void setMetadata(List list) { + this.handle.getWatchableCollectionModifier().write(0, list); + } +} 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..8704880 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityMoveLook.java @@ -0,0 +1,74 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.PacketContainer; + +public class WrapperPlayServerEntityMoveLook extends AbstractPacket { + public static final PacketType TYPE = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public double getDx() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() / 32.0; + } + + public void setDx(double d) { + this.handle.getBytes().write(0, (byte)(d * 32.0)); + } + + public double getDy() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() / 32.0; + } + + public void setDy(double d) { + this.handle.getBytes().write(0, (byte)(d * 32.0)); + } + + public double getDz() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() / 32.0; + } + + public void setDz(double d) { + this.handle.getBytes().write(0, (byte)(d * 32.0)); + } + + public float getYaw() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() * 360.0F / 256.0F; + } + + public void setYaw(float f) { + this.handle.getBytes().write(0, (byte)(f * 256.0F / 360.0F)); + } + + public float getPitch() { + return ((Byte)this.handle.getBytes().read(1)).byteValue() * 360.0F / 256.0F; + } + + public void setPitch(float f) { + this.handle.getBytes().write(1, (byte)(f * 256.0F / 360.0F)); + } + + public boolean getOnGround() { + return (Boolean)this.handle.getSpecificModifier(boolean.class).read(0); + } + + public void setOnGround(boolean flag) { + this.handle.getSpecificModifier(boolean.class).write(0, flag); + } +} 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..3a0ba89 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityStatus.java @@ -0,0 +1,45 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public byte getStatus() { + return (Byte)this.handle.getBytes().read(0); + } + + public void setStatus(byte b) { + this.handle.getBytes().write(0, b); + } +} 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..0c91e7e --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityTeleport.java @@ -0,0 +1,77 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public double getX() { + return ((Integer)this.handle.getIntegers().read(1)).intValue() / 32.0; + } + + public void setX(double d) { + this.handle.getIntegers().write(1, (int)Math.floor(d * 32.0)); + } + + public double getY() { + return ((Integer)this.handle.getIntegers().read(2)).intValue() / 32.0; + } + + public void setY(double d) { + this.handle.getIntegers().write(2, (int)Math.floor(d * 32.0)); + } + + public double getZ() { + return ((Integer)this.handle.getIntegers().read(3)).intValue() / 32.0; + } + + public void setZ(double d) { + this.handle.getIntegers().write(3, (int)Math.floor(d * 32.0)); + } + + public float getYaw() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() * 360.0F / 256.0F; + } + + public void setYaw(float f) { + this.handle.getBytes().write(0, (byte)(f * 256.0F / 360.0F)); + } + + public float getPitch() { + return ((Byte)this.handle.getBytes().read(1)).byteValue() * 360.0F / 256.0F; + } + + public void setPitch(float f) { + this.handle.getBytes().write(1, (byte)(f * 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..a3440c6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerEntityVelocity.java @@ -0,0 +1,66 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public double getVelocityX() { + return ((Integer)this.handle.getIntegers().read(1)).intValue() / 8000.0; + } + + public void setVelocityX(double d) { + this.handle.getIntegers().write(1, (int)(d * 8000.0)); + } + + public double getVelocityY() { + return ((Integer)this.handle.getIntegers().read(2)).intValue() / 8000.0; + } + + public void setVelocityY(double d) { + this.handle.getIntegers().write(2, (int)(d * 8000.0)); + } + + public double getVelocityZ() { + return ((Integer)this.handle.getIntegers().read(3)).intValue() / 8000.0; + } + + public void setVelocityZ(double d) { + this.handle.getIntegers().write(3, (int)(d * 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..52ed8f2 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerNamedEntitySpawn.java @@ -0,0 +1,103 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public UUID getPlayerUUID() { + return (UUID)this.handle.getSpecificModifier(UUID.class).read(0); + } + + public void setPlayerUUID(UUID uuid) { + this.handle.getSpecificModifier(UUID.class).write(0, uuid); + } + + public Vector getPosition() { + return new Vector(this.getX(), this.getY(), this.getZ()); + } + + public void setPosition(Vector vector) { + this.setX(vector.getX()); + this.setY(vector.getY()); + this.setZ(vector.getZ()); + } + + public double getX() { + return ((Integer)this.handle.getIntegers().read(1)).intValue() / 32.0; + } + + public void setX(double d) { + this.handle.getIntegers().write(1, (int)Math.floor(d * 32.0)); + } + + public double getY() { + return ((Integer)this.handle.getIntegers().read(2)).intValue() / 32.0; + } + + public void setY(double d) { + this.handle.getIntegers().write(2, (int)Math.floor(d * 32.0)); + } + + public double getZ() { + return ((Integer)this.handle.getIntegers().read(3)).intValue() / 32.0; + } + + public void setZ(double d) { + this.handle.getIntegers().write(3, (int)Math.floor(d * 32.0)); + } + + public float getYaw() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() * 360.0F / 256.0F; + } + + public void setYaw(float f) { + this.handle.getBytes().write(0, (byte)(f * 256.0F / 360.0F)); + } + + public float getPitch() { + return ((Byte)this.handle.getBytes().read(1)).byteValue() * 360.0F / 256.0F; + } + + public void setPitch(float f) { + this.handle.getBytes().write(1, (byte)(f * 256.0F / 360.0F)); + } + + public int getCurrentItem() { + return (Integer)this.handle.getIntegers().read(4); + } + + public void setCurrentItem(int i) { + this.handle.getIntegers().write(4, i); + } + + public WrappedDataWatcher getMetadata() { + return (WrappedDataWatcher)this.handle.getDataWatcherModifier().read(0); + } + + public void setMetadata(WrappedDataWatcher wrappedDataWatcher) { + this.handle.getDataWatcherModifier().write(0, wrappedDataWatcher); + } +} 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..6804fa4 --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPlayerInfo.java @@ -0,0 +1,37 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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 (PlayerInfoAction)this.handle.getPlayerInfoAction().read(0); + } + + public void setAction(PlayerInfoAction playerInfoAction) { + this.handle.getPlayerInfoAction().write(0, playerInfoAction); + } + + public List getData() { + return (List)this.handle.getPlayerInfoDataLists().read(0); + } + + public void setData(List list) { + this.handle.getPlayerInfoDataLists().write(0, list); + } +} 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..0cad6bf --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerPosition.java @@ -0,0 +1,90 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = Server.POSITION; + private static final Class FLAGS_CLASS = MinecraftReflection.getMinecraftClass( + "EnumPlayerTeleportFlags", new String[]{"PacketPlayOutPosition$EnumPlayerTeleportFlags"} + ); + + public WrapperPlayServerPosition() { + super(new PacketContainer(TYPE), TYPE); + this.handle.getModifier().writeDefaults(); + } + + public WrapperPlayServerPosition(PacketContainer packet) { + super(packet, TYPE); + } + + public double getX() { + return (Double)this.handle.getDoubles().read(0); + } + + public void setX(double d) { + this.handle.getDoubles().write(0, d); + } + + public double getY() { + return (Double)this.handle.getDoubles().read(1); + } + + public void setY(double d) { + this.handle.getDoubles().write(1, d); + } + + public double getZ() { + return (Double)this.handle.getDoubles().read(2); + } + + public void setZ(double d) { + this.handle.getDoubles().write(2, d); + } + + public float getYaw() { + return (Float)this.handle.getFloat().read(0); + } + + public void setYaw(float f) { + this.handle.getFloat().write(0, f); + } + + public float getPitch() { + return (Float)this.handle.getFloat().read(1); + } + + public void setPitch(float f) { + this.handle.getFloat().write(1, f); + } + + private StructureModifier> getFlagsModifier() { + return this.handle + .getModifier() + .withType(Set.class, BukkitConverters.getSetConverter(FLAGS_CLASS, EnumWrappers.getGenericConverter(PlayerTeleportFlag.class))); + } + + public Set getFlags() { + return (Set)this.getFlagsModifier().read(0); + } + + public void setFlags(Set set) { + this.getFlagsModifier().write(0, set); + } + + public enum PlayerTeleportFlag { + X, + Y, + Z, + Y_ROT, + X_ROT; + + private static final PlayerTeleportFlag[] VALUES = new 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..57e080c --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerRelEntityMove.java @@ -0,0 +1,69 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 WrapperPlayServerRelEntityMove extends AbstractPacket { + public static final PacketType TYPE = 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 (Integer)this.handle.getIntegers().read(0); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public double getDx() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() / 32.0; + } + + public void setDx(double d) { + this.handle.getBytes().write(0, (byte)(d * 32.0)); + } + + public double getDy() { + return ((Byte)this.handle.getBytes().read(1)).byteValue() / 32.0; + } + + public void setDy(double d) { + this.handle.getBytes().write(1, (byte)(d * 32.0)); + } + + public double getDz() { + return ((Byte)this.handle.getBytes().read(2)).byteValue() / 32.0; + } + + public void setDz(double d) { + this.handle.getBytes().write(2, (byte)(d * 32.0)); + } + + public boolean getOnGround() { + return (Boolean)this.handle.getSpecificModifier(boolean.class).read(0); + } + + public void setOnGround(boolean flag) { + this.handle.getSpecificModifier(boolean.class).write(0, flag); + } +} 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..d5cdb7b --- /dev/null +++ b/src/main/java/me/konsolas/aac/internal/packetwrapper/WrapperPlayServerSpawnEntityLiving.java @@ -0,0 +1,142 @@ +package me.konsolas.aac.internal.packetwrapper; + +import com.comphenix.protocol.PacketType.Play.Server; +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 = 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, new Object[]{entity}); + } + + return entityConstructor.createPacket(new Object[]{entity}); + } + + public int getEntityID() { + return (Integer)this.handle.getIntegers().read(0); + } + + public Entity getEntity(World world) { + return (Entity)this.handle.getEntityModifier(world).read(0); + } + + public Entity getEntity(PacketEvent event) { + return this.getEntity(event.getPlayer().getWorld()); + } + + public void setEntityID(int i) { + this.handle.getIntegers().write(0, i); + } + + public EntityType getType() { + return EntityType.fromId((Integer)this.handle.getIntegers().read(1)); + } + + public void setType(EntityType entityType) { + this.handle.getIntegers().write(1, Integer.valueOf(entityType.getTypeId())); + } + + public double getX() { + return ((Integer)this.handle.getIntegers().read(2)).intValue() / 32.0; + } + + public void setX(double d) { + this.handle.getIntegers().write(2, (int)Math.floor(d * 32.0)); + } + + public double getY() { + return ((Integer)this.handle.getIntegers().read(3)).intValue() / 32.0; + } + + public void setY(double d) { + this.handle.getIntegers().write(3, (int)Math.floor(d * 32.0)); + } + + public double getZ() { + return ((Integer)this.handle.getIntegers().read(4)).intValue() / 32.0; + } + + public void setZ(double d) { + this.handle.getIntegers().write(4, (int)Math.floor(d * 32.0)); + } + + public float getYaw() { + return ((Byte)this.handle.getBytes().read(0)).byteValue() * 360.0F / 256.0F; + } + + public void setYaw(float f) { + this.handle.getBytes().write(0, (byte)(f * 256.0F / 360.0F)); + } + + public float getPitch() { + return ((Byte)this.handle.getBytes().read(1)).byteValue() * 360.0F / 256.0F; + } + + public void setPitch(float f) { + this.handle.getBytes().write(1, (byte)(f * 256.0F / 360.0F)); + } + + public float getHeadPitch() { + return ((Byte)this.handle.getBytes().read(2)).byteValue() * 360.0F / 256.0F; + } + + public void setHeadPitch(float f) { + this.handle.getBytes().write(2, (byte)(f * 256.0F / 360.0F)); + } + + public double getVelocityX() { + return ((Integer)this.handle.getIntegers().read(5)).intValue() / 8000.0; + } + + public void setVelocityX(double d) { + this.handle.getIntegers().write(5, (int)(d * 8000.0)); + } + + public double getVelocityY() { + return ((Integer)this.handle.getIntegers().read(6)).intValue() / 8000.0; + } + + public void setVelocityY(double d) { + this.handle.getIntegers().write(6, (int)(d * 8000.0)); + } + + public double getVelocityZ() { + return ((Integer)this.handle.getIntegers().read(7)).intValue() / 8000.0; + } + + public void setVelocityZ(double d) { + this.handle.getIntegers().write(7, (int)(d * 8000.0)); + } + + public WrappedDataWatcher getMetadata() { + return (WrappedDataWatcher)this.handle.getDataWatcherModifier().read(0); + } + + public void setMetadata(WrappedDataWatcher wrappedDataWatcher) { + this.handle.getDataWatcherModifier().write(0, wrappedDataWatcher); + } +} 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..02b2ae8 --- /dev/null +++ b/src/main/java/me/konsolas/aac/lang/Messages.java @@ -0,0 +1,61 @@ +package me.konsolas.aac.lang; + +import java.io.File; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +import me.konsolas.aac.AAC; +import org.bukkit.configuration.file.FileConfiguration; +import org.bukkit.configuration.file.YamlConfiguration; + +public class Messages { + private AAC plugin; + private FileConfiguration messagesConfig = null; + private File messagesFile = null; + + public Messages(AAC plugin) { + this.plugin = plugin; + this.saveDefaultConfig(); + } + + public String getMessage(String str) { + return this.getConfig().getString(str); + } + + public FileConfiguration getConfig() { + if (this.messagesConfig == null) { + this.reloadConfig(); + } + + return this.messagesConfig; + } + + public void reloadConfig() { + if (this.messagesFile == null) { + this.messagesFile = new File(this.plugin.getDataFolder(), "language.yml"); + } + + this.messagesConfig = YamlConfiguration.loadConfiguration(this.messagesFile); + InputStreamReader inputStreamReader = null; + + try { + inputStreamReader = new InputStreamReader(this.plugin.getResource("language.yml"), "UTF8"); + } catch (UnsupportedEncodingException ex) { + ex.printStackTrace(); + } + + if (inputStreamReader != null) { + YamlConfiguration config = YamlConfiguration.loadConfiguration(inputStreamReader); + this.messagesConfig.setDefaults(config); + } + } + + public void saveDefaultConfig() { + if (this.messagesFile == null) { + this.messagesFile = new File(this.plugin.getDataFolder(), "language.yml"); + } + + if (!this.messagesFile.exists()) { + this.plugin.saveResource("language.yml", false); + } + } +} 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..167733c --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/CombatDecoyPair.java @@ -0,0 +1,429 @@ +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.WrappedGameProfile; +import java.util.ArrayList; +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; + PlayerIdentity leftIdentity; + PlayerIdentity rightIdentity; + boolean completed = false; + private UUID playerId; + private Entity targetEntity; + private AAC plugin; + private HitListener hitListener; + private PacketListener packetListener; + private int playerHits = 0; + private int decoyHits = 0; + private BukkitTask tickTask; + private int registerTaskId; + private int elapsedTicks; + private int leftEntityId; + private int rightEntityId; + + public CombatDecoyPair(AAC plugin, Player player, Entity entity, HitListener hitListener) { + this.hitListener = hitListener; + this.plugin = plugin; + this.playerId = player.getUniqueId(); + this.targetEntity = entity; + this.packetListener = new AttackPacketListener(this, 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.spawnEntityDecoys(entityType); + } + } + + private void spawnPlayerDecoys() { + if (this.getPlayer() != null) { + this.leftIdentity = PlayerIdentityPool.getInstance().generateRandomIdentity(); + Vector vector = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.LEFT); + vector.setY(vector.getY() + 0.15); + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn = this.createNamedSpawnPacket(vector, true, this.leftIdentity); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = this.createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, false, this.leftIdentity); + wrapperPlayServerPlayerInfo.sendPacket(this.getPlayer()); + wrapperPlayServerNamedEntitySpawn.sendPacket(this.getPlayer()); + this.leftEntityId = wrapperPlayServerNamedEntitySpawn.getEntityID(); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo2 = this.createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, false, this.leftIdentity); + wrapperPlayServerPlayerInfo2.sendPacket(this.getPlayer()); + this.rightIdentity = PlayerIdentityPool.getInstance().generateRandomIdentity(); + Vector vector2 = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.RIGHT); + vector2.setY(vector2.getY() + 0.15); + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn2 = this.createNamedSpawnPacket(vector2, true, this.rightIdentity); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo3 = this.createPlayerInfoPacket(PlayerInfoAction.ADD_PLAYER, false, this.rightIdentity); + wrapperPlayServerPlayerInfo3.sendPacket(this.getPlayer()); + wrapperPlayServerNamedEntitySpawn2.sendPacket(this.getPlayer()); + this.rightEntityId = wrapperPlayServerNamedEntitySpawn2.getEntityID(); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo4 = this.createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, false, this.rightIdentity); + wrapperPlayServerPlayerInfo4.sendPacket(this.getPlayer()); + this.registerTaskId = Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RegisterFirstListener(this), listenDelay); + this.scheduleNextTick(); + } + } + + private void spawnEntityDecoys(EntityType entityType) { + if (this.getPlayer() != null) { + Vector vector = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.LEFT); + vector.setY(vector.getY() + 0.15); + WrapperPlayServerSpawnEntityLiving wrapperPlayServerSpawnEntityLiving = new WrapperPlayServerSpawnEntityLiving(); + wrapperPlayServerSpawnEntityLiving.setType(entityType); + wrapperPlayServerSpawnEntityLiving.setEntityID(this.allocateFakeEntityId(this.getPlayer())); + wrapperPlayServerSpawnEntityLiving.setX(vector.getX()); + wrapperPlayServerSpawnEntityLiving.setY(vector.getY()); + wrapperPlayServerSpawnEntityLiving.setZ(vector.getZ()); + WrappedDataWatcher wrappedDataWatcher = new WrappedDataWatcher(); + wrappedDataWatcher.setObject(6, AAC.random.nextFloat() * 15.0F); + byte b = 32; + wrappedDataWatcher.setObject(0, b); + wrapperPlayServerSpawnEntityLiving.setMetadata(wrappedDataWatcher); + this.leftEntityId = wrapperPlayServerSpawnEntityLiving.getEntityID(); + wrapperPlayServerSpawnEntityLiving.sendPacket(this.getPlayer()); + Vector vector2 = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.RIGHT); + vector2.setY(vector2.getY() + 0.15); + WrapperPlayServerSpawnEntityLiving wrapperPlayServerSpawnEntityLiving2 = new WrapperPlayServerSpawnEntityLiving(); + wrapperPlayServerSpawnEntityLiving2.setType(entityType); + wrapperPlayServerSpawnEntityLiving2.setEntityID(this.allocateFakeEntityId(this.getPlayer())); + wrapperPlayServerSpawnEntityLiving2.setX(vector2.getX()); + wrapperPlayServerSpawnEntityLiving2.setY(vector2.getY()); + wrapperPlayServerSpawnEntityLiving2.setZ(vector2.getZ()); + WrappedDataWatcher wrappedDataWatcher2 = new WrappedDataWatcher(); + wrappedDataWatcher2.setObject(6, AAC.random.nextFloat() * 15.0F); + byte b2 = 32; + wrappedDataWatcher2.setObject(0, b2); + wrapperPlayServerSpawnEntityLiving2.setMetadata(wrappedDataWatcher2); + this.rightEntityId = wrapperPlayServerSpawnEntityLiving2.getEntityID(); + wrapperPlayServerSpawnEntityLiving2.sendPacket(this.getPlayer()); + this.registerTaskId = Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new RegisterSecondListener(this), listenDelay); + this.scheduleNextTick(); + } + } + + private void updateDecoyPositions() { + if (this.getPlayer() != null && this.getTargetEntity() != null) { + try { + if (this.getPlayer().getLocation().distance(this.getTargetEntity().getLocation()) < minDist) { + this.destroy(); + } + } catch (IllegalArgumentException ex) { + this.destroy(); + } + + WrapperPlayServerEntityTeleport wrapperPlayServerEntityTeleport = new WrapperPlayServerEntityTeleport(); + wrapperPlayServerEntityTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + wrapperPlayServerEntityTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector vector = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.LEFT); + wrapperPlayServerEntityTeleport.setX(vector.getX()); + wrapperPlayServerEntityTeleport.setY(vector.getY() + 0.1); + wrapperPlayServerEntityTeleport.setZ(vector.getZ()); + wrapperPlayServerEntityTeleport.setEntityID(this.leftEntityId); + wrapperPlayServerEntityTeleport.sendPacket(this.getPlayer()); + WrapperPlayServerEntityTeleport wrapperPlayServerEntityTeleport2 = new WrapperPlayServerEntityTeleport(); + wrapperPlayServerEntityTeleport2.setPitch(AAC.random.nextFloat() * 80.0F); + wrapperPlayServerEntityTeleport2.setYaw(AAC.random.nextFloat() * 359.0F); + Vector vector2 = this.computeSideOffset(this.getPlayer().getLocation().toVector(), this.getTargetEntity().getLocation().toVector(), percentDistance, Side.RIGHT); + wrapperPlayServerEntityTeleport2.setX(vector2.getX()); + wrapperPlayServerEntityTeleport2.setY(vector2.getY() + 0.1); + wrapperPlayServerEntityTeleport2.setZ(vector2.getZ()); + wrapperPlayServerEntityTeleport2.setEntityID(this.rightEntityId); + wrapperPlayServerEntityTeleport2.sendPacket(this.getPlayer()); + } + } + + private void scheduleNextTick() { + this.tickTask = Bukkit.getScheduler().runTaskLaterAsynchronously(this.plugin, new TickTask(this), 1L); + } + + private Vector computeSideOffset(Vector vector, Vector vector2, double d, Side side) { + Vector vector3 = vector2.clone().subtract(vector); + double d2 = vector3.length(); + vector3 = vector3.normalize().multiply(d2 * (d / 100.0)); + Vector vector4 = vector.clone().add(vector3); + Vector vector5 = vector.clone().subtract(vector2); + Vector vector6 = vector5.clone(); + if (side == Side.LEFT) { + vector5.setX(-vector6.getZ()); + vector5.setZ(vector6.getX()); + } else { + vector5.setZ(-vector6.getX()); + vector5.setX(vector6.getZ()); + } + + vector5.normalize(); + return vector4.add(vector5.multiply(0.3)); + } + + public void destroy() { + if (this.getPlayer() == null) { + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.registerTaskId); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + this.notifyListener(); + } else { + this.createDestroyPacket(this.leftEntityId).sendPacket(this.getPlayer()); + this.createDestroyPacket(this.rightEntityId).sendPacket(this.getPlayer()); + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.registerTaskId); + ProtocolLibrary.getProtocolManager().removePacketListener(this.packetListener); + this.notifyListener(); + } + } + + private void notifyListener() { + if (!this.completed) { + this.hitListener.onDecoyComplete(this.playerHits, this.decoyHits); + this.completed = true; + } + } + + private WrapperPlayServerNamedEntitySpawn createNamedSpawnPacket(Vector vector, boolean flag, PlayerIdentity playerIdentity) { + int value = this.allocateFakeEntityId(this.getPlayer()); + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn = new WrapperPlayServerNamedEntitySpawn(); + wrapperPlayServerNamedEntitySpawn.setEntityID(value); + wrapperPlayServerNamedEntitySpawn.setPosition(vector); + wrapperPlayServerNamedEntitySpawn.setPlayerUUID(playerIdentity.getUniqueId()); + wrapperPlayServerNamedEntitySpawn.setYaw((float)(AAC.random.nextInt() % 360)); + wrapperPlayServerNamedEntitySpawn.setPitch(AAC.random.nextInt() % 100 - 50.0F); + WrappedDataWatcher wrappedDataWatcher = new WrappedDataWatcher(); + byte b; + if (flag) { + byte b2 = 32; + b = Byte.valueOf(b2); + } else { + b = 0; + } + + byte b3 = b; + wrappedDataWatcher.setObject(0, b3); + wrappedDataWatcher.setObject(6, ThreadLocalRandom.current().nextInt(19) + 1.0F); + wrapperPlayServerNamedEntitySpawn.setMetadata(wrappedDataWatcher); + return wrapperPlayServerNamedEntitySpawn; + } + + private WrapperPlayServerPlayerInfo createPlayerInfoPacket(PlayerInfoAction playerInfoAction, boolean flag, PlayerIdentity playerIdentity) { + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = new WrapperPlayServerPlayerInfo(); + wrapperPlayServerPlayerInfo.setAction(playerInfoAction); + WrappedGameProfile wrappedGameProfile = new WrappedGameProfile(playerIdentity.getUniqueId(), flag ? playerIdentity.getName() : RandomPlayerNameGenerator.generateName()); + PlayerInfoData playerInfoData = new PlayerInfoData(wrappedGameProfile, 1, NativeGameMode.SURVIVAL, WrappedChatComponent.fromText(flag ? playerIdentity.getName() : RandomPlayerNameGenerator.generateName())); + ArrayList list = new ArrayList(); + list.add(playerInfoData); + wrapperPlayServerPlayerInfo.setData(list); + return wrapperPlayServerPlayerInfo; + } + + private WrapperPlayServerEntityDestroy createDestroyPacket(int i) { + WrapperPlayServerEntityDestroy wrapperPlayServerEntityDestroy = new WrapperPlayServerEntityDestroy(); + wrapperPlayServerEntityDestroy.setEntityIds(new int[]{i}); + return wrapperPlayServerEntityDestroy; + } + + private int allocateFakeEntityId(Player player) { + return player.getEntityId() + 1073741823 + ThreadLocalRandom.current().nextInt(100000); + } + + private Player getPlayer() { + return Bukkit.getPlayer(this.playerId); + } + + private Entity getTargetEntity() { + return this.targetEntity; + } + + static Player getPlayer(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.getPlayer(); + } + + static int getLeftEntityId(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.leftEntityId; + } + + static int getRightEntityId(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.rightEntityId; + } + + static int incrementPlayerHits(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.playerHits++; + } + + static Entity getTargetEntity(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.getTargetEntity(); + } + + static double getMaxDiff() { + return maxDiff; + } + + static double getMaxReach() { + return maxReach; + } + + static int incrementDecoyHits(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.decoyHits++; + } + + static PacketListener getPacketListener(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.packetListener; + } + + static void updateDecoyPositions(CombatDecoyPair combatDecoyPair) { + combatDecoyPair.updateDecoyPositions(); + } + + static int incrementElapsedTicks(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.elapsedTicks++; + } + + static int getElapsedTicks(CombatDecoyPair combatDecoyPair) { + return combatDecoyPair.elapsedTicks; + } + + static int getTicksSpawned() { + return ticksSpawned; + } + + static void scheduleNextTick(CombatDecoyPair combatDecoyPair) { + combatDecoyPair.scheduleNextTick(); + } + + private static class AttackPacketListener extends PacketAdapter { + final CombatDecoyPair decoyPair; + + AttackPacketListener(CombatDecoyPair combatDecoyPair, Plugin plugin, PacketType... packetTypeArray) { + super(plugin, packetTypeArray); + this.decoyPair = combatDecoyPair; + } + + public void onPacketReceiving(PacketEvent event) { + try { + if (event.getPacketType() == WrapperPlayClientUseEntity.TYPE) { + WrapperPlayClientUseEntity wrapperPlayClientUseEntity = new WrapperPlayClientUseEntity(event.getPacket()); + if (wrapperPlayClientUseEntity.getType() == EntityUseAction.ATTACK && event.getPlayer().getUniqueId().equals(CombatDecoyPair.getPlayer(this.decoyPair).getUniqueId())) { + int value = wrapperPlayClientUseEntity.getTargetID(); + if (value == CombatDecoyPair.getLeftEntityId(this.decoyPair) || value == CombatDecoyPair.getRightEntityId(this.decoyPair)) { + CombatDecoyPair.incrementPlayerHits(this.decoyPair); + double d = Angle.calculateLookAlignment(CombatDecoyPair.getPlayer(this.decoyPair).getLocation(), CombatDecoyPair.getTargetEntity(this.decoyPair).getLocation()); + + try { + if (NumberUtil.isWithinRange(d, 1.0, CombatDecoyPair.getMaxDiff()) + && CombatDecoyPair.getPlayer(this.decoyPair).getLocation().add(0.0, 1.0, 0.0).distance(CombatDecoyPair.getTargetEntity(this.decoyPair).getLocation()) < CombatDecoyPair.getMaxReach()) { + wrapperPlayClientUseEntity.setTargetID(CombatDecoyPair.getTargetEntity(this.decoyPair).getEntityId()); + } else { + event.setCancelled(true); + } + } catch (IllegalArgumentException ex) { + this.decoyPair.destroy(); + } + } else if (value == CombatDecoyPair.getTargetEntity(this.decoyPair).getEntityId()) { + CombatDecoyPair.incrementDecoyHits(this.decoyPair); + event.setCancelled(true); + } + } + } + } catch (NullPointerException ex2) { + this.decoyPair.destroy(); + } + } + } + + public interface HitListener { + void onDecoyComplete(int i, int i2); + } + + private static class RegisterFirstListener implements Runnable { + final CombatDecoyPair decoyPair; + + RegisterFirstListener(CombatDecoyPair combatDecoyPair) { + this.decoyPair = combatDecoyPair; + } + + @Override + public void run() { + ProtocolLibrary.getProtocolManager().addPacketListener(CombatDecoyPair.getPacketListener(this.decoyPair)); + } + } + + private static class RegisterSecondListener implements Runnable { + final CombatDecoyPair decoyPair; + + RegisterSecondListener(CombatDecoyPair combatDecoyPair) { + this.decoyPair = combatDecoyPair; + } + + @Override + public void run() { + ProtocolLibrary.getProtocolManager().addPacketListener(CombatDecoyPair.getPacketListener(this.decoyPair)); + } + } + + private enum Side { + LEFT, + RIGHT; + + private static final Side[] VALUES = new Side[]{LEFT, RIGHT}; + } + + private static class TickTask implements Runnable { + final CombatDecoyPair decoyPair; + + TickTask(CombatDecoyPair combatDecoyPair) { + this.decoyPair = combatDecoyPair; + } + + @Override + public void run() { + CombatDecoyPair.updateDecoyPositions(this.decoyPair); + CombatDecoyPair.incrementElapsedTicks(this.decoyPair); + if (CombatDecoyPair.getElapsedTicks(this.decoyPair) < CombatDecoyPair.getTicksSpawned()) { + CombatDecoyPair.scheduleNextTick(this.decoyPair); + } else { + this.decoyPair.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..0290daf --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/CrashUtil.java @@ -0,0 +1,73 @@ +package me.konsolas.aac.util; + +import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; +import com.comphenix.protocol.wrappers.WrappedDataWatcher; +import java.util.concurrent.ThreadLocalRandom; +import me.konsolas.aac.AAC; +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.RandomPlayerNameGenerator; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; +import org.bukkit.util.Vector; + +public final class CrashUtil { + private CrashUtil() { + throw new AssertionError(); + } + + public static void crashPlayer(Player player, CommandSender sender) { + new Thread(new CrashPacketTask(sender, player)).start(); + } + + private static final class CrashPacketTask implements Runnable { + final CommandSender sender; + final Player target; + + CrashPacketTask(CommandSender sender, Player player) { + this.sender = sender; + this.target = player; + } + + @Override + public void run() { + this.sender.sendMessage(AAC.messagePrefix + "Sending 200,000 entity spawn packets to " + this.target.getName()); + + for (int value = 0; value < 100000; value++) { + PlayerIdentity playerIdentity = PlayerIdentityPool.getInstance().getRandomUnusedIdentity(this.target.getUniqueId()); + Vector vector = this.target + .getLocation() + .add(ThreadLocalRandom.current().nextInt(-10, 10), ThreadLocalRandom.current().nextInt(-10, 10), ThreadLocalRandom.current().nextInt(-10, 10)) + .toVector(); + Player player = this.target; + PlayerIdentity playerIdentity2 = playerIdentity; + boolean flag = true; + Vector vector2 = vector; + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn = ForcefieldDecoyManager.createSpawnPacket(vector2, flag, playerIdentity2, player); + PlayerIdentity playerIdentity3 = playerIdentity; + boolean flag2 = true; + PlayerInfoAction playerInfoAction = PlayerInfoAction.ADD_PLAYER; + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = ForcefieldDecoyManager.createPlayerInfoPacket(playerInfoAction, flag2, playerIdentity3); + wrapperPlayServerPlayerInfo.sendPacket(this.target); + wrapperPlayServerNamedEntitySpawn.sendPacket(this.target); + WrapperPlayServerSpawnEntityLiving wrapperPlayServerSpawnEntityLiving = new WrapperPlayServerSpawnEntityLiving(); + wrapperPlayServerSpawnEntityLiving.setType(EntityType.ZOMBIE); + wrapperPlayServerSpawnEntityLiving.setX(this.target.getLocation().getX() + ThreadLocalRandom.current().nextInt(-10, 10)); + wrapperPlayServerSpawnEntityLiving.setY(this.target.getLocation().getX() + ThreadLocalRandom.current().nextInt(-10, 10)); + wrapperPlayServerSpawnEntityLiving.setZ(this.target.getLocation().getX() + ThreadLocalRandom.current().nextInt(-10, 10)); + wrapperPlayServerSpawnEntityLiving.setEntityID(ThreadLocalRandom.current().nextInt()); + WrappedDataWatcher wrappedDataWatcher = new WrappedDataWatcher(); + wrappedDataWatcher.setObject(0, "\ufeff\ufeff" + RandomPlayerNameGenerator.generateName()); + wrappedDataWatcher.setObject(1, 69); + byte b = 21; + wrappedDataWatcher.setObject(2, b); + wrapperPlayServerSpawnEntityLiving.setMetadata(wrappedDataWatcher); + wrapperPlayServerSpawnEntityLiving.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/EntityTargetCategories.java b/src/main/java/me/konsolas/aac/util/EntityTargetCategories.java new file mode 100644 index 0000000..5eabef7 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/EntityTargetCategories.java @@ -0,0 +1,163 @@ +package me.konsolas.aac.util; + +import org.bukkit.entity.EntityType; + +public class EntityTargetCategories { + public static boolean isReachTarget(EntityType entityType) { + switch (EntityTypeSwitch.SWITCH_TABLE[entityType.ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + return true; + default: + return false; + } + } + + public static boolean isKillauraTarget(EntityType entityType) { + switch (EntityTypeSwitch.SWITCH_TABLE[entityType.ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + return true; + default: + return false; + } + } + + public static boolean isPrimaryCombatTarget(EntityType entityType) { + switch (EntityTypeSwitch.SWITCH_TABLE[entityType.ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + return true; + default: + return false; + } + } + + public static boolean isKnockbackSource(EntityType entityType) { + switch (EntityTypeSwitch.SWITCH_TABLE[entityType.ordinal()]) { + case 17: + return false; + default: + return true; + } + } + + class EntityTypeSwitch { + static final int[] SWITCH_TABLE = new int[EntityType.values().length]; + + static { + try { + SWITCH_TABLE[EntityType.PLAYER.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[EntityType.VILLAGER.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[EntityType.ZOMBIE.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + SWITCH_TABLE[EntityType.PIG_ZOMBIE.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + SWITCH_TABLE[EntityType.SKELETON.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + SWITCH_TABLE[EntityType.WITCH.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + SWITCH_TABLE[EntityType.SNOWMAN.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + SWITCH_TABLE[EntityType.BLAZE.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + + try { + SWITCH_TABLE[EntityType.CREEPER.ordinal()] = 9; + } catch (NoSuchFieldError ex9) { + } + + try { + SWITCH_TABLE[EntityType.CHICKEN.ordinal()] = 10; + } catch (NoSuchFieldError ex10) { + } + + try { + SWITCH_TABLE[EntityType.ENDERMAN.ordinal()] = 11; + } catch (NoSuchFieldError ex11) { + } + + try { + SWITCH_TABLE[EntityType.SILVERFISH.ordinal()] = 12; + } catch (NoSuchFieldError ex12) { + } + + try { + SWITCH_TABLE[EntityType.ENDERMITE.ordinal()] = 13; + } catch (NoSuchFieldError ex13) { + } + + try { + SWITCH_TABLE[EntityType.RABBIT.ordinal()] = 14; + } catch (NoSuchFieldError ex14) { + } + + try { + SWITCH_TABLE[EntityType.BAT.ordinal()] = 15; + } catch (NoSuchFieldError ex15) { + } + + try { + SWITCH_TABLE[EntityType.WOLF.ordinal()] = 16; + } catch (NoSuchFieldError ex16) { + } + + try { + SWITCH_TABLE[EntityType.PRIMED_TNT.ordinal()] = 17; + } catch (NoSuchFieldError ex17) { + } + } + } +} 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..7db7ba3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/ForcefieldDecoyManager.java @@ -0,0 +1,764 @@ +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.WrappedGameProfile; +import com.comphenix.protocol.wrappers.WrappedWatchableObject; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map.Entry; +import java.util.Map; +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.internal.packetwrapper.WrapperPlayServerRelEntityMove; +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 noHeadLookingUp = 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 fakeOnGround = true; + private static boolean sendDamagedAnimation = true; + private final AAC plugin; + private final Forcefield forcefield; + private int tickPeriod = 3; + private int maxTicks = 600; + private BukkitTask tickTask; + private int secondSpawnTaskId; + private PlayerIdentity headIdentity; + private PlayerIdentity rearIdentity; + private PlayerIdentity sideIdentity; + private int unusedEntityId; + private Map decoyVisibilityFlags = new HashMap<>(); + private UUID playerId; + boolean unusedFlag = false; + boolean currentlyInvisible = false; + private int headEntityId; + private int rearEntityId; + private int sideEntityId; + private int elapsedTicks; + private boolean useOnlineName; + + public ForcefieldDecoyManager(AAC plugin, Player player, Forcefield forcefield) { + this.plugin = plugin; + this.playerId = player.getUniqueId(); + this.forcefield = forcefield; + this.useOnlineName = 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"); + noHeadLookingUp = 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"); + fakeOnGround = plugin.getConfig().getBoolean("forcefield.magic.fake_on_ground"); + sendDamagedAnimation = plugin.getConfig().getBoolean("forcefield.magic.send_damaged_animation"); + } + + public boolean isSideEntityId(int i) { + return !useSidePlayers ? false : i == this.rearEntityId || i == this.sideEntityId; + } + + public boolean isHeadEntityId(int i) { + return i == this.headEntityId; + } + + private Player getPlayer() { + return Bukkit.getPlayer(this.playerId); + } + + public void spawn() { + Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this.plugin, new SpawnTask(this), AAC.random.nextInt(2)); + } + + private void scheduleTick() { + this.tickTask = Bukkit.getScheduler().runTaskLaterAsynchronously(this.plugin, new TickTask(this), this.tickPeriod); + } + + private void tickPositions() { + WrapperPlayServerEntityTeleport wrapperPlayServerEntityTeleport = new WrapperPlayServerEntityTeleport(); + if (this.getPlayer() == null) { + this.forcefield.removeDecoyManager(this.playerId); + } else { + if ((!(this.getPlayer().getLocation().getPitch() < -30.0F) || !noHeadLookingUp) && AAC.random.nextInt(100) <= 85) { + wrapperPlayServerEntityTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + wrapperPlayServerEntityTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + wrapperPlayServerEntityTeleport.setX(this.getPlayer().getLocation().getX() + AAC.random.nextFloat()); + wrapperPlayServerEntityTeleport.setY(this.getPlayer().getLocation().getY() + headPlayerHeight); + wrapperPlayServerEntityTeleport.setZ(this.getPlayer().getLocation().getZ() + AAC.random.nextFloat()); + wrapperPlayServerEntityTeleport.setEntityID(this.headEntityId); + wrapperPlayServerEntityTeleport.sendPacket(this.getPlayer()); + } else { + double yaw = (int)this.getPlayer().getLocation().getYaw() + 270; + double d = Math.toRadians(yaw); + wrapperPlayServerEntityTeleport.setPitch(AAC.random.nextFloat() * 80.0F); + wrapperPlayServerEntityTeleport.setYaw(AAC.random.nextFloat() * 359.0F); + Vector vector = this.getPlayer().getLocation().add(3.4 * Math.cos(d), 0.0, 3.4 * Math.sin(d)).toVector(); + wrapperPlayServerEntityTeleport.setX(vector.getX()); + wrapperPlayServerEntityTeleport.setY(vector.getY()); + wrapperPlayServerEntityTeleport.setZ(vector.getZ()); + wrapperPlayServerEntityTeleport.setEntityID(this.headEntityId); + wrapperPlayServerEntityTeleport.sendPacket(this.getPlayer()); + } + + if ((this.plugin.combatLogoutListener.isInCombat(this.getPlayer()) || !invisibleOutsidePvp) && !headPlayerInvisible) { + if (this.currentlyInvisible) { + this.currentlyInvisible = false; + WrapperPlayServerEntityMetadata wrapperPlayServerEntityMetadata = createMetadataPacket(this.headEntityId, false, AAC.random.nextBoolean()); + wrapperPlayServerEntityMetadata.sendPacket(this.getPlayer()); + } else if (AAC.random.nextInt(100) > 90) { + WrapperPlayServerEntityMetadata wrapperPlayServerEntityMetadata2 = createMetadataPacket(this.headEntityId, false, AAC.random.nextBoolean()); + wrapperPlayServerEntityMetadata2.sendPacket(this.getPlayer()); + } + } else if (!this.currentlyInvisible) { + this.currentlyInvisible = true; + WrapperPlayServerEntityMetadata wrapperPlayServerEntityMetadata3 = createMetadataPacket(this.headEntityId, true, AAC.random.nextBoolean()); + wrapperPlayServerEntityMetadata3.sendPacket(this.getPlayer()); + } else if (AAC.random.nextInt(100) > 90) { + WrapperPlayServerEntityMetadata wrapperPlayServerEntityMetadata4 = createMetadataPacket(this.headEntityId, true, AAC.random.nextBoolean()); + wrapperPlayServerEntityMetadata4.sendPacket(this.getPlayer()); + } + + if (useSidePlayers) { + WrapperPlayServerEntityTeleport wrapperPlayServerEntityTeleport2 = new WrapperPlayServerEntityTeleport(); + double yaw2 = (int)this.getPlayer().getLocation().getYaw() + 190; + double d2 = Math.toRadians(yaw2); + wrapperPlayServerEntityTeleport2.setPitch(AAC.random.nextInt(100) - 50); + wrapperPlayServerEntityTeleport2.setYaw(AAC.random.nextFloat() * 359.0F); + Vector vector2 = this.getPlayer().getLocation().add(1.7 * Math.cos(d2), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(d2)).toVector(); + wrapperPlayServerEntityTeleport2.setX(vector2.getX()); + wrapperPlayServerEntityTeleport2.setY(vector2.getY()); + wrapperPlayServerEntityTeleport2.setZ(vector2.getZ()); + wrapperPlayServerEntityTeleport2.setEntityID(this.rearEntityId); + wrapperPlayServerEntityTeleport2.sendPacket(this.getPlayer()); + WrapperPlayServerEntityTeleport wrapperPlayServerEntityTeleport3 = new WrapperPlayServerEntityTeleport(); + yaw2 = (int)this.getPlayer().getLocation().getYaw() + 10; + d2 = Math.toRadians(yaw2); + wrapperPlayServerEntityTeleport3.setPitch(AAC.random.nextInt(100) - 50); + wrapperPlayServerEntityTeleport3.setYaw(AAC.random.nextFloat() * 359.0F); + vector2 = this.getPlayer().getLocation().add(1.7 * Math.cos(d2), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(d2)).toVector(); + wrapperPlayServerEntityTeleport3.setX(vector2.getX()); + wrapperPlayServerEntityTeleport3.setY(vector2.getY()); + wrapperPlayServerEntityTeleport3.setZ(vector2.getZ()); + wrapperPlayServerEntityTeleport3.setEntityID(this.sideEntityId); + wrapperPlayServerEntityTeleport3.sendPacket(this.getPlayer()); + } + + if ((!this.plugin.combatLogoutListener.isInCombat(this.getPlayer()) && invisibleOutsidePvp || headPlayerInvisible) && this.unusedFlag) { + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment2 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment3 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment4 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment5 = new WrapperPlayServerEntityEquipment(); + wrapperPlayServerEntityEquipment.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment2.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment3.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment4.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment5.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment.setSlot(0); + wrapperPlayServerEntityEquipment2.setSlot(1); + wrapperPlayServerEntityEquipment3.setSlot(2); + wrapperPlayServerEntityEquipment4.setSlot(3); + wrapperPlayServerEntityEquipment5.setSlot(4); + wrapperPlayServerEntityEquipment.setItem(new ItemStack(Material.AIR)); + wrapperPlayServerEntityEquipment2.setItem(new ItemStack(Material.AIR)); + wrapperPlayServerEntityEquipment3.setItem(new ItemStack(Material.AIR)); + wrapperPlayServerEntityEquipment4.setItem(new ItemStack(Material.AIR)); + wrapperPlayServerEntityEquipment5.setItem(new ItemStack(Material.AIR)); + if (equipHeldItem) { + wrapperPlayServerEntityEquipment.sendPacket(this.getPlayer()); + } + + if (equipArmour) { + wrapperPlayServerEntityEquipment2.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment3.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment4.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment5.sendPacket(this.getPlayer()); + } + + this.unusedFlag = false; + } + + if (AAC.random.nextInt(100) < 7 && (this.plugin.combatLogoutListener.isInCombat(this.getPlayer()) || !invisibleOutsidePvp) && !headPlayerInvisible) { + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment6 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment7 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment8 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment9 = new WrapperPlayServerEntityEquipment(); + WrapperPlayServerEntityEquipment wrapperPlayServerEntityEquipment10 = new WrapperPlayServerEntityEquipment(); + wrapperPlayServerEntityEquipment6.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment7.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment8.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment9.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment10.setEntityID(this.headEntityId); + wrapperPlayServerEntityEquipment6.setSlot(0); + wrapperPlayServerEntityEquipment7.setSlot(1); + wrapperPlayServerEntityEquipment8.setSlot(2); + wrapperPlayServerEntityEquipment9.setSlot(3); + wrapperPlayServerEntityEquipment10.setSlot(4); + wrapperPlayServerEntityEquipment6.setItem(this.randomWeapon()); + wrapperPlayServerEntityEquipment7.setItem(this.randomBoots()); + wrapperPlayServerEntityEquipment8.setItem(this.randomLeggings()); + wrapperPlayServerEntityEquipment9.setItem(this.randomChestplate()); + wrapperPlayServerEntityEquipment10.setItem(this.randomHelmet()); + if (equipHeldItem) { + wrapperPlayServerEntityEquipment6.sendPacket(this.getPlayer()); + } + + if (equipArmour) { + wrapperPlayServerEntityEquipment7.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment8.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment9.sendPacket(this.getPlayer()); + wrapperPlayServerEntityEquipment10.sendPacket(this.getPlayer()); + } + + this.unusedFlag = true; + } + + if (fakeOnGround) { + WrapperPlayServerRelEntityMove wrapperPlayServerRelEntityMove = createRelMovePacket(this.headEntityId); + wrapperPlayServerRelEntityMove.sendPacket(this.getPlayer()); + if (useSidePlayers) { + WrapperPlayServerRelEntityMove wrapperPlayServerRelEntityMove2 = createRelMovePacket(this.rearEntityId); + wrapperPlayServerRelEntityMove2.sendPacket(this.getPlayer()); + WrapperPlayServerRelEntityMove wrapperPlayServerRelEntityMove3 = createRelMovePacket(this.sideEntityId); + wrapperPlayServerRelEntityMove3.sendPacket(this.getPlayer()); + } + } + } + } + + private ItemStack randomWeapon() { + 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.removeDecoyManager(this.playerId); + if (this.getPlayer() != null) { + if (headTablist && !this.useOnlineName) { + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = createPlayerInfoPacket(PlayerInfoAction.REMOVE_PLAYER, pastPlayerNames, this.headIdentity); + wrapperPlayServerPlayerInfo.sendPacket(this.getPlayer()); + } + + this.getNextTaskId(); + this.tickTask.cancel(); + Bukkit.getServer().getScheduler().cancelTask(this.secondSpawnTaskId); + } + } + + private Integer getNextTaskId() { + Player player = this.getPlayer(); + if (player == null) { + return 0; + } + + for (Entry entry : this.decoyVisibilityFlags.entrySet()) { + if (this.getPlayer().isOnline()) { + this.createDestroyPacket((Integer)entry.getKey()).sendPacket(this.getPlayer()); + } + + if ((Boolean)entry.getValue()) { + this.unusedEntityId++; + } + } + + this.decoyVisibilityFlags.clear(); + int value = this.unusedEntityId; + return value; + } + + public int getHeadEntityId() { + return this.headEntityId; + } + + public static WrapperPlayServerNamedEntitySpawn createSpawnPacket(Vector vector, boolean flag, PlayerIdentity playerIdentity, Player player) { + int value = allocateEntityId(player); + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn = new WrapperPlayServerNamedEntitySpawn(); + wrapperPlayServerNamedEntitySpawn.setEntityID(value); + wrapperPlayServerNamedEntitySpawn.setPosition(vector); + wrapperPlayServerNamedEntitySpawn.setPlayerUUID(playerIdentity.getUniqueId()); + wrapperPlayServerNamedEntitySpawn.setYaw((float)(AAC.random.nextInt() % 360)); + wrapperPlayServerNamedEntitySpawn.setPitch(AAC.random.nextInt() % 100 - 50.0F); + WrappedDataWatcher wrappedDataWatcher = new WrappedDataWatcher(); + byte b; + if (flag) { + byte b2 = 32; + b = Byte.valueOf(b2); + } else { + b = 0; + } + + byte b3 = b; + wrappedDataWatcher.setObject(0, b3); + wrappedDataWatcher.setObject(6, ThreadLocalRandom.current().nextInt(19) + 1.0F); + wrapperPlayServerNamedEntitySpawn.setMetadata(wrappedDataWatcher); + return wrapperPlayServerNamedEntitySpawn; + } + + public static WrapperPlayServerPlayerInfo createPlayerInfoPacket(PlayerInfoAction playerInfoAction, boolean flag, PlayerIdentity playerIdentity) { + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = new WrapperPlayServerPlayerInfo(); + wrapperPlayServerPlayerInfo.setAction(playerInfoAction); + WrappedGameProfile wrappedGameProfile = new WrappedGameProfile(playerIdentity.getUniqueId(), flag ? playerIdentity.getName() : RandomPlayerNameGenerator.generateName()); + PlayerInfoData playerInfoData = new PlayerInfoData(wrappedGameProfile, 1, NativeGameMode.SURVIVAL, WrappedChatComponent.fromText(flag ? playerIdentity.getName() : RandomPlayerNameGenerator.generateName())); + ArrayList list = new ArrayList(); + list.add(playerInfoData); + wrapperPlayServerPlayerInfo.setData(list); + return wrapperPlayServerPlayerInfo; + } + + private WrapperPlayServerEntityDestroy createDestroyPacket(int i) { + WrapperPlayServerEntityDestroy wrapperPlayServerEntityDestroy = new WrapperPlayServerEntityDestroy(); + wrapperPlayServerEntityDestroy.setEntityIds(new int[]{i}); + return wrapperPlayServerEntityDestroy; + } + + public static WrapperPlayServerEntityMetadata createMetadataPacket(int i, boolean flag, boolean flag2) { + byte b = (byte)((flag ? 32 : 0) | (randomSprint ? (flag2 ? 8 : 0) : 0)); + WrappedWatchableObject wrappedWatchableObject = new WrappedWatchableObject(0, b); + WrappedWatchableObject wrappedWatchableObject2 = new WrappedWatchableObject(6, AAC.random.nextInt(19) + 1.0F); + WrapperPlayServerEntityMetadata wrapperPlayServerEntityMetadata = new WrapperPlayServerEntityMetadata(); + wrapperPlayServerEntityMetadata.setEntityID(i); + ArrayList list = new ArrayList(); + list.add(wrappedWatchableObject); + list.add(wrappedWatchableObject2); + wrapperPlayServerEntityMetadata.setMetadata(list); + return wrapperPlayServerEntityMetadata; + } + + public static WrapperPlayServerRelEntityMove createRelMovePacket(int i) { + WrapperPlayServerRelEntityMove wrapperPlayServerRelEntityMove = new WrapperPlayServerRelEntityMove(); + wrapperPlayServerRelEntityMove.setEntityID(i); + wrapperPlayServerRelEntityMove.setOnGround(true); + wrapperPlayServerRelEntityMove.setDx(0.0); + wrapperPlayServerRelEntityMove.setDy(0.0); + wrapperPlayServerRelEntityMove.setDz(0.0); + return wrapperPlayServerRelEntityMove; + } + + public static WrapperPlayServerEntityStatus createStatusPacket(int i) { + WrapperPlayServerEntityStatus wrapperPlayServerEntityStatus = new WrapperPlayServerEntityStatus(); + wrapperPlayServerEntityStatus.setEntityID(i); + wrapperPlayServerEntityStatus.setStatus((byte)2); + return wrapperPlayServerEntityStatus; + } + + private static int allocateEntityId(Player player) { + return player.getEntityId() + 1073741823 + ThreadLocalRandom.current().nextInt(100000); + } + + static Player getPlayer(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.getPlayer(); + } + + static boolean isOnlinePlayerNames() { + return onlinePlayerNames; + } + + static PlayerIdentity setHeadIdentity(ForcefieldDecoyManager forcefieldDecoyManager, PlayerIdentity playerIdentity) { + return forcefieldDecoyManager.headIdentity = playerIdentity; + } + + static UUID getPlayerId(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.playerId; + } + + static PlayerIdentity getHeadIdentity(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.headIdentity; + } + + static boolean setUseOnlineName(ForcefieldDecoyManager forcefieldDecoyManager, boolean flag) { + return forcefieldDecoyManager.useOnlineName = flag; + } + + static boolean isPastPlayerNames() { + return pastPlayerNames; + } + + static double getHeadPlayerHeight() { + return headPlayerHeight; + } + + static boolean isHeadPlayerInvisible() { + return headPlayerInvisible; + } + + static boolean isUseOnlineName(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.useOnlineName; + } + + static Map getDecoyVisibilityFlags(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.decoyVisibilityFlags; + } + + static boolean isHeadTablist() { + return headTablist; + } + + static int setHeadEntityId(ForcefieldDecoyManager forcefieldDecoyManager, int i) { + return forcefieldDecoyManager.headEntityId = i; + } + + static boolean isUseSidePlayers() { + return useSidePlayers; + } + + static PlayerIdentity setRearIdentity(ForcefieldDecoyManager forcefieldDecoyManager, PlayerIdentity playerIdentity) { + return forcefieldDecoyManager.rearIdentity = playerIdentity; + } + + static PlayerIdentity getRearIdentity(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.rearIdentity; + } + + static int setRearEntityId(ForcefieldDecoyManager forcefieldDecoyManager, int i) { + return forcefieldDecoyManager.rearEntityId = i; + } + + static PlayerIdentity setSideIdentity(ForcefieldDecoyManager forcefieldDecoyManager, PlayerIdentity playerIdentity) { + return forcefieldDecoyManager.sideIdentity = playerIdentity; + } + + static PlayerIdentity getSideIdentity(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.sideIdentity; + } + + static int setSideEntityId(ForcefieldDecoyManager forcefieldDecoyManager, int i) { + return forcefieldDecoyManager.sideEntityId = i; + } + + static int setSecondSpawnTaskId(ForcefieldDecoyManager forcefieldDecoyManager, int i) { + return forcefieldDecoyManager.secondSpawnTaskId = i; + } + + static AAC getPlugin(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.plugin; + } + + static int getMaxTicks(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.maxTicks; + } + + static void scheduleTick(ForcefieldDecoyManager forcefieldDecoyManager) { + forcefieldDecoyManager.scheduleTick(); + } + + static void tickPositions(ForcefieldDecoyManager forcefieldDecoyManager) { + forcefieldDecoyManager.tickPositions(); + } + + static int addElapsedTicks(ForcefieldDecoyManager forcefieldDecoyManager, int i) { + return forcefieldDecoyManager.elapsedTicks += i; + } + + static int getTickPeriod(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.tickPeriod; + } + + static int getElapsedTicks(ForcefieldDecoyManager forcefieldDecoyManager) { + return forcefieldDecoyManager.elapsedTicks; + } + + private static class SpawnTaskDeferredSpawn implements Runnable { + final SpawnTask spawnTask; + + SpawnTaskDeferredSpawn(SpawnTask spawnTask) { + this.spawnTask = spawnTask; + } + + @Override + public void run() { + this.spawnTask.decoyManager.destroy(); + } + } + + private static class SpawnTask implements Runnable { + final ForcefieldDecoyManager decoyManager; + + SpawnTask(ForcefieldDecoyManager forcefieldDecoyManager) { + this.decoyManager = forcefieldDecoyManager; + } + + @Override + public void run() { + if (ForcefieldDecoyManager.getPlayer(this.decoyManager) != null) { + if (ForcefieldDecoyManager.isOnlinePlayerNames()) { + ForcefieldDecoyManager.setHeadIdentity(this.decoyManager, PlayerIdentityPool.getInstance().getRandomOnlineIdentity(ForcefieldDecoyManager.getPlayerId(this.decoyManager))); + if (ForcefieldDecoyManager.getHeadIdentity(this.decoyManager) == null) { + boolean flag = false; + ForcefieldDecoyManager forcefieldDecoyManager = this.decoyManager; + ForcefieldDecoyManager.setUseOnlineName(forcefieldDecoyManager, flag); + ForcefieldDecoyManager.setHeadIdentity(this.decoyManager, PlayerIdentityPool.getInstance().getRandomUnusedIdentity(ForcefieldDecoyManager.getPlayerId(this.decoyManager))); + } + } else if (ForcefieldDecoyManager.isPastPlayerNames()) { + ForcefieldDecoyManager.setHeadIdentity(this.decoyManager, PlayerIdentityPool.getInstance().getRandomUnusedIdentity(ForcefieldDecoyManager.getPlayerId(this.decoyManager))); + } else { + ForcefieldDecoyManager.setHeadIdentity(this.decoyManager, PlayerIdentityPool.getInstance().generateRandomIdentity()); + } + + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn = ForcefieldDecoyManager.createSpawnPacket( + ForcefieldDecoyManager.getPlayer(this.decoyManager) + .getLocation() + .add(AAC.random.nextFloat() - 0.5, ForcefieldDecoyManager.getHeadPlayerHeight() * 1.7, AAC.random.nextFloat() - 0.5) + .toVector(), + ForcefieldDecoyManager.isHeadPlayerInvisible(), + ForcefieldDecoyManager.getHeadIdentity(this.decoyManager), + ForcefieldDecoyManager.getPlayer(this.decoyManager) + ); + if (!ForcefieldDecoyManager.isUseOnlineName(this.decoyManager)) { + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.ADD_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getHeadIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + } + + wrapperPlayServerNamedEntitySpawn.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + Map map = ForcefieldDecoyManager.getDecoyVisibilityFlags(this.decoyManager); + Integer intVal = wrapperPlayServerNamedEntitySpawn.getEntityID(); + boolean flag2 = false; + map.put(intVal, flag2); + if (!ForcefieldDecoyManager.isHeadTablist() && !ForcefieldDecoyManager.isUseOnlineName(this.decoyManager)) { + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo2 = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.REMOVE_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getHeadIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo2.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + } + + ForcefieldDecoyManager.setHeadEntityId(this.decoyManager, wrapperPlayServerNamedEntitySpawn.getEntityID()); + if (ForcefieldDecoyManager.isUseSidePlayers()) { + if (ForcefieldDecoyManager.isPastPlayerNames()) { + ForcefieldDecoyManager.setRearIdentity(this.decoyManager, PlayerIdentityPool.getInstance().getRandomUnusedIdentity(ForcefieldDecoyManager.getPlayer(this.decoyManager).getUniqueId())); + } else { + ForcefieldDecoyManager.setRearIdentity(this.decoyManager, PlayerIdentityPool.getInstance().generateRandomIdentity()); + } + + int yaw = (int)ForcefieldDecoyManager.getPlayer(this.decoyManager).getLocation().getYaw() + 190; + double d = Math.toRadians(yaw); + Vector vector = ForcefieldDecoyManager.getPlayer(this.decoyManager) + .getLocation() + .add(1.7 * Math.cos(d), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(d)) + .toVector(); + Player player = ForcefieldDecoyManager.getPlayer(this.decoyManager); + PlayerIdentity playerIdentity = ForcefieldDecoyManager.getRearIdentity(this.decoyManager); + boolean flag3 = true; + Vector vector2 = vector; + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn2 = ForcefieldDecoyManager.createSpawnPacket(vector2, flag3, playerIdentity, player); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo3 = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.ADD_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getRearIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo3.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + wrapperPlayServerNamedEntitySpawn2.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + map = ForcefieldDecoyManager.getDecoyVisibilityFlags(this.decoyManager); + intVal = wrapperPlayServerNamedEntitySpawn2.getEntityID(); + boolean flag4 = false; + map.put(intVal, flag4); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo4 = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.REMOVE_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getRearIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo4.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + ForcefieldDecoyManager.setRearEntityId(this.decoyManager, wrapperPlayServerNamedEntitySpawn2.getEntityID()); + if (ForcefieldDecoyManager.isPastPlayerNames()) { + ForcefieldDecoyManager.setSideIdentity(this.decoyManager, PlayerIdentityPool.getInstance().getRandomUnusedIdentity(ForcefieldDecoyManager.getPlayer(this.decoyManager).getUniqueId())); + } else { + ForcefieldDecoyManager.setSideIdentity(this.decoyManager, PlayerIdentityPool.getInstance().generateRandomIdentity()); + } + + yaw = (int)ForcefieldDecoyManager.getPlayer(this.decoyManager).getLocation().getYaw() + 10; + d = Math.toRadians(yaw); + Vector vector3 = ForcefieldDecoyManager.getPlayer(this.decoyManager) + .getLocation() + .add(1.7 * Math.cos(d), AAC.random.nextFloat() / 2.0F - 1.0F, 1.7 * Math.sin(d)) + .toVector(); + Player player2 = ForcefieldDecoyManager.getPlayer(this.decoyManager); + PlayerIdentity playerIdentity2 = ForcefieldDecoyManager.getSideIdentity(this.decoyManager); + boolean flag5 = true; + Vector vector4 = vector3; + WrapperPlayServerNamedEntitySpawn wrapperPlayServerNamedEntitySpawn3 = ForcefieldDecoyManager.createSpawnPacket(vector4, flag5, playerIdentity2, player2); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo5 = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.ADD_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getSideIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo5.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + wrapperPlayServerNamedEntitySpawn3.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + map = ForcefieldDecoyManager.getDecoyVisibilityFlags(this.decoyManager); + intVal = wrapperPlayServerNamedEntitySpawn3.getEntityID(); + boolean flag6 = false; + map.put(intVal, flag6); + WrapperPlayServerPlayerInfo wrapperPlayServerPlayerInfo6 = ForcefieldDecoyManager.createPlayerInfoPacket( + PlayerInfoAction.REMOVE_PLAYER, ForcefieldDecoyManager.isPastPlayerNames(), ForcefieldDecoyManager.getSideIdentity(this.decoyManager) + ); + wrapperPlayServerPlayerInfo6.sendPacket(ForcefieldDecoyManager.getPlayer(this.decoyManager)); + ForcefieldDecoyManager.setSideEntityId(this.decoyManager, wrapperPlayServerNamedEntitySpawn3.getEntityID()); + } + + ForcefieldDecoyManager.setSecondSpawnTaskId( + this.decoyManager, + Bukkit.getScheduler() + .scheduleSyncDelayedTask( + ForcefieldDecoyManager.getPlugin(this.decoyManager), new SpawnTaskDeferredSpawn(this), ForcefieldDecoyManager.getMaxTicks(this.decoyManager) + ) + ); + ForcefieldDecoyManager.scheduleTick(this.decoyManager); + } + } + } + + private static class TickTask implements Runnable { + final ForcefieldDecoyManager decoyManager; + + TickTask(ForcefieldDecoyManager forcefieldDecoyManager) { + this.decoyManager = forcefieldDecoyManager; + } + + @Override + public void run() { + ForcefieldDecoyManager.tickPositions(this.decoyManager); + ForcefieldDecoyManager.addElapsedTicks(this.decoyManager, ForcefieldDecoyManager.getTickPeriod(this.decoyManager)); + if (ForcefieldDecoyManager.getElapsedTicks(this.decoyManager) < ForcefieldDecoyManager.getMaxTicks(this.decoyManager) - ForcefieldDecoyManager.getTickPeriod(this.decoyManager)) { + ForcefieldDecoyManager.scheduleTick(this.decoyManager); + } + } + } +} 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..b492d6b --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/KnockbackDistanceTracker.java @@ -0,0 +1,97 @@ +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 movingAway; + private boolean stopped; + private boolean exempt; + private int taskId; + + public KnockbackDistanceTracker(Entity entity, Entity entity2, boolean flag) { + if (!entity.getWorld().equals(entity2.getWorld())) { + throw new IllegalStateException("Attacker and defender are in different worlds"); + } + + this.startLocation = entity.getLocation(); + this.initialDistance = Math.sqrt( + Math.pow(entity.getLocation().getX() - entity2.getLocation().getX(), 2.0) + Math.pow(entity.getLocation().getZ() - entity2.getLocation().getZ(), 2.0) + ); + this.initialVelocity = entity2.getVelocity(); + this.maxDistance = this.initialDistance; + this.retreatTicks = 0; + this.movingAway = false; + this.exempt = flag; + } + + public Location getStartLocation() { + return this.startLocation; + } + + public double getMaxDistance() { + return this.maxDistance; + } + + public void setTaskId(int i) { + this.taskId = i; + } + + public void cancelTask() { + Bukkit.getServer().getScheduler().cancelTask(this.taskId); + } + + public void updateLocation(Location location) { + double x = Math.sqrt(Math.pow(this.startLocation.getX() - location.getX(), 2.0) + Math.pow(this.startLocation.getZ() - location.getZ(), 2.0)); + if (x > this.maxDistance) { + this.maxDistance = x; + } + + if (x < this.previousDistance && x < 1.2) { + this.stopped = true; + } + + boolean flag = x < this.previousDistance; + this.updateDirectionState(flag); + this.previousDistance = x; + } + + private void updateDirectionState(boolean flag) { + if (!this.stopped) { + if (flag) { + if (this.movingAway) { + this.stopped = true; + } + } else if (this.movingAway) { + this.retreatTicks++; + } else { + this.movingAway = 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..76a1246 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/Ping.java @@ -0,0 +1,38 @@ +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) { + Class classVal = player.getClass(); + Class[] classValArray = new Class[0]; + getHandleMethod = classVal.getDeclaredMethod("getHandle", classValArray); + boolean flag = true; + Method method = getHandleMethod; + method.setAccessible(flag); + } + + Object obj = getHandleMethod.invoke(player); + if (pingField == null) { + Class classVal2 = obj.getClass(); + String str = "ping"; + pingField = classVal2.getDeclaredField(str); + boolean flag2 = true; + Field field = pingField; + field.setAccessible(flag2); + } + + int value = pingField.getInt(obj); + return value > 0 ? value : 0; + } catch (Exception ex) { + 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..baf9071 --- /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 UUID uuid; + private String name; + + public PlayerIdentity(UUID uuid, String str) { + this.uuid = uuid; + this.name = str; + } + + public UUID getUniqueId() { + return this.uuid; + } + + 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..1e5bf9c --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/PlayerIdentityPool.java @@ -0,0 +1,91 @@ +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 PlayerIdentityPool instance = new PlayerIdentityPool(); + private List identities = new ArrayList<>(); + + private PlayerIdentityPool() { + int value = 0; + + for (OfflinePlayer offlinePlayer : Bukkit.getServer().getOfflinePlayers()) { + this.identities.add(new PlayerIdentity(offlinePlayer.getUniqueId(), offlinePlayer.getName())); + if (value++ > 500) { + break; + } + } + } + + private static UUID parseUuid(String str) { + String str2 = str.replaceFirst("([0-9a-fA-F]{8})([0-9a-fA-F]{4})([0-9a-fA-F]{4})([0-9a-fA-F]{4})([0-9a-fA-F]+)", "$1-$2-$3-$4-$5"); + return UUID.fromString(str2); + } + + public static PlayerIdentityPool getInstance() { + return instance; + } + + public PlayerIdentity getRandomCachedOrGenerated() { + return this.identities.size() > 0 + ? this.identities.get(AAC.random.nextInt(this.identities.size())) + : new PlayerIdentity(UUID.randomUUID(), RandomPlayerNameGenerator.generateName()); + } + + public PlayerIdentity getRandomUnusedIdentity(UUID uuid) { + if (this.identities.size() > 0) { + boolean flag = true; + + for (int value = 0; value < 5; value++) { + PlayerIdentity playerIdentity = this.identities.get(AAC.random.nextInt(this.identities.size())); + + for (Player player : Bukkit.getServer().getOnlinePlayers()) { + if (player.getUniqueId().equals(playerIdentity.getUniqueId())) { + flag = false; + } + } + + if (flag) { + return playerIdentity; + } + + flag = true; + } + } + + return new PlayerIdentity(UUID.randomUUID(), RandomPlayerNameGenerator.generateName()); + } + + public PlayerIdentity getRandomOnlineIdentity(UUID uuid) { + for (int value = 0; value < 5; value++) { + int value2 = AAC.random.nextInt(Bukkit.getServer().getOnlinePlayers().size()); + Player player = Bukkit.getPlayer(uuid); + int value3 = 0; + + for (Player player2 : Bukkit.getServer().getOnlinePlayers()) { + if (value3 == value2) { + player = player2; + } + + value3++; + } + + if (!player.getUniqueId().equals(uuid)) { + return new PlayerIdentity(player.getUniqueId(), player.getName()); + } + } + + return null; + } + + public PlayerIdentity generateRandomIdentity() { + 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..92b0fc1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/TPS.java @@ -0,0 +1,49 @@ +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; + int SAMPLE_COUNT = 4; + private long lastTickTime = System.currentTimeMillis(); + private Deque tickDurations = new ArrayDeque<>(Collections.nCopies(this.SAMPLE_COUNT, 50L)); + + private TPS(Plugin plugin) { + this.runTaskTimer(plugin, 1L, 1L); + } + + public static double getTps() { + try { + double d = 1000.0 / instance.getAverageTickMillis(); + return d > 20.0 ? 20.0 : d; + } catch (Exception ex) { + return 20.0; + } + } + + public static void startMonitoring(Plugin plugin) { + instance = new TPS(plugin); + } + + public void run() { + long now = System.currentTimeMillis(); + long ticks = now - this.lastTickTime; + this.lastTickTime = now; + this.tickDurations.removeFirst(); + this.tickDurations.addLast(ticks); + } + + public double getAverageTickMillis() { + int value = 0; + + for (long ticks : this.tickDurations) { + value = (int)(value + ticks); + } + + return (double)value / this.SAMPLE_COUNT; + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/BlockCollisionChecks.java b/src/main/java/me/konsolas/aac/util/blocks/BlockCollisionChecks.java new file mode 100644 index 0000000..53e529e --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockCollisionChecks.java @@ -0,0 +1,1516 @@ +package me.konsolas.aac.util.blocks; + +import java.util.HashSet; +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 BlockCollisionChecks { + + public static boolean isSolidGroundBlock(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + 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 (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + case 85: + case 86: + case 87: + case 88: + case 89: + case 90: + case 91: + case 92: + case 93: + case 94: + case 95: + case 96: + case 97: + case 98: + case 99: + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + case 108: + case 109: + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + case 123: + case 124: + case 125: + case 126: + case 127: + case 128: + case 129: + case 130: + case 131: + case 132: + case 133: + case 134: + case 135: + case 136: + case 137: + case 138: + case 139: + case 140: + case 141: + case 142: + case 143: + case 144: + case 145: + case 146: + case 147: + case 148: + return true; + case 8: + case 50: + default: + return false; + } + } else { + return false; + } + } + + public static boolean isFullOrHalfBlock(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + case 85: + case 86: + case 87: + case 88: + case 89: + case 90: + case 91: + case 92: + case 93: + case 94: + case 95: + case 96: + case 97: + case 98: + case 99: + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + case 108: + case 109: + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + case 123: + case 124: + case 125: + case 126: + case 127: + case 128: + case 129: + case 130: + case 131: + case 132: + case 133: + case 134: + case 135: + case 136: + case 137: + case 138: + case 139: + case 140: + case 141: + case 142: + case 143: + case 146: + case 147: + case 148: + return true; + case 8: + case 50: + case 144: + case 145: + default: + return false; + } + } + + public static boolean isStepable(Block block) { + return isWalkableSurface(block) && isStandableBlock(block); + } + + public static boolean isLava(Block block) { + return block.getType() == Material.LAVA + || block.getType() == Material.STATIONARY_LAVA + || block.getType() == Material.STATIONARY_WATER + || block.getType() == Material.WATER + || isStepable(block); + } + + public static boolean isSlab(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 isStair(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 isSlabOrStair(Material material) { + return isSlab(material) || isStair(material); + } + + public static boolean isFenceOrGate(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 isContainerBlock(Block block) { + return block.getType() == Material.CHEST || block.getType() == Material.ENDER_CHEST || block.getType() == Material.TRAPPED_CHEST; + } + + public static boolean isWalkableSurface(Block block) { + return (!isFenceOrGate(block.getType()) || block.getRelative(BlockFace.UP).getType() == Material.CARPET) && !isContainerBlock(block) && !MovementObstacleChecks.isCarpetOrPressurePlate(block); + } + + public static boolean isOnGround(Location location) { + return isOnGround(location, new RelativeBlockCache(location)); + } + + public static boolean isOnGround(Location location, RelativeBlockCache relativeBlockCache) { + 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 (isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.3)) + || isLava(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.3)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, -0.3)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.3)) + || isLava(relativeBlockCache.getSubtractedBlock(0.3, 0.1, -0.3)) + || isLava(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.3))) { + return true; + } + + if (isStepable(location.clone().subtract(0.0, 0.2, 0.0).getBlock()) || isStepable(location.getBlock())) { + return true; + } + + if (!isContainerBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.235)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(0.235, 0.1, 0.0)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.235)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(-0.235, 0.1, 0.0)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(-0.235, 0.1, -0.235)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(-0.235, 0.1, 0.235)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(0.235, 0.1, -0.235)) + && !isContainerBlock(relativeBlockCache.getSubtractedBlock(0.235, 0.1, 0.235))) { + boolean flag = MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.6, 0.1)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.1, 0.6, 0.0)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.6, -0.1)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, 0.0)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, -0.1)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, 0.1)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.1, 0.6, -0.1)) + || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.1, 0.6, 0.1)); + if ((!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.3)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.0, 0.3)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.0, 0.0)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.3)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.0, 0.0, -0.3)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.0)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, 0.0)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, -0.3)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, -0.3)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.3)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(-0.3, 0.0, 0.3)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.1, -0.3)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.0, -0.3)) && !flag) + && (!MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)) || MovementObstacleChecks.isCarpetOrPressurePlate(relativeBlockCache.getSubtractedBlock(0.3, 0.0, 0.3)) && !flag)) { + boolean flag2 = isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.6, 0.1)) + || isLava(relativeBlockCache.getSubtractedBlock(0.1, 0.6, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.6, -0.1)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, -0.1)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.1, 0.6, 0.1)) + || isLava(relativeBlockCache.getSubtractedBlock(0.1, 0.6, -0.1)) + || isLava(relativeBlockCache.getSubtractedBlock(0.1, 0.6, 0.1)); + if ((!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.0, 0.6, 0.3)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.0, 0.3, 0.3)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.6, 0.0)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.3, 0.0)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.0, 0.6, -0.3)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.0, 0.3, -0.3)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.6, 0.0)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.3, 0.0)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.6, -0.3)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.3, -0.3)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.6, 0.3)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(-0.3, 0.3, 0.3)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.6, -0.3)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.3, -0.3)) && !flag2) + && (!isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.6, 0.0)) || isFenceOrGate(relativeBlockCache.getSubtractedMaterial(0.3, 0.3, 0.3)) && !flag2)) { + Block block = getSupportingSpecialBlock(relativeBlockCache); + double y = location.getY(); + int value = (int)y; + y -= value; + if (block != null) { + if (block.getType() == Material.SNOW) { + byte b = block.getData(); + if (b > 0 && y - 0.1 < b * 0.125) { + return true; + } + } else if (isPartialHeightBlock(block.getType()) && y - 0.1 < 0.125) { + return true; + } + } + + return location.clone().subtract(0.0, 0.6, 0.0).getBlock().getType() == Material.COBBLE_WALL + && isFenceOrGate(location.getBlock().getType()) + && location.getBlock().getType() != Material.COBBLE_WALL; + } else { + return true; + } + } else { + return true; + } + } else { + return true; + } + } + + public static boolean isNearLava(RelativeBlockCache relativeBlockCache) { + return isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.5)) + || isLava(relativeBlockCache.getSubtractedBlock(0.5, 0.1, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.5)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.5, 0.1, 0.0)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.5, 0.1, -0.5)) + || isLava(relativeBlockCache.getSubtractedBlock(-0.5, 0.1, 0.5)) + || isLava(relativeBlockCache.getSubtractedBlock(0.5, 0.1, -0.5)) + || isLava(relativeBlockCache.getSubtractedBlock(0.5, 0.1, 0.5)); + } + + public static boolean isUnderLowCeiling(RelativeBlockCache relativeBlockCache) { + return isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.1, 0.3)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.0)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(0.0, 0.1, -0.3)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.0)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, -0.3)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(-0.3, 0.1, 0.3)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.1, -0.3)) + || isFullOrHalfBlock(relativeBlockCache.getSubtractedBlock(0.3, 0.1, 0.3)); + } + + private static Block getSupportingSpecialBlock(RelativeBlockCache relativeBlockCache) { + HashSet set = new HashSet<>(); + set.add(relativeBlockCache.getRelativeBlock(0.0, -0.1, 0.3)); + set.add(relativeBlockCache.getRelativeBlock(0.3, -0.1, 0.0)); + set.add(relativeBlockCache.getRelativeBlock(0.0, -0.1, -0.3)); + set.add(relativeBlockCache.getRelativeBlock(-0.3, -0.1, 0.0)); + set.add(relativeBlockCache.getRelativeBlock(-0.3, -0.1, -0.3)); + set.add(relativeBlockCache.getRelativeBlock(-0.3, -0.1, 0.3)); + set.add(relativeBlockCache.getRelativeBlock(0.3, -0.1, -0.3)); + set.add(relativeBlockCache.getRelativeBlock(0.3, -0.1, 0.3)); + set.add(relativeBlockCache.getRelativeBlock(0.0, -0.1, 0.0)); + Block block = null; + byte b = -1; + + for (Block block2 : set) { + if (block2.getType() == Material.SNOW) { + byte b2 = block2.getData(); + if (b2 > b) { + b = b2; + block = block2; + } + } + } + + for (Block block3 : set) { + if (isPartialHeightBlock(block3.getType()) && 1 > b) { + b = 1; + block = block3; + } + } + + return block; + } + + public static boolean isOnClimbable(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 isPartialHeightBlock(Material material) { + switch (MaterialSwitch.SWITCH_TABLE[material.ordinal()]) { + case 149: + case 150: + case 151: + case 152: + return true; + default: + return false; + } + } + + public static boolean isAdjacentToSolidBlock(RelativeBlockCache relativeBlockCache) { + Block block = relativeBlockCache.getCenterBlock(); + + for (BlockFace face : BlockFace.values()) { + Material material = block.getRelative(face).getType(); + switch (MaterialSwitch.SWITCH_TABLE[material.ordinal()]) { + case 96: + case 104: + case 116: + case 118: + case 121: + case 138: + case 147: + case 148: + case 153: + return true; + } + } + + return false; + } + + public static boolean isAboveBounceBlock(RelativeBlockCache relativeBlockCache) { + return isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, -1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, -1.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, -1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, -1.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, -1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, -1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, -1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, -1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 0.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 0.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 0.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 0.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 0.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 0.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 0.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 0.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 1.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 1.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 1.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 1.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 2.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 2.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 2.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 2.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 2.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 2.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 2.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 2.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 3.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 3.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 3.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 3.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 3.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 3.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 3.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 3.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 4.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 4.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.0, 4.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 4.0, 0.0)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 4.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(-0.4, 4.0, 0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 4.0, -0.4)) + || isSlimeOrMovingPiston(relativeBlockCache.getSubtractedBlock(0.4, 4.0, 0.4)) + || relativeBlockCache.getSubtractedBlock(0.0, -1.0, 0.0).getType().equals(Material.SLIME_BLOCK) + || relativeBlockCache.getCenterBlock().getType().equals(Material.SLIME_BLOCK) + || relativeBlockCache.getSubtractedBlock(0.0, 1.0, 0.0).getType().equals(Material.SLIME_BLOCK) + || relativeBlockCache.getSubtractedBlock(0.0, 2.0, 0.0).getType().equals(Material.SLIME_BLOCK); + } + + public static boolean isSlimeOrMovingPiston(Block block) { + return block.getType() == Material.SLIME_BLOCK || block.getType() == Material.PISTON_MOVING_PIECE; + } + + class MaterialSwitch { + static final int[] SWITCH_TABLE = new int[Material.values().length]; + + static { + try { + SWITCH_TABLE[Material.BARRIER.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[Material.BEACON.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[Material.BEDROCK.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + SWITCH_TABLE[Material.BOOKSHELF.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + SWITCH_TABLE[Material.BRICK.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + SWITCH_TABLE[Material.BURNING_FURNACE.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + SWITCH_TABLE[Material.CLAY.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + SWITCH_TABLE[Material.CLAY_BRICK.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + + try { + SWITCH_TABLE[Material.COAL_BLOCK.ordinal()] = 9; + } catch (NoSuchFieldError ex9) { + } + + try { + SWITCH_TABLE[Material.COAL_ORE.ordinal()] = 10; + } catch (NoSuchFieldError ex10) { + } + + try { + SWITCH_TABLE[Material.COBBLESTONE.ordinal()] = 11; + } catch (NoSuchFieldError ex11) { + } + + try { + SWITCH_TABLE[Material.COMMAND.ordinal()] = 12; + } catch (NoSuchFieldError ex12) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_BLOCK.ordinal()] = 13; + } catch (NoSuchFieldError ex13) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_ORE.ordinal()] = 14; + } catch (NoSuchFieldError ex14) { + } + + try { + SWITCH_TABLE[Material.DIRT.ordinal()] = 15; + } catch (NoSuchFieldError ex15) { + } + + try { + SWITCH_TABLE[Material.DISPENSER.ordinal()] = 16; + } catch (NoSuchFieldError ex16) { + } + + try { + SWITCH_TABLE[Material.DOUBLE_STEP.ordinal()] = 17; + } catch (NoSuchFieldError ex17) { + } + + try { + SWITCH_TABLE[Material.DOUBLE_STONE_SLAB2.ordinal()] = 18; + } catch (NoSuchFieldError ex18) { + } + + try { + SWITCH_TABLE[Material.DROPPER.ordinal()] = 19; + } catch (NoSuchFieldError ex19) { + } + + try { + SWITCH_TABLE[Material.EMERALD_BLOCK.ordinal()] = 20; + } catch (NoSuchFieldError ex20) { + } + + try { + SWITCH_TABLE[Material.EMERALD_ORE.ordinal()] = 21; + } catch (NoSuchFieldError ex21) { + } + + try { + SWITCH_TABLE[Material.FURNACE.ordinal()] = 22; + } catch (NoSuchFieldError ex22) { + } + + try { + SWITCH_TABLE[Material.GLASS.ordinal()] = 23; + } catch (NoSuchFieldError ex23) { + } + + try { + SWITCH_TABLE[Material.GLOWING_REDSTONE_ORE.ordinal()] = 24; + } catch (NoSuchFieldError ex24) { + } + + try { + SWITCH_TABLE[Material.GLOWSTONE.ordinal()] = 25; + } catch (NoSuchFieldError ex25) { + } + + try { + SWITCH_TABLE[Material.GOLD_BLOCK.ordinal()] = 26; + } catch (NoSuchFieldError ex26) { + } + + try { + SWITCH_TABLE[Material.GOLD_ORE.ordinal()] = 27; + } catch (NoSuchFieldError ex27) { + } + + try { + SWITCH_TABLE[Material.GRASS.ordinal()] = 28; + } catch (NoSuchFieldError ex28) { + } + + try { + SWITCH_TABLE[Material.GRAVEL.ordinal()] = 29; + } catch (NoSuchFieldError ex29) { + } + + try { + SWITCH_TABLE[Material.HARD_CLAY.ordinal()] = 30; + } catch (NoSuchFieldError ex30) { + } + + try { + SWITCH_TABLE[Material.HAY_BLOCK.ordinal()] = 31; + } catch (NoSuchFieldError ex31) { + } + + try { + SWITCH_TABLE[Material.HUGE_MUSHROOM_1.ordinal()] = 32; + } catch (NoSuchFieldError ex32) { + } + + try { + SWITCH_TABLE[Material.HUGE_MUSHROOM_2.ordinal()] = 33; + } catch (NoSuchFieldError ex33) { + } + + try { + SWITCH_TABLE[Material.ICE.ordinal()] = 34; + } catch (NoSuchFieldError ex34) { + } + + try { + SWITCH_TABLE[Material.IRON_BLOCK.ordinal()] = 35; + } catch (NoSuchFieldError ex35) { + } + + try { + SWITCH_TABLE[Material.IRON_ORE.ordinal()] = 36; + } catch (NoSuchFieldError ex36) { + } + + try { + SWITCH_TABLE[Material.JACK_O_LANTERN.ordinal()] = 37; + } catch (NoSuchFieldError ex37) { + } + + try { + SWITCH_TABLE[Material.JUKEBOX.ordinal()] = 38; + } catch (NoSuchFieldError ex38) { + } + + try { + SWITCH_TABLE[Material.LAPIS_BLOCK.ordinal()] = 39; + } catch (NoSuchFieldError ex39) { + } + + try { + SWITCH_TABLE[Material.LAPIS_ORE.ordinal()] = 40; + } catch (NoSuchFieldError ex40) { + } + + try { + SWITCH_TABLE[Material.LEAVES.ordinal()] = 41; + } catch (NoSuchFieldError ex41) { + } + + try { + SWITCH_TABLE[Material.LEAVES_2.ordinal()] = 42; + } catch (NoSuchFieldError ex42) { + } + + try { + SWITCH_TABLE[Material.LOG.ordinal()] = 43; + } catch (NoSuchFieldError ex43) { + } + + try { + SWITCH_TABLE[Material.LOG_2.ordinal()] = 44; + } catch (NoSuchFieldError ex44) { + } + + try { + SWITCH_TABLE[Material.MOB_SPAWNER.ordinal()] = 45; + } catch (NoSuchFieldError ex45) { + } + + try { + SWITCH_TABLE[Material.MOSSY_COBBLESTONE.ordinal()] = 46; + } catch (NoSuchFieldError ex46) { + } + + try { + SWITCH_TABLE[Material.MYCEL.ordinal()] = 47; + } catch (NoSuchFieldError ex47) { + } + + try { + SWITCH_TABLE[Material.NETHERRACK.ordinal()] = 48; + } catch (NoSuchFieldError ex48) { + } + + try { + SWITCH_TABLE[Material.NETHER_BRICK.ordinal()] = 49; + } catch (NoSuchFieldError ex49) { + } + + try { + SWITCH_TABLE[Material.NETHER_BRICK_ITEM.ordinal()] = 50; + } catch (NoSuchFieldError ex50) { + } + + try { + SWITCH_TABLE[Material.NOTE_BLOCK.ordinal()] = 51; + } catch (NoSuchFieldError ex51) { + } + + try { + SWITCH_TABLE[Material.OBSIDIAN.ordinal()] = 52; + } catch (NoSuchFieldError ex52) { + } + + try { + SWITCH_TABLE[Material.PACKED_ICE.ordinal()] = 53; + } catch (NoSuchFieldError ex53) { + } + + try { + SWITCH_TABLE[Material.PISTON_BASE.ordinal()] = 54; + } catch (NoSuchFieldError ex54) { + } + + try { + SWITCH_TABLE[Material.PISTON_STICKY_BASE.ordinal()] = 55; + } catch (NoSuchFieldError ex55) { + } + + try { + SWITCH_TABLE[Material.PRISMARINE.ordinal()] = 56; + } catch (NoSuchFieldError ex56) { + } + + try { + SWITCH_TABLE[Material.PUMPKIN.ordinal()] = 57; + } catch (NoSuchFieldError ex57) { + } + + try { + SWITCH_TABLE[Material.QUARTZ_BLOCK.ordinal()] = 58; + } catch (NoSuchFieldError ex58) { + } + + try { + SWITCH_TABLE[Material.QUARTZ_ORE.ordinal()] = 59; + } catch (NoSuchFieldError ex59) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_BLOCK.ordinal()] = 60; + } catch (NoSuchFieldError ex60) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_LAMP_OFF.ordinal()] = 61; + } catch (NoSuchFieldError ex61) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_LAMP_ON.ordinal()] = 62; + } catch (NoSuchFieldError ex62) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_ORE.ordinal()] = 63; + } catch (NoSuchFieldError ex63) { + } + + try { + SWITCH_TABLE[Material.RED_SANDSTONE.ordinal()] = 64; + } catch (NoSuchFieldError ex64) { + } + + try { + SWITCH_TABLE[Material.SAND.ordinal()] = 65; + } catch (NoSuchFieldError ex65) { + } + + try { + SWITCH_TABLE[Material.SANDSTONE.ordinal()] = 66; + } catch (NoSuchFieldError ex66) { + } + + try { + SWITCH_TABLE[Material.SEA_LANTERN.ordinal()] = 67; + } catch (NoSuchFieldError ex67) { + } + + try { + SWITCH_TABLE[Material.SMOOTH_BRICK.ordinal()] = 68; + } catch (NoSuchFieldError ex68) { + } + + try { + SWITCH_TABLE[Material.SNOW_BLOCK.ordinal()] = 69; + } catch (NoSuchFieldError ex69) { + } + + try { + SWITCH_TABLE[Material.SPONGE.ordinal()] = 70; + } catch (NoSuchFieldError ex70) { + } + + try { + SWITCH_TABLE[Material.STAINED_CLAY.ordinal()] = 71; + } catch (NoSuchFieldError ex71) { + } + + try { + SWITCH_TABLE[Material.STAINED_GLASS.ordinal()] = 72; + } catch (NoSuchFieldError ex72) { + } + + try { + SWITCH_TABLE[Material.STONE.ordinal()] = 73; + } catch (NoSuchFieldError ex73) { + } + + try { + SWITCH_TABLE[Material.TNT.ordinal()] = 74; + } catch (NoSuchFieldError ex74) { + } + + try { + SWITCH_TABLE[Material.WOOD.ordinal()] = 75; + } catch (NoSuchFieldError ex75) { + } + + try { + SWITCH_TABLE[Material.WOOD_DOUBLE_STEP.ordinal()] = 76; + } catch (NoSuchFieldError ex76) { + } + + try { + SWITCH_TABLE[Material.WOOL.ordinal()] = 77; + } catch (NoSuchFieldError ex77) { + } + + try { + SWITCH_TABLE[Material.WORKBENCH.ordinal()] = 78; + } catch (NoSuchFieldError ex78) { + } + + try { + SWITCH_TABLE[Material.BED_BLOCK.ordinal()] = 79; + } catch (NoSuchFieldError ex79) { + } + + try { + SWITCH_TABLE[Material.PISTON_EXTENSION.ordinal()] = 80; + } catch (NoSuchFieldError ex80) { + } + + try { + SWITCH_TABLE[Material.PISTON_MOVING_PIECE.ordinal()] = 81; + } catch (NoSuchFieldError ex81) { + } + + try { + SWITCH_TABLE[Material.STEP.ordinal()] = 82; + } catch (NoSuchFieldError ex82) { + } + + try { + SWITCH_TABLE[Material.WOOD_STAIRS.ordinal()] = 83; + } catch (NoSuchFieldError ex83) { + } + + try { + SWITCH_TABLE[Material.CHEST.ordinal()] = 84; + } catch (NoSuchFieldError ex84) { + } + + try { + SWITCH_TABLE[Material.SOIL.ordinal()] = 85; + } catch (NoSuchFieldError ex85) { + } + + try { + SWITCH_TABLE[Material.WOODEN_DOOR.ordinal()] = 86; + } catch (NoSuchFieldError ex86) { + } + + try { + SWITCH_TABLE[Material.COBBLESTONE_STAIRS.ordinal()] = 87; + } catch (NoSuchFieldError ex87) { + } + + try { + SWITCH_TABLE[Material.IRON_DOOR_BLOCK.ordinal()] = 88; + } catch (NoSuchFieldError ex88) { + } + + try { + SWITCH_TABLE[Material.CACTUS.ordinal()] = 89; + } catch (NoSuchFieldError ex89) { + } + + try { + SWITCH_TABLE[Material.FENCE.ordinal()] = 90; + } catch (NoSuchFieldError ex90) { + } + + try { + SWITCH_TABLE[Material.SOUL_SAND.ordinal()] = 91; + } catch (NoSuchFieldError ex91) { + } + + try { + SWITCH_TABLE[Material.CAKE_BLOCK.ordinal()] = 92; + } catch (NoSuchFieldError ex92) { + } + + try { + SWITCH_TABLE[Material.TRAP_DOOR.ordinal()] = 93; + } catch (NoSuchFieldError ex93) { + } + + try { + SWITCH_TABLE[Material.MONSTER_EGGS.ordinal()] = 94; + } catch (NoSuchFieldError ex94) { + } + + try { + SWITCH_TABLE[Material.IRON_FENCE.ordinal()] = 95; + } catch (NoSuchFieldError ex95) { + } + + try { + SWITCH_TABLE[Material.THIN_GLASS.ordinal()] = 96; + } catch (NoSuchFieldError ex96) { + } + + try { + SWITCH_TABLE[Material.MELON_BLOCK.ordinal()] = 97; + } catch (NoSuchFieldError ex97) { + } + + try { + SWITCH_TABLE[Material.FENCE_GATE.ordinal()] = 98; + } catch (NoSuchFieldError ex98) { + } + + try { + SWITCH_TABLE[Material.BRICK_STAIRS.ordinal()] = 99; + } catch (NoSuchFieldError ex99) { + } + + try { + SWITCH_TABLE[Material.SMOOTH_STAIRS.ordinal()] = 100; + } catch (NoSuchFieldError ex100) { + } + + try { + SWITCH_TABLE[Material.NETHER_FENCE.ordinal()] = 101; + } catch (NoSuchFieldError ex101) { + } + + try { + SWITCH_TABLE[Material.NETHER_BRICK_STAIRS.ordinal()] = 102; + } catch (NoSuchFieldError ex102) { + } + + try { + SWITCH_TABLE[Material.ENCHANTMENT_TABLE.ordinal()] = 103; + } catch (NoSuchFieldError ex103) { + } + + try { + SWITCH_TABLE[Material.BREWING_STAND.ordinal()] = 104; + } catch (NoSuchFieldError ex104) { + } + + try { + SWITCH_TABLE[Material.CAULDRON.ordinal()] = 105; + } catch (NoSuchFieldError ex105) { + } + + try { + SWITCH_TABLE[Material.ENDER_PORTAL_FRAME.ordinal()] = 106; + } catch (NoSuchFieldError ex106) { + } + + try { + SWITCH_TABLE[Material.ENDER_STONE.ordinal()] = 107; + } catch (NoSuchFieldError ex107) { + } + + try { + SWITCH_TABLE[Material.DRAGON_EGG.ordinal()] = 108; + } catch (NoSuchFieldError ex108) { + } + + try { + SWITCH_TABLE[Material.WOOD_STEP.ordinal()] = 109; + } catch (NoSuchFieldError ex109) { + } + + try { + SWITCH_TABLE[Material.SANDSTONE_STAIRS.ordinal()] = 110; + } catch (NoSuchFieldError ex110) { + } + + try { + SWITCH_TABLE[Material.ENDER_CHEST.ordinal()] = 111; + } catch (NoSuchFieldError ex111) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_WOOD_STAIRS.ordinal()] = 112; + } catch (NoSuchFieldError ex112) { + } + + try { + SWITCH_TABLE[Material.BIRCH_WOOD_STAIRS.ordinal()] = 113; + } catch (NoSuchFieldError ex113) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_WOOD_STAIRS.ordinal()] = 114; + } catch (NoSuchFieldError ex114) { + } + + try { + SWITCH_TABLE[Material.COBBLE_WALL.ordinal()] = 115; + } catch (NoSuchFieldError ex115) { + } + + try { + SWITCH_TABLE[Material.ANVIL.ordinal()] = 116; + } catch (NoSuchFieldError ex116) { + } + + try { + SWITCH_TABLE[Material.TRAPPED_CHEST.ordinal()] = 117; + } catch (NoSuchFieldError ex117) { + } + + try { + SWITCH_TABLE[Material.DAYLIGHT_DETECTOR.ordinal()] = 118; + } catch (NoSuchFieldError ex118) { + } + + try { + SWITCH_TABLE[Material.HOPPER.ordinal()] = 119; + } catch (NoSuchFieldError ex119) { + } + + try { + SWITCH_TABLE[Material.QUARTZ_STAIRS.ordinal()] = 120; + } catch (NoSuchFieldError ex120) { + } + + try { + SWITCH_TABLE[Material.STAINED_GLASS_PANE.ordinal()] = 121; + } catch (NoSuchFieldError ex121) { + } + + try { + SWITCH_TABLE[Material.ACACIA_STAIRS.ordinal()] = 122; + } catch (NoSuchFieldError ex122) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_STAIRS.ordinal()] = 123; + } catch (NoSuchFieldError ex123) { + } + + try { + SWITCH_TABLE[Material.SLIME_BLOCK.ordinal()] = 124; + } catch (NoSuchFieldError ex124) { + } + + try { + SWITCH_TABLE[Material.IRON_TRAPDOOR.ordinal()] = 125; + } catch (NoSuchFieldError ex125) { + } + + try { + SWITCH_TABLE[Material.RED_SANDSTONE_STAIRS.ordinal()] = 126; + } catch (NoSuchFieldError ex126) { + } + + try { + SWITCH_TABLE[Material.STONE_SLAB2.ordinal()] = 127; + } catch (NoSuchFieldError ex127) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_FENCE_GATE.ordinal()] = 128; + } catch (NoSuchFieldError ex128) { + } + + try { + SWITCH_TABLE[Material.BIRCH_FENCE_GATE.ordinal()] = 129; + } catch (NoSuchFieldError ex129) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_FENCE_GATE.ordinal()] = 130; + } catch (NoSuchFieldError ex130) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_FENCE_GATE.ordinal()] = 131; + } catch (NoSuchFieldError ex131) { + } + + try { + SWITCH_TABLE[Material.ACACIA_FENCE_GATE.ordinal()] = 132; + } catch (NoSuchFieldError ex132) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_FENCE.ordinal()] = 133; + } catch (NoSuchFieldError ex133) { + } + + try { + SWITCH_TABLE[Material.BIRCH_FENCE.ordinal()] = 134; + } catch (NoSuchFieldError ex134) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_FENCE.ordinal()] = 135; + } catch (NoSuchFieldError ex135) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_FENCE.ordinal()] = 136; + } catch (NoSuchFieldError ex136) { + } + + try { + SWITCH_TABLE[Material.ACACIA_FENCE.ordinal()] = 137; + } catch (NoSuchFieldError ex137) { + } + + try { + SWITCH_TABLE[Material.DAYLIGHT_DETECTOR_INVERTED.ordinal()] = 138; + } catch (NoSuchFieldError ex138) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_DOOR.ordinal()] = 139; + } catch (NoSuchFieldError ex139) { + } + + try { + SWITCH_TABLE[Material.BIRCH_DOOR.ordinal()] = 140; + } catch (NoSuchFieldError ex140) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_DOOR.ordinal()] = 141; + } catch (NoSuchFieldError ex141) { + } + + try { + SWITCH_TABLE[Material.ACACIA_DOOR.ordinal()] = 142; + } catch (NoSuchFieldError ex142) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_DOOR.ordinal()] = 143; + } catch (NoSuchFieldError ex143) { + } + + try { + SWITCH_TABLE[Material.LADDER.ordinal()] = 144; + } catch (NoSuchFieldError ex144) { + } + + try { + SWITCH_TABLE[Material.VINE.ordinal()] = 145; + } catch (NoSuchFieldError ex145) { + } + + try { + SWITCH_TABLE[Material.WATER_LILY.ordinal()] = 146; + } catch (NoSuchFieldError ex146) { + } + + try { + SWITCH_TABLE[Material.SKULL.ordinal()] = 147; + } catch (NoSuchFieldError ex147) { + } + + try { + SWITCH_TABLE[Material.FLOWER_POT.ordinal()] = 148; + } catch (NoSuchFieldError ex148) { + } + + try { + SWITCH_TABLE[Material.DIODE_BLOCK_OFF.ordinal()] = 149; + } catch (NoSuchFieldError ex149) { + } + + try { + SWITCH_TABLE[Material.DIODE_BLOCK_ON.ordinal()] = 150; + } catch (NoSuchFieldError ex150) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_COMPARATOR_OFF.ordinal()] = 151; + } catch (NoSuchFieldError ex151) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_COMPARATOR_ON.ordinal()] = 152; + } catch (NoSuchFieldError ex152) { + } + + try { + SWITCH_TABLE[Material.SNOW.ordinal()] = 153; + } catch (NoSuchFieldError ex153) { + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/BlockControlState.java b/src/main/java/me/konsolas/aac/util/blocks/BlockControlState.java new file mode 100644 index 0000000..55b858f --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockControlState.java @@ -0,0 +1,4 @@ +package me.konsolas.aac.util.blocks; + +public class BlockControlState { +} 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..f459130 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockData.java @@ -0,0 +1,224 @@ +package me.konsolas.aac.util.blocks; + +import java.util.HashMap; +import java.util.Map; +import org.bukkit.Material; + +public class BlockData { + private static Map PROPERTIES = new HashMap<>(); + + public static MiningToolCategory getToolCategory(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getToolCategory() : MiningToolCategory.NONE; + } + + public static ToolMiningLevel getMinimumLevel(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getMinimumLevel() : ToolMiningLevel.NA; + } + + public static double getHardness(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).getHardness() : 0.0; + } + + public static boolean isFullBlock(Material material) { + return PROPERTIES.containsKey(material) ? PROPERTIES.get(material).isSolidFullBlock() : true; + } + + static { + PROPERTIES.put(Material.BARRIER, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.BEDROCK, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.COMMAND, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.ENDER_PORTAL, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.ENDER_PORTAL_FRAME, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.AIR, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.LAVA, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.STATIONARY_LAVA, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.WATER, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.STATIONARY_WATER, new MaterialSwitch(Double.POSITIVE_INFINITY, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.OBSIDIAN, new MaterialSwitch(50.0, MiningToolCategory.PICKAXE, ToolMiningLevel.DIAMOND)); + PROPERTIES.put(Material.ENDER_CHEST, new MaterialSwitch(22.5, MiningToolCategory.PICKAXE, ToolMiningLevel.DIAMOND)); + PROPERTIES.put(Material.ANVIL, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.COAL_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.DIAMOND_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.EMERALD_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.IRON_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.STONE)); + PROPERTIES.put(Material.REDSTONE_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.ENCHANTMENT_TABLE, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.IRON_FENCE, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.IRON_DOOR_BLOCK, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.IRON_TRAPDOOR, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.MOB_SPAWNER, new MaterialSwitch(5.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.WEB, new MaterialSwitch(4.0, MiningToolCategory.SHEARS, ToolMiningLevel.NA)); + PROPERTIES.put(Material.DISPENSER, new MaterialSwitch(3.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.DROPPER, new MaterialSwitch(3.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.FURNACE, new MaterialSwitch(3.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.BEACON, new MaterialSwitch(3.0, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.GOLD_BLOCK, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.COAL_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.DRAGON_EGG, new MaterialSwitch(3.0, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.DIAMOND_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.EMERALD_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.ENDER_STONE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.GOLD_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.HOPPER, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.IRON_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.STONE)); + PROPERTIES.put(Material.LAPIS_BLOCK, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.STONE)); + PROPERTIES.put(Material.LAPIS_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.STONE)); + PROPERTIES.put(Material.QUARTZ_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.REDSTONE_ORE, new MaterialSwitch(3.0, MiningToolCategory.PICKAXE, ToolMiningLevel.IRON)); + PROPERTIES.put(Material.TRAP_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WOODEN_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.ACACIA_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.BIRCH_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_DOOR, new MaterialSwitch(3.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.CHEST, new MaterialSwitch(2.5, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.TRAPPED_CHEST, new MaterialSwitch(2.5, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WORKBENCH, new MaterialSwitch(2.5, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.BRICK_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.BRICK, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.CAULDRON, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.COBBLESTONE, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.COBBLESTONE_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.COBBLE_WALL, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.ACACIA_FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.BIRCH_FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_FENCE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.ACACIA_FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.BIRCH_FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_FENCE_GATE, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JUKEBOX, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.MOSSY_COBBLESTONE, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.NETHER_BRICK, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.NETHER_BRICK_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.NETHER_FENCE, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.STEP, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.LOG, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.LOG_2, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WOOD, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.STONE_SLAB2, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.DOUBLE_STONE_SLAB2, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.DOUBLE_STEP, new MaterialSwitch(2.0, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.WOOD_STEP, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WOOD_DOUBLE_STEP, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WOOD_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.ACACIA_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SPRUCE_WOOD_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.BIRCH_WOOD_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JUNGLE_WOOD_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DARK_OAK_STAIRS, new MaterialSwitch(2.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.STONE, new MaterialSwitch(1.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.PRISMARINE, new MaterialSwitch(1.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.SMOOTH_BRICK, new MaterialSwitch(1.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.SMOOTH_STAIRS, new MaterialSwitch(1.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.HARD_CLAY, new MaterialSwitch(1.25, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.STAINED_CLAY, new MaterialSwitch(1.25, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.BANNER, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.JACK_O_LANTERN, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.MELON_BLOCK, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SKULL, new MaterialSwitch(1.0, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.PUMPKIN, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SIGN_POST, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.WALL_SIGN, new MaterialSwitch(1.0, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.QUARTZ_BLOCK, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.NOTE_BLOCK, new MaterialSwitch(0.8, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.QUARTZ_STAIRS, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.RED_SANDSTONE, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.RED_SANDSTONE_STAIRS, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.SANDSTONE, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.SANDSTONE_STAIRS, new MaterialSwitch(0.8, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.WOOL, new MaterialSwitch(0.8, MiningToolCategory.SHEARS, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.MONSTER_EGG, new MaterialSwitch(0.75, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.RAILS, new MaterialSwitch(0.7, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.ACTIVATOR_RAIL, new MaterialSwitch(0.7, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DETECTOR_RAIL, new MaterialSwitch(0.7, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.POWERED_RAIL, new MaterialSwitch(0.7, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.CLAY, new MaterialSwitch(0.6, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SOIL, new MaterialSwitch(0.6, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.GRASS, new MaterialSwitch(0.6, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.GRAVEL, new MaterialSwitch(0.6, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.MYCEL, new MaterialSwitch(0.6, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SPONGE, new MaterialSwitch(0.6, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.BREWING_STAND, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.STONE_BUTTON, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.CAKE, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.DIRT, new MaterialSwitch(0.5, MiningToolCategory.SHOVEL, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.HAY_BLOCK, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.ICE, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.LEVER, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.PACKED_ICE, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.PISTON_BASE, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.PISTON_EXTENSION, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.PISTON_MOVING_PIECE, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.PISTON_STICKY_BASE, new MaterialSwitch(0.5, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.SAND, new MaterialSwitch(0.5, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SOUL_SAND, new MaterialSwitch(0.5, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.GOLD_PLATE, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.IRON_PLATE, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.STONE_PLATE, new MaterialSwitch(0.5, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.WOOD_PLATE, new MaterialSwitch(0.5, MiningToolCategory.AXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.CACTUS, new MaterialSwitch(0.4, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.LADDER, new MaterialSwitch(0.4, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.NETHERRACK, new MaterialSwitch(0.4, MiningToolCategory.PICKAXE, ToolMiningLevel.WOOD)); + PROPERTIES.put(Material.GLASS, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.STAINED_GLASS_PANE, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.STAINED_GLASS, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.THIN_GLASS, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA)); + PROPERTIES.put(Material.GLOWSTONE, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.REDSTONE_LAMP_ON, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.REDSTONE_LAMP_OFF, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.SEA_LANTERN, new MaterialSwitch(0.3, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.BED, new MaterialSwitch(0.2, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + PROPERTIES.put(Material.COCOA, new MaterialSwitch(0.2, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DAYLIGHT_DETECTOR, new MaterialSwitch(0.2, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.DAYLIGHT_DETECTOR_INVERTED, new MaterialSwitch(0.2, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.HUGE_MUSHROOM_1, new MaterialSwitch(0.1, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.HUGE_MUSHROOM_2, new MaterialSwitch(0.1, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.SNOW_BLOCK, new MaterialSwitch(0.1, MiningToolCategory.SHOVEL, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.VINE, new MaterialSwitch(0.1, MiningToolCategory.AXE, ToolMiningLevel.WOOD, true)); + PROPERTIES.put(Material.CARPET, new MaterialSwitch(0.1, MiningToolCategory.NONE, ToolMiningLevel.NA, true)); + } + + private static class MaterialSwitch { + private double hardness; + private MiningToolCategory toolCategory; + private ToolMiningLevel minimumLevel; + private boolean solidFullBlock; + + public MaterialSwitch(double d, MiningToolCategory miningToolCategory, ToolMiningLevel toolMiningLevel, boolean flag) { + this.hardness = d; + this.toolCategory = miningToolCategory; + this.minimumLevel = toolMiningLevel; + this.solidFullBlock = flag; + } + + public MaterialSwitch(double d, MiningToolCategory miningToolCategory, ToolMiningLevel toolMiningLevel) { + this.hardness = d; + this.toolCategory = miningToolCategory; + this.minimumLevel = toolMiningLevel; + this.solidFullBlock = false; + } + + public double getHardness() { + return this.hardness; + } + + public MiningToolCategory getToolCategory() { + return this.toolCategory; + } + + public ToolMiningLevel getMinimumLevel() { + return this.minimumLevel; + } + + public boolean isSolidFullBlock() { + return this.solidFullBlock; + } + } +} 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..714d9cf --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/BlockUtil.java @@ -0,0 +1,637 @@ +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 getBreakTicks(Material material, Player player) { + int value = 0; + int value2 = 0; + + for (PotionEffect potionEffect : player.getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.SLOW_DIGGING)) { + value2 = potionEffect.getAmplifier() + 1; + } else if (potionEffect.getType().equals(PotionEffectType.FAST_DIGGING)) { + value = potionEffect.getAmplifier() + 1; + } + } + + try { + return computeBreakTicks(material, new MiningTool(player.getItemInHand()), new LegacyBlockIdentifier(value, value2), false); + } catch (NullPointerException ex) { + return 0L; + } + } + + public static int getHasteLevel(Player player) { + for (PotionEffect potionEffect : player.getActivePotionEffects()) { + if (potionEffect.getType().equals(PotionEffectType.FAST_DIGGING)) { + return potionEffect.getAmplifier() + 1; + } + } + + return 0; + } + + public static long computeBreakTicks(Material material, MiningTool miningTool, LegacyBlockIdentifier legacyBlockIdentifier, boolean flag) { + if (BlockData.getHardness(material) == Double.POSITIVE_INFINITY) { + return 2147483647L; + } + + double d = BlockData.getHardness(material) * (canHarvestEfficiently(material, miningTool) ? 30 : 100); + double d2 = 1.0; + if (isEffectiveTool(material, miningTool)) { + switch (ToolLevelMaterialSwitch.SWITCH_TABLE[miningTool.getLevel().ordinal()]) { + case 1: + d2 = 2.0; + break; + case 2: + d2 = 12.0; + break; + case 3: + d2 = 4.0; + break; + case 4: + d2 = 6.0; + break; + case 5: + d2 = 8.0; + break; + case 6: + d2 = 1.0; + } + + if (miningTool.getCategory() == MiningToolCategory.SHEARS) { + d2 = 15.0; + } + + if (miningTool.getEfficiencyLevel() != 0) { + d2 += Math.pow(miningTool.getEfficiencyLevel(), 2.0) + 1.0; + } + + if (flag) { + d2 /= 5.0; + } + } else { + d2 = 1.0; + } + + if (legacyBlockIdentifier.getHasteAmplifier() > 0) { + d2 += d2 * (legacyBlockIdentifier.getHasteAmplifier() * 0.2); + } + + if (legacyBlockIdentifier.getFatigueAmplifier() > 0) { + switch (legacyBlockIdentifier.getFatigueAmplifier()) { + case 1: + d2 *= 0.3; + break; + case 2: + d2 *= 0.09; + break; + case 3: + d2 *= 0.0027; + break; + default: + d2 *= 8.1E-4; + } + } + + double d3 = d / d2; + return (int)d3; + } + + public static boolean canHarvestEfficiently(Material material, MiningTool miningTool) { + return BlockData.getToolCategory(material) == miningTool.getCategory() && ToolMiningLevel.isRightLevel(BlockData.getMinimumLevel(material), miningTool.getLevel()) + ? true + : BlockData.getMinimumLevel(material) == ToolMiningLevel.NA || BlockData.isFullBlock(material); + } + + public static boolean isEffectiveTool(Material material, MiningTool miningTool) { + return canHarvestEfficiently(material, miningTool); + } + + 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 (ToolLevelMaterialSwitch.MATERIAL_SWITCH_TABLE[material.ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + return true; + default: + return false; + } + } else { + return true; + } + } + + class ToolLevelMaterialSwitch { + static final int[] SWITCH_TABLE; + static final int[] MATERIAL_SWITCH_TABLE = new int[Material.values().length]; + + static { + try { + MATERIAL_SWITCH_TABLE[Material.AIR.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SAPLING.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.POWERED_RAIL.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DETECTOR_RAIL.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LONG_GRASS.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DEAD_BUSH.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.YELLOW_FLOWER.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.RED_ROSE.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.BROWN_MUSHROOM.ordinal()] = 9; + } catch (NoSuchFieldError ex9) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.RED_MUSHROOM.ordinal()] = 10; + } catch (NoSuchFieldError ex10) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.TORCH.ordinal()] = 11; + } catch (NoSuchFieldError ex11) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.FIRE.ordinal()] = 12; + } catch (NoSuchFieldError ex12) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.REDSTONE_WIRE.ordinal()] = 13; + } catch (NoSuchFieldError ex13) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.CROPS.ordinal()] = 14; + } catch (NoSuchFieldError ex14) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LADDER.ordinal()] = 15; + } catch (NoSuchFieldError ex15) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.RAILS.ordinal()] = 16; + } catch (NoSuchFieldError ex16) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LEVER.ordinal()] = 17; + } catch (NoSuchFieldError ex17) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.REDSTONE_TORCH_OFF.ordinal()] = 18; + } catch (NoSuchFieldError ex18) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.REDSTONE_TORCH_ON.ordinal()] = 19; + } catch (NoSuchFieldError ex19) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STONE_BUTTON.ordinal()] = 20; + } catch (NoSuchFieldError ex20) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SNOW.ordinal()] = 21; + } catch (NoSuchFieldError ex21) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SUGAR_CANE_BLOCK.ordinal()] = 22; + } catch (NoSuchFieldError ex22) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.PORTAL.ordinal()] = 23; + } catch (NoSuchFieldError ex23) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DIODE_BLOCK_OFF.ordinal()] = 24; + } catch (NoSuchFieldError ex24) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DIODE_BLOCK_ON.ordinal()] = 25; + } catch (NoSuchFieldError ex25) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.PUMPKIN_STEM.ordinal()] = 26; + } catch (NoSuchFieldError ex26) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.MELON_STEM.ordinal()] = 27; + } catch (NoSuchFieldError ex27) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.VINE.ordinal()] = 28; + } catch (NoSuchFieldError ex28) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WATER_LILY.ordinal()] = 29; + } catch (NoSuchFieldError ex29) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.NETHER_WARTS.ordinal()] = 30; + } catch (NoSuchFieldError ex30) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.ENDER_PORTAL.ordinal()] = 31; + } catch (NoSuchFieldError ex31) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.COCOA.ordinal()] = 32; + } catch (NoSuchFieldError ex32) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.TRIPWIRE_HOOK.ordinal()] = 33; + } catch (NoSuchFieldError ex33) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.TRIPWIRE.ordinal()] = 34; + } catch (NoSuchFieldError ex34) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.FLOWER_POT.ordinal()] = 35; + } catch (NoSuchFieldError ex35) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.CARROT.ordinal()] = 36; + } catch (NoSuchFieldError ex36) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.POTATO.ordinal()] = 37; + } catch (NoSuchFieldError ex37) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WOOD_BUTTON.ordinal()] = 38; + } catch (NoSuchFieldError ex38) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SKULL.ordinal()] = 39; + } catch (NoSuchFieldError ex39) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.REDSTONE_COMPARATOR_OFF.ordinal()] = 40; + } catch (NoSuchFieldError ex40) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.REDSTONE_COMPARATOR_ON.ordinal()] = 41; + } catch (NoSuchFieldError ex41) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.ACTIVATOR_RAIL.ordinal()] = 42; + } catch (NoSuchFieldError ex42) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.CARPET.ordinal()] = 43; + } catch (NoSuchFieldError ex43) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DOUBLE_PLANT.ordinal()] = 44; + } catch (NoSuchFieldError ex44) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LEAVES.ordinal()] = 45; + } catch (NoSuchFieldError ex45) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LEAVES_2.ordinal()] = 46; + } catch (NoSuchFieldError ex46) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WATER.ordinal()] = 47; + } catch (NoSuchFieldError ex47) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STATIONARY_WATER.ordinal()] = 48; + } catch (NoSuchFieldError ex48) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.LAVA.ordinal()] = 49; + } catch (NoSuchFieldError ex49) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STATIONARY_LAVA.ordinal()] = 50; + } catch (NoSuchFieldError ex50) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.COBBLE_WALL.ordinal()] = 51; + } catch (NoSuchFieldError ex51) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DAYLIGHT_DETECTOR.ordinal()] = 52; + } catch (NoSuchFieldError ex52) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.DAYLIGHT_DETECTOR_INVERTED.ordinal()] = 53; + } catch (NoSuchFieldError ex53) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.ENCHANTMENT_TABLE.ordinal()] = 54; + } catch (NoSuchFieldError ex54) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.ENDER_CHEST.ordinal()] = 55; + } catch (NoSuchFieldError ex55) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.CHEST.ordinal()] = 56; + } catch (NoSuchFieldError ex56) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.TRAPPED_CHEST.ordinal()] = 57; + } catch (NoSuchFieldError ex57) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.GLASS.ordinal()] = 58; + } catch (NoSuchFieldError ex58) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STAINED_GLASS_PANE.ordinal()] = 59; + } catch (NoSuchFieldError ex59) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STAINED_GLASS.ordinal()] = 60; + } catch (NoSuchFieldError ex60) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.THIN_GLASS.ordinal()] = 61; + } catch (NoSuchFieldError ex61) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.HOPPER.ordinal()] = 62; + } catch (NoSuchFieldError ex62) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STEP.ordinal()] = 63; + } catch (NoSuchFieldError ex63) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STONE_SLAB2.ordinal()] = 64; + } catch (NoSuchFieldError ex64) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WOOD_STEP.ordinal()] = 65; + } catch (NoSuchFieldError ex65) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.TRAP_DOOR.ordinal()] = 66; + } catch (NoSuchFieldError ex66) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.IRON_TRAPDOOR.ordinal()] = 67; + } catch (NoSuchFieldError ex67) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.GOLD_PLATE.ordinal()] = 68; + } catch (NoSuchFieldError ex68) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.IRON_PLATE.ordinal()] = 69; + } catch (NoSuchFieldError ex69) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.STONE_PLATE.ordinal()] = 70; + } catch (NoSuchFieldError ex70) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WOOD_PLATE.ordinal()] = 71; + } catch (NoSuchFieldError ex71) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.ENDER_PORTAL_FRAME.ordinal()] = 72; + } catch (NoSuchFieldError ex72) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SIGN_POST.ordinal()] = 73; + } catch (NoSuchFieldError ex73) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SIGN.ordinal()] = 74; + } catch (NoSuchFieldError ex74) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.WALL_SIGN.ordinal()] = 75; + } catch (NoSuchFieldError ex75) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.CACTUS.ordinal()] = 76; + } catch (NoSuchFieldError ex76) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.MOB_SPAWNER.ordinal()] = 77; + } catch (NoSuchFieldError ex77) { + } + + try { + MATERIAL_SWITCH_TABLE[Material.SLIME_BLOCK.ordinal()] = 78; + } catch (NoSuchFieldError ex78) { + } + + SWITCH_TABLE = new int[ToolMiningLevel.values().length]; + + try { + SWITCH_TABLE[ToolMiningLevel.WOOD.ordinal()] = 1; + } catch (NoSuchFieldError ex79) { + } + + try { + SWITCH_TABLE[ToolMiningLevel.GOLD.ordinal()] = 2; + } catch (NoSuchFieldError ex80) { + } + + try { + SWITCH_TABLE[ToolMiningLevel.STONE.ordinal()] = 3; + } catch (NoSuchFieldError ex81) { + } + + try { + SWITCH_TABLE[ToolMiningLevel.IRON.ordinal()] = 4; + } catch (NoSuchFieldError ex82) { + } + + try { + SWITCH_TABLE[ToolMiningLevel.DIAMOND.ordinal()] = 5; + } catch (NoSuchFieldError ex83) { + } + + try { + SWITCH_TABLE[ToolMiningLevel.NA.ordinal()] = 6; + } catch (NoSuchFieldError ex84) { + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/LegacyBlockIdentifier.java b/src/main/java/me/konsolas/aac/util/blocks/LegacyBlockIdentifier.java new file mode 100644 index 0000000..d906e01 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/LegacyBlockIdentifier.java @@ -0,0 +1,19 @@ +package me.konsolas.aac.util.blocks; + +public class LegacyBlockIdentifier { + private int hasteAmplifier; + private int fatigueAmplifier; + + public LegacyBlockIdentifier(int i, int i2) { + this.hasteAmplifier = i; + this.fatigueAmplifier = i2; + } + + public int getHasteAmplifier() { + return this.hasteAmplifier; + } + + public int getFatigueAmplifier() { + return this.fatigueAmplifier; + } +} 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..2797ea6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/MiningTool.java @@ -0,0 +1,219 @@ +package me.konsolas.aac.util.blocks; + +import org.bukkit.Material; +import org.bukkit.enchantments.Enchantment; +import org.bukkit.inventory.ItemStack; + +public class MiningTool { + private MiningToolCategory category; + private ToolMiningLevel level; + private int efficiencyLevel; + + public MiningTool(MiningToolCategory miningToolCategory, ToolMiningLevel toolMiningLevel, int i) { + this.category = miningToolCategory; + this.level = toolMiningLevel; + this.efficiencyLevel = i; + } + + public MiningTool(ItemStack item) { + if (item == null) { + item = new ItemStack(Material.AIR); + } + + switch (MaterialSwitch.SWITCH_TABLE[item.getType().ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + this.category = MiningToolCategory.PICKAXE; + break; + case 6: + case 7: + case 8: + case 9: + case 10: + this.category = MiningToolCategory.AXE; + break; + case 11: + case 12: + case 13: + case 14: + case 15: + this.category = MiningToolCategory.SHOVEL; + break; + case 16: + case 17: + case 18: + case 19: + case 20: + this.category = MiningToolCategory.SHEARS; + break; + case 21: + this.category = MiningToolCategory.SHEARS; + break; + default: + this.category = MiningToolCategory.NONE; + } + + switch (MaterialSwitch.SWITCH_TABLE[item.getType().ordinal()]) { + case 1: + case 6: + case 11: + case 16: + this.level = ToolMiningLevel.WOOD; + break; + case 2: + case 7: + case 12: + case 17: + this.level = ToolMiningLevel.GOLD; + break; + case 3: + case 8: + case 13: + case 18: + this.level = ToolMiningLevel.STONE; + break; + case 4: + case 9: + case 14: + case 19: + this.level = ToolMiningLevel.IRON; + break; + case 5: + case 10: + case 15: + case 20: + this.level = ToolMiningLevel.DIAMOND; + break; + default: + this.level = ToolMiningLevel.NA; + } + + this.efficiencyLevel = item.getEnchantmentLevel(Enchantment.DIG_SPEED); + } + + public MiningToolCategory getCategory() { + return this.category; + } + + public ToolMiningLevel getLevel() { + return this.level; + } + + public int getEfficiencyLevel() { + return this.efficiencyLevel; + } + + class MaterialSwitch { + static final int[] SWITCH_TABLE = new int[Material.values().length]; + + static { + try { + SWITCH_TABLE[Material.WOOD_PICKAXE.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[Material.GOLD_PICKAXE.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[Material.STONE_PICKAXE.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + SWITCH_TABLE[Material.IRON_PICKAXE.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_PICKAXE.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + SWITCH_TABLE[Material.WOOD_AXE.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + SWITCH_TABLE[Material.GOLD_AXE.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + SWITCH_TABLE[Material.STONE_AXE.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + + try { + SWITCH_TABLE[Material.IRON_AXE.ordinal()] = 9; + } catch (NoSuchFieldError ex9) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_AXE.ordinal()] = 10; + } catch (NoSuchFieldError ex10) { + } + + try { + SWITCH_TABLE[Material.WOOD_SPADE.ordinal()] = 11; + } catch (NoSuchFieldError ex11) { + } + + try { + SWITCH_TABLE[Material.GOLD_SPADE.ordinal()] = 12; + } catch (NoSuchFieldError ex12) { + } + + try { + SWITCH_TABLE[Material.STONE_SPADE.ordinal()] = 13; + } catch (NoSuchFieldError ex13) { + } + + try { + SWITCH_TABLE[Material.IRON_SPADE.ordinal()] = 14; + } catch (NoSuchFieldError ex14) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_SPADE.ordinal()] = 15; + } catch (NoSuchFieldError ex15) { + } + + try { + SWITCH_TABLE[Material.WOOD_SWORD.ordinal()] = 16; + } catch (NoSuchFieldError ex16) { + } + + try { + SWITCH_TABLE[Material.GOLD_SWORD.ordinal()] = 17; + } catch (NoSuchFieldError ex17) { + } + + try { + SWITCH_TABLE[Material.STONE_SWORD.ordinal()] = 18; + } catch (NoSuchFieldError ex18) { + } + + try { + SWITCH_TABLE[Material.IRON_SWORD.ordinal()] = 19; + } catch (NoSuchFieldError ex19) { + } + + try { + SWITCH_TABLE[Material.DIAMOND_SWORD.ordinal()] = 20; + } catch (NoSuchFieldError ex20) { + } + + try { + SWITCH_TABLE[Material.SHEARS.ordinal()] = 21; + } catch (NoSuchFieldError ex21) { + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/MiningToolCategory.java b/src/main/java/me/konsolas/aac/util/blocks/MiningToolCategory.java new file mode 100644 index 0000000..1fa85c6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/MiningToolCategory.java @@ -0,0 +1,12 @@ +package me.konsolas.aac.util.blocks; + +public enum MiningToolCategory { + PICKAXE, + AXE, + SHOVEL, + SHEARS, + SWORD, + NONE; + + private static final MiningToolCategory[] VALUES = new MiningToolCategory[]{PICKAXE, AXE, SHOVEL, SHEARS, SWORD, NONE}; +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/MovementObstacleChecks.java b/src/main/java/me/konsolas/aac/util/blocks/MovementObstacleChecks.java new file mode 100644 index 0000000..2211ecd --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/MovementObstacleChecks.java @@ -0,0 +1,869 @@ +package me.konsolas.aac.util.blocks; + +import org.bukkit.Material; +import org.bukkit.block.Block; + +public class MovementObstacleChecks { + public static boolean isPassableBlock(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + case 85: + case 86: + case 87: + case 88: + case 89: + case 90: + case 91: + case 92: + case 93: + case 94: + case 95: + case 96: + case 97: + case 98: + return true; + default: + return false; + } + } + + public static boolean isWaterloggedOrPartial(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 99: + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + case 108: + case 109: + return true; + default: + return false; + } + } + + public static boolean isFullCollisionBlock(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + return true; + default: + return false; + } + } + + public static boolean isDoorOrTrapdoor(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 116: + case 117: + return true; + default: + return false; + } + } + + public static boolean isCarpetOrPressurePlate(Block block) { + switch (MaterialSwitch.SWITCH_TABLE[block.getType().ordinal()]) { + case 118: + case 119: + case 120: + case 121: + case 122: + case 123: + case 124: + return true; + default: + return false; + } + } + + public static boolean isPlayerUnobstructed(RelativeBlockCache relativeBlockCache) { + return !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 1.68, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 1.68, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.9, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.9, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, 0.0)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, 0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, -0.3)) + && !BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, 0.3)); + } + + public static boolean isFootPosClear(RelativeBlockCache relativeBlockCache) { + return !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.0, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.0, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 1.68, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 1.68, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 1.68, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 1.68, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 0.9, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.0, 0.9, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, 0.0)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(-0.3, 0.9, 0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, -0.3)) + && !BlockCollisionChecks.isStandableBlock(relativeBlockCache.getRelativeBlock(0.3, 0.9, 0.3)); + } + + public static boolean hasSolidGroundAround(RelativeBlockCache relativeBlockCache) { + return BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, 0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 0.0, 0.0)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 0.0, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 0.0, 0.0)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 0.0, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 0.0, 0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 0.0, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 0.0, 0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 2.01, 0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 2.01, 0.0)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.0, 2.01, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 2.01, 0.0)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 2.01, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(-0.4, 2.01, 0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 2.01, -0.4)) + && BlockCollisionChecks.isSolidGroundBlock(relativeBlockCache.getRelativeBlock(0.4, 2.01, 0.4)); + } + + class MaterialSwitch { + static final int[] SWITCH_TABLE = new int[Material.values().length]; + + static { + try { + SWITCH_TABLE[Material.ACACIA_STAIRS.ordinal()] = 1; + } catch (NoSuchFieldError ex) { + } + + try { + SWITCH_TABLE[Material.ACTIVATOR_RAIL.ordinal()] = 2; + } catch (NoSuchFieldError ex2) { + } + + try { + SWITCH_TABLE[Material.AIR.ordinal()] = 3; + } catch (NoSuchFieldError ex3) { + } + + try { + SWITCH_TABLE[Material.ANVIL.ordinal()] = 4; + } catch (NoSuchFieldError ex4) { + } + + try { + SWITCH_TABLE[Material.ARMOR_STAND.ordinal()] = 5; + } catch (NoSuchFieldError ex5) { + } + + try { + SWITCH_TABLE[Material.BANNER.ordinal()] = 6; + } catch (NoSuchFieldError ex6) { + } + + try { + SWITCH_TABLE[Material.BEACON.ordinal()] = 7; + } catch (NoSuchFieldError ex7) { + } + + try { + SWITCH_TABLE[Material.BED_BLOCK.ordinal()] = 8; + } catch (NoSuchFieldError ex8) { + } + + try { + SWITCH_TABLE[Material.BIRCH_WOOD_STAIRS.ordinal()] = 9; + } catch (NoSuchFieldError ex9) { + } + + try { + SWITCH_TABLE[Material.BREWING_STAND.ordinal()] = 10; + } catch (NoSuchFieldError ex10) { + } + + try { + SWITCH_TABLE[Material.BRICK_STAIRS.ordinal()] = 11; + } catch (NoSuchFieldError ex11) { + } + + try { + SWITCH_TABLE[Material.BROWN_MUSHROOM.ordinal()] = 12; + } catch (NoSuchFieldError ex12) { + } + + try { + SWITCH_TABLE[Material.CACTUS.ordinal()] = 13; + } catch (NoSuchFieldError ex13) { + } + + try { + SWITCH_TABLE[Material.CAKE_BLOCK.ordinal()] = 14; + } catch (NoSuchFieldError ex14) { + } + + try { + SWITCH_TABLE[Material.CARPET.ordinal()] = 15; + } catch (NoSuchFieldError ex15) { + } + + try { + SWITCH_TABLE[Material.CARROT.ordinal()] = 16; + } catch (NoSuchFieldError ex16) { + } + + try { + SWITCH_TABLE[Material.CAULDRON.ordinal()] = 17; + } catch (NoSuchFieldError ex17) { + } + + try { + SWITCH_TABLE[Material.CHEST.ordinal()] = 18; + } catch (NoSuchFieldError ex18) { + } + + try { + SWITCH_TABLE[Material.COBBLESTONE_STAIRS.ordinal()] = 19; + } catch (NoSuchFieldError ex19) { + } + + try { + SWITCH_TABLE[Material.COCOA.ordinal()] = 20; + } catch (NoSuchFieldError ex20) { + } + + try { + SWITCH_TABLE[Material.CROPS.ordinal()] = 21; + } catch (NoSuchFieldError ex21) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_STAIRS.ordinal()] = 22; + } catch (NoSuchFieldError ex22) { + } + + try { + SWITCH_TABLE[Material.DAYLIGHT_DETECTOR.ordinal()] = 23; + } catch (NoSuchFieldError ex23) { + } + + try { + SWITCH_TABLE[Material.DAYLIGHT_DETECTOR_INVERTED.ordinal()] = 24; + } catch (NoSuchFieldError ex24) { + } + + try { + SWITCH_TABLE[Material.DEAD_BUSH.ordinal()] = 25; + } catch (NoSuchFieldError ex25) { + } + + try { + SWITCH_TABLE[Material.DETECTOR_RAIL.ordinal()] = 26; + } catch (NoSuchFieldError ex26) { + } + + try { + SWITCH_TABLE[Material.DIODE_BLOCK_OFF.ordinal()] = 27; + } catch (NoSuchFieldError ex27) { + } + + try { + SWITCH_TABLE[Material.DIODE_BLOCK_ON.ordinal()] = 28; + } catch (NoSuchFieldError ex28) { + } + + try { + SWITCH_TABLE[Material.DOUBLE_PLANT.ordinal()] = 29; + } catch (NoSuchFieldError ex29) { + } + + try { + SWITCH_TABLE[Material.DRAGON_EGG.ordinal()] = 30; + } catch (NoSuchFieldError ex30) { + } + + try { + SWITCH_TABLE[Material.ENCHANTMENT_TABLE.ordinal()] = 31; + } catch (NoSuchFieldError ex31) { + } + + try { + SWITCH_TABLE[Material.ENDER_CHEST.ordinal()] = 32; + } catch (NoSuchFieldError ex32) { + } + + try { + SWITCH_TABLE[Material.ENDER_PORTAL.ordinal()] = 33; + } catch (NoSuchFieldError ex33) { + } + + try { + SWITCH_TABLE[Material.ENDER_PORTAL_FRAME.ordinal()] = 34; + } catch (NoSuchFieldError ex34) { + } + + try { + SWITCH_TABLE[Material.FIRE.ordinal()] = 35; + } catch (NoSuchFieldError ex35) { + } + + try { + SWITCH_TABLE[Material.FLOWER_POT.ordinal()] = 36; + } catch (NoSuchFieldError ex36) { + } + + try { + SWITCH_TABLE[Material.GOLD_PLATE.ordinal()] = 37; + } catch (NoSuchFieldError ex37) { + } + + try { + SWITCH_TABLE[Material.HOPPER.ordinal()] = 38; + } catch (NoSuchFieldError ex38) { + } + + try { + SWITCH_TABLE[Material.IRON_PLATE.ordinal()] = 39; + } catch (NoSuchFieldError ex39) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_WOOD_STAIRS.ordinal()] = 40; + } catch (NoSuchFieldError ex40) { + } + + try { + SWITCH_TABLE[Material.LADDER.ordinal()] = 41; + } catch (NoSuchFieldError ex41) { + } + + try { + SWITCH_TABLE[Material.LAVA.ordinal()] = 42; + } catch (NoSuchFieldError ex42) { + } + + try { + SWITCH_TABLE[Material.LEVER.ordinal()] = 43; + } catch (NoSuchFieldError ex43) { + } + + try { + SWITCH_TABLE[Material.LONG_GRASS.ordinal()] = 44; + } catch (NoSuchFieldError ex44) { + } + + try { + SWITCH_TABLE[Material.MELON_STEM.ordinal()] = 45; + } catch (NoSuchFieldError ex45) { + } + + try { + SWITCH_TABLE[Material.NETHER_BRICK_STAIRS.ordinal()] = 46; + } catch (NoSuchFieldError ex46) { + } + + try { + SWITCH_TABLE[Material.NETHER_WARTS.ordinal()] = 47; + } catch (NoSuchFieldError ex47) { + } + + try { + SWITCH_TABLE[Material.PISTON_BASE.ordinal()] = 48; + } catch (NoSuchFieldError ex48) { + } + + try { + SWITCH_TABLE[Material.PISTON_EXTENSION.ordinal()] = 49; + } catch (NoSuchFieldError ex49) { + } + + try { + SWITCH_TABLE[Material.PISTON_MOVING_PIECE.ordinal()] = 50; + } catch (NoSuchFieldError ex50) { + } + + try { + SWITCH_TABLE[Material.PISTON_STICKY_BASE.ordinal()] = 51; + } catch (NoSuchFieldError ex51) { + } + + try { + SWITCH_TABLE[Material.PORTAL.ordinal()] = 52; + } catch (NoSuchFieldError ex52) { + } + + try { + SWITCH_TABLE[Material.POTATO.ordinal()] = 53; + } catch (NoSuchFieldError ex53) { + } + + try { + SWITCH_TABLE[Material.POWERED_RAIL.ordinal()] = 54; + } catch (NoSuchFieldError ex54) { + } + + try { + SWITCH_TABLE[Material.PUMPKIN_STEM.ordinal()] = 55; + } catch (NoSuchFieldError ex55) { + } + + try { + SWITCH_TABLE[Material.QUARTZ_STAIRS.ordinal()] = 56; + } catch (NoSuchFieldError ex56) { + } + + try { + SWITCH_TABLE[Material.RAILS.ordinal()] = 57; + } catch (NoSuchFieldError ex57) { + } + + try { + SWITCH_TABLE[Material.RED_MUSHROOM.ordinal()] = 58; + } catch (NoSuchFieldError ex58) { + } + + try { + SWITCH_TABLE[Material.RED_ROSE.ordinal()] = 59; + } catch (NoSuchFieldError ex59) { + } + + try { + SWITCH_TABLE[Material.RED_SANDSTONE_STAIRS.ordinal()] = 60; + } catch (NoSuchFieldError ex60) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_COMPARATOR_OFF.ordinal()] = 61; + } catch (NoSuchFieldError ex61) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_COMPARATOR_ON.ordinal()] = 62; + } catch (NoSuchFieldError ex62) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_TORCH_OFF.ordinal()] = 63; + } catch (NoSuchFieldError ex63) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_TORCH_ON.ordinal()] = 64; + } catch (NoSuchFieldError ex64) { + } + + try { + SWITCH_TABLE[Material.REDSTONE_WIRE.ordinal()] = 65; + } catch (NoSuchFieldError ex65) { + } + + try { + SWITCH_TABLE[Material.SANDSTONE_STAIRS.ordinal()] = 66; + } catch (NoSuchFieldError ex66) { + } + + try { + SWITCH_TABLE[Material.SAPLING.ordinal()] = 67; + } catch (NoSuchFieldError ex67) { + } + + try { + SWITCH_TABLE[Material.SEEDS.ordinal()] = 68; + } catch (NoSuchFieldError ex68) { + } + + try { + SWITCH_TABLE[Material.SIGN.ordinal()] = 69; + } catch (NoSuchFieldError ex69) { + } + + try { + SWITCH_TABLE[Material.SIGN_POST.ordinal()] = 70; + } catch (NoSuchFieldError ex70) { + } + + try { + SWITCH_TABLE[Material.SKULL.ordinal()] = 71; + } catch (NoSuchFieldError ex71) { + } + + try { + SWITCH_TABLE[Material.SMOOTH_STAIRS.ordinal()] = 72; + } catch (NoSuchFieldError ex72) { + } + + try { + SWITCH_TABLE[Material.SNOW.ordinal()] = 73; + } catch (NoSuchFieldError ex73) { + } + + try { + SWITCH_TABLE[Material.SOUL_SAND.ordinal()] = 74; + } catch (NoSuchFieldError ex74) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_WOOD_STAIRS.ordinal()] = 75; + } catch (NoSuchFieldError ex75) { + } + + try { + SWITCH_TABLE[Material.STANDING_BANNER.ordinal()] = 76; + } catch (NoSuchFieldError ex76) { + } + + try { + SWITCH_TABLE[Material.STATIONARY_LAVA.ordinal()] = 77; + } catch (NoSuchFieldError ex77) { + } + + try { + SWITCH_TABLE[Material.STATIONARY_WATER.ordinal()] = 78; + } catch (NoSuchFieldError ex78) { + } + + try { + SWITCH_TABLE[Material.STEP.ordinal()] = 79; + } catch (NoSuchFieldError ex79) { + } + + try { + SWITCH_TABLE[Material.STONE_BUTTON.ordinal()] = 80; + } catch (NoSuchFieldError ex80) { + } + + try { + SWITCH_TABLE[Material.STONE_PLATE.ordinal()] = 81; + } catch (NoSuchFieldError ex81) { + } + + try { + SWITCH_TABLE[Material.STONE_SLAB2.ordinal()] = 82; + } catch (NoSuchFieldError ex82) { + } + + try { + SWITCH_TABLE[Material.SUGAR_CANE_BLOCK.ordinal()] = 83; + } catch (NoSuchFieldError ex83) { + } + + try { + SWITCH_TABLE[Material.TORCH.ordinal()] = 84; + } catch (NoSuchFieldError ex84) { + } + + try { + SWITCH_TABLE[Material.TRAPPED_CHEST.ordinal()] = 85; + } catch (NoSuchFieldError ex85) { + } + + try { + SWITCH_TABLE[Material.TRIPWIRE.ordinal()] = 86; + } catch (NoSuchFieldError ex86) { + } + + try { + SWITCH_TABLE[Material.TRIPWIRE_HOOK.ordinal()] = 87; + } catch (NoSuchFieldError ex87) { + } + + try { + SWITCH_TABLE[Material.VINE.ordinal()] = 88; + } catch (NoSuchFieldError ex88) { + } + + try { + SWITCH_TABLE[Material.WALL_BANNER.ordinal()] = 89; + } catch (NoSuchFieldError ex89) { + } + + try { + SWITCH_TABLE[Material.WALL_SIGN.ordinal()] = 90; + } catch (NoSuchFieldError ex90) { + } + + try { + SWITCH_TABLE[Material.WATER.ordinal()] = 91; + } catch (NoSuchFieldError ex91) { + } + + try { + SWITCH_TABLE[Material.WATER_LILY.ordinal()] = 92; + } catch (NoSuchFieldError ex92) { + } + + try { + SWITCH_TABLE[Material.WEB.ordinal()] = 93; + } catch (NoSuchFieldError ex93) { + } + + try { + SWITCH_TABLE[Material.WOOD_BUTTON.ordinal()] = 94; + } catch (NoSuchFieldError ex94) { + } + + try { + SWITCH_TABLE[Material.WOOD_PLATE.ordinal()] = 95; + } catch (NoSuchFieldError ex95) { + } + + try { + SWITCH_TABLE[Material.WOOD_STAIRS.ordinal()] = 96; + } catch (NoSuchFieldError ex96) { + } + + try { + SWITCH_TABLE[Material.WOOD_STEP.ordinal()] = 97; + } catch (NoSuchFieldError ex97) { + } + + try { + SWITCH_TABLE[Material.YELLOW_FLOWER.ordinal()] = 98; + } catch (NoSuchFieldError ex98) { + } + + try { + SWITCH_TABLE[Material.ACACIA_FENCE.ordinal()] = 99; + } catch (NoSuchFieldError ex99) { + } + + try { + SWITCH_TABLE[Material.BIRCH_FENCE.ordinal()] = 100; + } catch (NoSuchFieldError ex100) { + } + + try { + SWITCH_TABLE[Material.COBBLE_WALL.ordinal()] = 101; + } catch (NoSuchFieldError ex101) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_FENCE.ordinal()] = 102; + } catch (NoSuchFieldError ex102) { + } + + try { + SWITCH_TABLE[Material.FENCE.ordinal()] = 103; + } catch (NoSuchFieldError ex103) { + } + + try { + SWITCH_TABLE[Material.IRON_FENCE.ordinal()] = 104; + } catch (NoSuchFieldError ex104) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_FENCE.ordinal()] = 105; + } catch (NoSuchFieldError ex105) { + } + + try { + SWITCH_TABLE[Material.NETHER_FENCE.ordinal()] = 106; + } catch (NoSuchFieldError ex106) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_FENCE.ordinal()] = 107; + } catch (NoSuchFieldError ex107) { + } + + try { + SWITCH_TABLE[Material.STAINED_GLASS_PANE.ordinal()] = 108; + } catch (NoSuchFieldError ex108) { + } + + try { + SWITCH_TABLE[Material.THIN_GLASS.ordinal()] = 109; + } catch (NoSuchFieldError ex109) { + } + + try { + SWITCH_TABLE[Material.ACACIA_FENCE_GATE.ordinal()] = 110; + } catch (NoSuchFieldError ex110) { + } + + try { + SWITCH_TABLE[Material.BIRCH_FENCE_GATE.ordinal()] = 111; + } catch (NoSuchFieldError ex111) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_FENCE_GATE.ordinal()] = 112; + } catch (NoSuchFieldError ex112) { + } + + try { + SWITCH_TABLE[Material.FENCE_GATE.ordinal()] = 113; + } catch (NoSuchFieldError ex113) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_FENCE_GATE.ordinal()] = 114; + } catch (NoSuchFieldError ex114) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_FENCE_GATE.ordinal()] = 115; + } catch (NoSuchFieldError ex115) { + } + + try { + SWITCH_TABLE[Material.TRAP_DOOR.ordinal()] = 116; + } catch (NoSuchFieldError ex116) { + } + + try { + SWITCH_TABLE[Material.IRON_TRAPDOOR.ordinal()] = 117; + } catch (NoSuchFieldError ex117) { + } + + try { + SWITCH_TABLE[Material.ACACIA_DOOR.ordinal()] = 118; + } catch (NoSuchFieldError ex118) { + } + + try { + SWITCH_TABLE[Material.BIRCH_DOOR.ordinal()] = 119; + } catch (NoSuchFieldError ex119) { + } + + try { + SWITCH_TABLE[Material.DARK_OAK_DOOR.ordinal()] = 120; + } catch (NoSuchFieldError ex120) { + } + + try { + SWITCH_TABLE[Material.IRON_DOOR_BLOCK.ordinal()] = 121; + } catch (NoSuchFieldError ex121) { + } + + try { + SWITCH_TABLE[Material.JUNGLE_DOOR.ordinal()] = 122; + } catch (NoSuchFieldError ex122) { + } + + try { + SWITCH_TABLE[Material.SPRUCE_DOOR.ordinal()] = 123; + } catch (NoSuchFieldError ex123) { + } + + try { + SWITCH_TABLE[Material.WOODEN_DOOR.ordinal()] = 124; + } catch (NoSuchFieldError ex124) { + } + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/RelativeBlockCache.java b/src/main/java/me/konsolas/aac/util/blocks/RelativeBlockCache.java new file mode 100644 index 0000000..803c9d3 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/RelativeBlockCache.java @@ -0,0 +1,101 @@ +package me.konsolas.aac.util.blocks; + +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 RelativeBlockCache { + private double x; + private double y; + private double z; + private World world; + private final Map cachedBlocks = new HashMap<>(); + + public RelativeBlockCache(Location location) { + this.x = location.getX(); + this.y = location.getY(); + this.z = location.getZ(); + this.world = location.getWorld(); + } + + public Block getRelativeBlock(double d, double d2, double d3) { + return this.getBlockAt((int)Math.floor(this.x + d), (int)Math.floor(this.y + d2), (int)Math.floor(this.z + d3)); + } + + public Block getSubtractedBlock(double d, double d2, double d3) { + return this.getBlockAt((int)Math.floor(this.x - d), (int)Math.floor(this.y - d2), (int)Math.floor(this.z - d3)); + } + + public Material getRelativeMaterial(double d, double d2, double d3) { + return this.getRelativeBlock(d, d2, d3).getType(); + } + + public Material getSubtractedMaterial(double d, double d2, double d3) { + return this.getSubtractedBlock(d, d2, d3).getType(); + } + + private Block getBlockAt(int i, int i2, int i3) { + BlockCoordinates blockCoordinates = new BlockCoordinates(i, i2, i3); + Block block = this.cachedBlocks.get(blockCoordinates); + if (block != null) { + return block; + } + + Block block2 = this.world.getBlockAt(i, i2, i3); + this.cachedBlocks.put(blockCoordinates, block2); + return block2; + } + + public Block getCenterBlock() { + return this.getBlockAt((int)this.x, (int)this.y, (int)this.z); + } + + private static class BlockCoordinates { + private final int x; + private final int y; + private final int z; + + public BlockCoordinates(int i, int i2, int i3) { + this.x = i; + this.y = i2; + this.z = i3; + } + + public int getX() { + return this.x; + } + + public int getY() { + return this.y; + } + + public int getZ() { + return this.z; + } + + @Override + public boolean equals(Object obj) { + if (obj == this) { + return true; + } + + if (!(obj instanceof BlockCoordinates)) { + return false; + } + + BlockCoordinates blockCoordinates = (BlockCoordinates)obj; + return blockCoordinates.x == this.x && blockCoordinates.y == this.y && blockCoordinates.z == this.z; + } + + @Override + public int hashCode() { + int value = 17; + value = 31 * value + this.x; + value = 31 * value + this.y; + return 31 * value + this.z; + } + } +} diff --git a/src/main/java/me/konsolas/aac/util/blocks/ToolMiningLevel.java b/src/main/java/me/konsolas/aac/util/blocks/ToolMiningLevel.java new file mode 100644 index 0000000..8472fb6 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/blocks/ToolMiningLevel.java @@ -0,0 +1,21 @@ +package me.konsolas.aac.util.blocks; + +public enum ToolMiningLevel { + WOOD(1), + GOLD(1), + STONE(2), + IRON(3), + DIAMOND(4), + NA(0); + + private int tier; + private static final ToolMiningLevel[] VALUES = new ToolMiningLevel[]{WOOD, GOLD, STONE, IRON, DIAMOND, NA}; + + ToolMiningLevel(int i) { + this.tier = i; + } + + public static boolean isRightLevel(ToolMiningLevel toolMiningLevel, ToolMiningLevel toolMiningLevel2) { + return toolMiningLevel2.tier >= toolMiningLevel.tier; + } +} 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..6d888b1 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/MapUtil.java @@ -0,0 +1,21 @@ +package me.konsolas.aac.util.general; + +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.Map.Entry; +import java.util.Map; + +public class MapUtil { + public static > Map sortDescendingByValue(Map map) { + LinkedList> linkedList = new LinkedList<>(map.entrySet()); + Collections.sort(linkedList, (entry, entry2) -> entry2.getValue().compareTo(entry.getValue())); + LinkedHashMap linkedHashMap = new LinkedHashMap<>(); + + for (Entry entry3 : linkedList) { + linkedHashMap.put(entry3.getKey(), entry3.getValue()); + } + + return linkedHashMap; + } +} 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..3f57628 --- /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 isWithinRange(double d, double d2, double d3) { + return d + d3 > d2 && d - d3 < d2; + } + + public static double pow(double d, double d2, int i) { + for (int value = 0; value < i; value++) { + d *= d2; + } + + return d; + } +} diff --git a/src/main/java/me/konsolas/aac/util/general/PlayerItemUseReflection.java b/src/main/java/me/konsolas/aac/util/general/PlayerItemUseReflection.java new file mode 100644 index 0000000..78f239b --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/PlayerItemUseReflection.java @@ -0,0 +1,37 @@ +package me.konsolas.aac.util.general; + +import java.lang.reflect.Method; +import org.bukkit.entity.Player; + +public class PlayerItemUseReflection { + private static Method getHandleMethod; + private static Method isUsingItemMethod; + + public static boolean isUsingItem(Player player) { + try { + if (getHandleMethod == null) { + Class classVal = player.getClass(); + Class[] classValArray = new Class[0]; + getHandleMethod = classVal.getDeclaredMethod("getHandle", classValArray); + boolean flag = true; + Method method = getHandleMethod; + method.setAccessible(flag); + } + + Object obj = getHandleMethod.invoke(player); + if (isUsingItemMethod == null) { + Class classVal2 = obj.getClass().getSuperclass(); + Class[] classValArray2 = new Class[0]; + isUsingItemMethod = classVal2.getDeclaredMethod("bS", classValArray2); + boolean flag2 = true; + Method method2 = isUsingItemMethod; + method2.setAccessible(flag2); + } + + return (Boolean)isUsingItemMethod.invoke(obj); + } catch (Exception ex) { + ex.printStackTrace(); + return false; + } + } +} 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..febfa95 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/RandomPlayerNameGenerator.java @@ -0,0 +1,66 @@ +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; + private static Random RANDOM = new Random(); + + public static String generateName() { + int value = 2 + RANDOM.nextInt(9); + StringBuilder sb = new StringBuilder(); + + while (value > 0) { + value--; + sb.append(pickLetter()); + } + + sb.append(RANDOM.nextInt(999999)); + return sb.toString(); + } + + private static String pickLetter() { + return LETTERS.get(RANDOM.nextInt(LETTERS.size())).name(); + } + + static { + Alphabet[] alphabetArray = Alphabet.values(); + LETTERS = Collections.unmodifiableList(Arrays.asList(alphabetArray)); + } + + private enum Alphabet { + VALUES, + 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; + + private static final Alphabet[] A = new Alphabet[]{ + VALUES, 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..b078884 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/general/Reflection.java @@ -0,0 +1,280 @@ +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 class Reflection { + private static String OBC_PREFIX = Bukkit.getServer().getClass().getPackage().getName(); + private static String NMS_PREFIX = OBC_PREFIX.replace("org.bukkit.craftbukkit", "net.minecraft.server"); + private static String NMS_VERSION = OBC_PREFIX.replace("org.bukkit.craftbukkit", "").replace(".", ""); + private static Pattern VARIABLE_PATTERN = Pattern.compile("\\{([^\\}]+)\\}"); + + private Reflection() { + } + + public static FieldAccessor getField(Class classVal, String str, Class classVal2) { + return getFieldInternal(classVal, str, classVal2, 0); + } + + public static FieldAccessor getField(String str, String str2, Class classVal) { + return getFieldInternal(getClass(str), str2, classVal, 0); + } + + public static FieldAccessor getField(Class classVal, Class classVal2, int i) { + return getFieldInternal(classVal, null, classVal2, i); + } + + public static FieldAccessor getField(String str, Class classVal, int i) { + return getField(getClass(str), classVal, i); + } + + private static FieldAccessor getFieldInternal(Class classVal, String str, Class classVal2, int i) { + for (Field field : classVal.getDeclaredFields()) { + if (str != null) { + Field field2 = field; + if (!field2.getName().equals(str)) { + continue; + } + } + + Field field3 = field; + if (classVal2.isAssignableFrom(field3.getType()) && i-- <= 0) { + boolean flag = true; + Field field4 = field; + field4.setAccessible(flag); + return new FieldAccessorImpl(field); + } + } + + if (classVal.getSuperclass() != null) { + return getFieldInternal(classVal.getSuperclass(), str, classVal2, i); + } else { + throw new IllegalArgumentException("Cannot find field with type " + classVal2); + } + } + + public static MethodInvoker getMethod(String str, String str2, Class... classValArray) { + return getTypedMethod(getClass(str), str2, null, classValArray); + } + + public static MethodInvoker getMethod(Class classVal, String str, Class... classValArray) { + return getTypedMethod(classVal, str, null, classValArray); + } + + public static MethodInvoker getTypedMethod(Class classVal, String str, Class classVal2, Class... classValArray) { + Method[] methodArray = classVal.getDeclaredMethods(); + int value2 = methodArray.length; + int value3 = 0; + + Method method; + while (true) { + if (value3 >= value2) { + if (classVal.getSuperclass() != null) { + return getMethod(classVal.getSuperclass(), str, classValArray); + } + + Object[] objArray = new Object[]{str, null}; + Class[] classValArray2 = classValArray; + objArray[1] = Arrays.asList(classValArray2); + throw new IllegalStateException(String.format("Unable to find method %s (%s).", objArray)); + } + + label27: { + method = methodArray[value3]; + if (str != null) { + Method method2 = method; + if (!method2.getName().equals(str)) { + break label27; + } + } + + if (classVal2 == null) { + break; + } + } + + Method method3 = method; + if (method3.getReturnType().equals(classVal2)) { + Method method4 = method; + Class[] classValArray3 = method4.getParameterTypes(); + Class[] classValArray4 = classValArray; + Class[] classValArray5 = classValArray3; + if (Arrays.equals(classValArray5, classValArray4)) { + break; + } + } + + value3++; + } + + boolean flag = true; + Method method5 = method; + method5.setAccessible(flag); + return new MethodInvokerImpl(method); + } + + public static ConstructorInvoker getConstructor(String str, Class... classValArray) { + return getConstructor(getClass(str), classValArray); + } + + public static ConstructorInvoker getConstructor(Class classVal, Class... classValArray) { + for (Constructor constructor : classVal.getDeclaredConstructors()) { + Constructor constructor2 = constructor; + Class[] classValArray2 = constructor2.getParameterTypes(); + Class[] classValArray3 = classValArray; + Class[] classValArray4 = classValArray2; + if (Arrays.equals(classValArray4, classValArray3)) { + boolean flag = true; + Constructor constructor3 = constructor; + constructor3.setAccessible(flag); + return new ConstructorInvokerImpl(constructor); + } + } + + Object[] objArray = new Object[]{classVal, null}; + Class[] classValArray5 = classValArray; + objArray[1] = Arrays.asList(classValArray5); + throw new IllegalStateException(String.format("Unable to find constructor for %s (%s).", objArray)); + } + + public static Class getUntypedClass(String str) { + return (Class)getClass(str); + } + + public static Class getClass(String str) { + return getCanonicalClass(expandVariables(str)); + } + + public static Class getMinecraftClass(String str) { + return getCanonicalClass(NMS_PREFIX + "." + str); + } + + public static Class getCraftBukkitClass(String str) { + return getCanonicalClass(OBC_PREFIX + "." + str); + } + + private static Class getCanonicalClass(String str) { + try { + return Class.forName(str); + } catch (ClassNotFoundException ex) { + throw new IllegalArgumentException("Cannot find " + str, ex); + } + } + + private static String expandVariables(String str) { + StringBuffer stringBuffer = new StringBuffer(); + Matcher matcher = VARIABLE_PATTERN.matcher(str); + + while (matcher.find()) { + String str2 = matcher.group(1); + String str3 = ""; + if ("nms".equalsIgnoreCase(str2)) { + str3 = NMS_PREFIX; + } else if ("obc".equalsIgnoreCase(str2)) { + str3 = OBC_PREFIX; + } else { + if (!"version".equalsIgnoreCase(str2)) { + throw new IllegalArgumentException("Unknown variable: " + str2); + } + + str3 = NMS_VERSION; + } + + if (str3.length() > 0 && matcher.end() < str.length() && str.charAt(matcher.end()) != '.') { + str3 = str3 + "."; + } + + matcher.appendReplacement(stringBuffer, Matcher.quoteReplacement(str3)); + } + + matcher.appendTail(stringBuffer); + return stringBuffer.toString(); + } + + private static final class FieldAccessorImpl implements FieldAccessor { + final Field field; + + FieldAccessorImpl(Field field) { + this.field = field; + } + + @Override + @SuppressWarnings("unchecked") + public T get(Object obj) { + try { + return (T)this.field.get(obj); + } catch (IllegalAccessException ex) { + throw new RuntimeException("Cannot access reflection.", ex); + } + } + + @Override + public void set(Object obj, Object obj2) { + try { + this.field.set(obj, obj2); + } catch (IllegalAccessException ex) { + throw new RuntimeException("Cannot access reflection.", ex); + } + } + + @Override + public boolean hasField(Object obj) { + return this.field.getDeclaringClass().isAssignableFrom(obj.getClass()); + } + } + + private static final class MethodInvokerImpl implements MethodInvoker { + final Method method; + + MethodInvokerImpl(Method method) { + this.method = method; + } + + @Override + public Object invoke(Object obj, Object... objArray) { + try { + return this.method.invoke(obj, objArray); + } catch (Exception ex) { + throw new RuntimeException("Cannot invoke method " + this.method, ex); + } + } + } + + private static final class ConstructorInvokerImpl implements ConstructorInvoker { + final Constructor constructor; + + ConstructorInvokerImpl(Constructor constructor) { + this.constructor = constructor; + } + + @Override + public Object invoke(Object... objArray) { + try { + return this.constructor.newInstance(objArray); + } catch (Exception ex) { + throw new RuntimeException("Cannot invoke constructor " + this.constructor, ex); + } + } + } + + public interface ConstructorInvoker { + Object invoke(Object... objArray); + } + + public interface FieldAccessor { + T get(Object obj); + + void set(Object obj, Object obj2); + + boolean hasField(Object obj); + } + + public interface MethodInvoker { + Object invoke(Object obj, Object... objArray); + } +} 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..7c63a96 --- /dev/null +++ b/src/main/java/me/konsolas/aac/util/movement/VerticalMotionModel.java @@ -0,0 +1,45 @@ +package me.konsolas.aac.util.movement; + +import me.konsolas.aac.util.general.NumberUtil; + +public class VerticalMotionModel { + + public static boolean isValidVerticalMotion(double d, boolean flag, boolean flag2, boolean flag3, int i, long ticks, double d2, double d3, int i2, double d4) { + double d5 = predictNextDeltaY(d2); + double d6 = i2 > 0 ? i2 / 10.0 + 0.42 : 0.42; + if (!flag3) { + if (flag) { + return isWithinUpperBound(d, d6, d3); + } else { + return flag2 ? isWithinLowerBound(d, d5, d3) : isWithinTolerance(d, d5, d3); + } + } else if (flag) { + return isWithinUpperBound(d, Math.max(d6, d4 + 0.05), d3); + } else if (isWithinTolerance(d, d5, d3)) { + return true; + } else { + return ticks < i * 50 ? isWithinUpperBound(d, d4 + 0.05, d3) : isWithinTolerance(d, d5, d3); + } + } + + public static boolean isWithinUpperBound(double d, double d2, double d3) { + return d < d2 + d3; + } + + public static boolean isWithinLowerBound(double d, double d2, double d3) { + return d > d2 - d3; + } + + public static boolean isWithinTolerance(double d, double d2, double d3) { + return NumberUtil.isWithinRange(d, d2, d3); + } + + public static double predictNextDeltaY(double d) { + d -= 0.08; + return d * 0.98; + } + + public static double scaleVerticalEstimate(double d) { + return d * 1.01; + } +} 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..5861f90 --- /dev/null +++ b/src/main/resources/config.yml @@ -0,0 +1,692 @@ +#### 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: + 8: "aacstaffnotify {player} is suspected for Killaura (Angle) (ping = {ping}, tps = {tps})" + 16: "aackick {player} Suspicious aiming accuracy" + +# 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})" + 100: "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: + 8: "aacstaffnotify {player} is suspected for AutoClicker (FightSpeed) (ping = {ping}, tps = {tps})" + 15: "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:jump:x - Should NormalMovements handle jumping? + f_jump: false + + # 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.35 + sneaking_speed: 0.215 + + # On and under water + surface_speed: 0.21 + underwater_speed: 0.135 + dive_speed: 0.69 + + # Other + cobweb_speed: 0.1 + 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.5 + + # 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: 4.0 + + # How many violations before a player will start being rubber-banded + vls_to_band: 12 + + # How long must a player remain clean for band violations to be cleared? (seconds) + clear_vl_delay: 12 + + # 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 + equip_armour: true + equip_held_item: true + fake_on_ground: true + send_damaged_animation: false + + # Map of violation levels to commands + thresholds: + 4: "aacstaffnotify {player} is suspected for Killaura (NPC check) (ping = {ping}, tps = {tps})" + 9: "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.0 + + # 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: 1.0 + + # Map of violation levels to commands + thresholds: + 9: "aacstaffnotify {player} is suspected for Reach (ping = {ping}, tps = {tps})" + 17: "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 + + # 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: 15 + + # 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: 5 + + # 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 (disabled by default) + aimbot: 90 + + # Required chance for a Reach kick (%). Set to something >= 100 to disable (disabled by default) + reach: 100 + + # Required chance for an Accuracy kick (%). Set to something >= 100 to disable (disabled by default) + # EXPERIMENTAL + accuracy: 90 + + # 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: 12 + + # Ticks after velocity a player should be immune to the glide check + vel_ticks: 12 + + # 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})" + 95: "aacstaffnotify {player} is about to be kicked for Glide hacks (ping = {ping}, tps = {tps})" + 110: "aackick {player} Not falling correctly. Severe lag?" + +# 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: + 10: "aacstaffnotify {player} is suspected for Jesus hacks (ping = {ping}, tps = {tps})" + 30: "aacstaffnotify {player} is very likely to be using Jesus hacks" + 50: "aackick {player} Walking on water?" + +# 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 + + # 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})" + +# 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: 2 + + # 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: + 10: "aacstaffnotify {player} is suspected for FastBreak hacks (ping = {ping}, tps = {tps})" + 20: "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: + 10: "aacstaffnotify {player} is suspected for FastPlace hacks (ping = {ping}, tps = {tps})" + 20: "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: true + +# 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 + +# 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..83b42ab --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,108 @@ +name: AAC +version: 1.9.10 +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