added files.
This commit is contained in:
commit
255926b37a
1291 files changed
+65725
No files matched your search
@@ -0,0 +1,9 @@
|
||||
.gradle/
|
||||
build/
|
||||
out/
|
||||
.idea/
|
||||
*.iml
|
||||
.classpath
|
||||
.project
|
||||
.settings/
|
||||
verus-dump-*.jar
|
||||
@@ -0,0 +1,52 @@
|
||||
<p align="center">
|
||||
<img src="assets/ss.png" alt="Skid Solutions Banner" width="350" />
|
||||
<br><br>
|
||||
<a href="https://discord.gg/WYjATa6BrU">
|
||||
<img src="https://img.shields.io/badge/Discord-Skid%20Solutions-18181b?style=for-the-badge&logo=discord&logoColor=ffffff&labelColor=09090b" alt="Discord" />
|
||||
</a>
|
||||
<img src="https://img.shields.io/badge/Version-b3952-27272a?style=for-the-badge&labelColor=09090b" alt="Version b3952" />
|
||||
<img src="https://img.shields.io/badge/Java-17-3f3f46?style=for-the-badge&logo=openjdk&logoColor=ffffff&labelColor=09090b" alt="Java 17" />
|
||||
<img src="https://img.shields.io/badge/Gradle-8.14.3-52525b?style=for-the-badge&logo=gradle&logoColor=ffffff&labelColor=09090b" alt="Gradle 8.14.3" />
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://discord.gg/WYjATa6BrU">https://discord.gg/WYjATa6BrU</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/divider.svg" alt="" width="720" />
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/jak.jpg" alt="jak" height="150" />
|
||||
<img src="assets/hack.jpg" alt="hack" height="150" />
|
||||
<img src="assets/deobf2.png" alt="deobf2" height="150" />
|
||||
<img src="assets/deobf.jpg" alt="deobf" height="150" />
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/divider.svg" alt="" width="720" />
|
||||
</p>
|
||||
|
||||
## How to build
|
||||
|
||||
### Prerequisites
|
||||
- **Java Development Kit**: JDK 17 (the Gradle wrapper 8.14.3 does not run on newer JDKs)
|
||||
|
||||
### Building OpenVerus
|
||||
|
||||
Run from this folder:
|
||||
|
||||
```powershell
|
||||
$env:JAVA_HOME = "C:\Program Files\Java\jdk-17"
|
||||
|
||||
.\gradlew.bat prepareIde
|
||||
.\gradlew.bat clean build
|
||||
```
|
||||
|
||||
The build also compiles every NMS adapter listed in `platforms/versions.txt` (`v1_7_R4` through `v1_20_R3`).
|
||||
|
||||
Generated `build/libs/`:
|
||||
- `OpenVerus-b3952-java17.jar`
|
||||
- `OpenVerus-b3952-plain.jar`
|
||||
- `OpenVerus-b3952-sources.jar`
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 135 KiB |
@@ -0,0 +1,26 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 820 20" width="820" height="20" role="img" aria-hidden="true">
|
||||
<defs>
|
||||
<linearGradient id="baseLine" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" stop-color="#000000" stop-opacity="0" />
|
||||
<stop offset="25%" stop-color="#404040" stop-opacity="0.7" />
|
||||
<stop offset="50%" stop-color="#d4d4d4" stop-opacity="0.95" />
|
||||
<stop offset="75%" stop-color="#404040" stop-opacity="0.7" />
|
||||
<stop offset="100%" stop-color="#000000" stop-opacity="0" />
|
||||
</linearGradient>
|
||||
<linearGradient id="pulse" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" stop-color="#ffffff" stop-opacity="0" />
|
||||
<stop offset="50%" stop-color="#ffffff" stop-opacity="1" />
|
||||
<stop offset="100%" stop-color="#ffffff" stop-opacity="0" />
|
||||
</linearGradient>
|
||||
<clipPath id="lineClip">
|
||||
<rect x="40" y="8" width="740" height="4" rx="2" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
<rect x="40" y="9.25" width="740" height="1.5" rx="0.75" fill="url(#baseLine)" />
|
||||
<g clip-path="url(#lineClip)">
|
||||
<rect x="-120" y="8.5" width="140" height="3" rx="1.5" fill="url(#pulse)">
|
||||
<animate attributeName="x" values="-120;820" dur="3.4s" repeatCount="indefinite" />
|
||||
</rect>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 323 KiB |
+185
@@ -0,0 +1,185 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'idea'
|
||||
id 'eclipse'
|
||||
id 'com.gradleup.shadow' version '8.3.8'
|
||||
}
|
||||
|
||||
group = 'me.levansj01.verus'
|
||||
version = 'b3952'
|
||||
|
||||
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 'org.mongodb:mongo-java-driver:3.12.14'
|
||||
implementation 'com.zaxxer:HikariCP:4.0.3'
|
||||
implementation 'org.lz4:lz4-java:1.8.0'
|
||||
implementation 'club.minnced:discord-webhooks:0.5.7'
|
||||
implementation 'javax.xml.bind:jaxb-api:2.3.1'
|
||||
|
||||
compileOnly compileApi('verus')
|
||||
compileOnly 'com.google.guava:guava:21.0'
|
||||
compileOnly 'io.netty:netty-all:4.1.25.Final'
|
||||
compileOnly 'net.sf.trove4j:trove4j:3.0.3'
|
||||
compileOnly 'it.unimi.dsi:fastutil:8.5.2'
|
||||
compileOnly 'commons-lang:commons-lang:2.6'
|
||||
compileOnly 'net.md-5:bungeecord-chat:1.16-R0.4'
|
||||
compileOnly 'org.jetbrains:annotations:24.1.0'
|
||||
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
|
||||
}
|
||||
|
||||
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') }
|
||||
}
|
||||
|
||||
def nmsApis = [
|
||||
'v1_7_R4' : 'verus-nms-legacy',
|
||||
'v1_8_R3' : 'verus-nms-legacy',
|
||||
'v1_11_R1': 'verus-nms-legacy',
|
||||
'v1_12_R1': 'verus-nms-legacy',
|
||||
'v1_13_R2': 'verus-nms-legacy',
|
||||
'v1_14_R1': 'verus-nms-legacy',
|
||||
'v1_15_R1': 'verus-nms-legacy',
|
||||
'v1_16_R1': 'verus-nms-legacy',
|
||||
'v1_16_R2': 'verus-nms-legacy',
|
||||
'v1_16_R3': 'verus-nms-legacy',
|
||||
'v1_17_R1': 'verus-nms-v1_17_R1',
|
||||
'v1_18_R1': 'verus-nms-v1_18_R1',
|
||||
'v1_18_R2': 'verus-nms-v1_18_R2',
|
||||
'v1_19_R1': 'verus-nms-v1_19_R1',
|
||||
'v1_19_R2': 'verus-nms-v1_19_R2',
|
||||
'v1_19_R3': 'verus-nms-v1_19_R3',
|
||||
'v1_20_R1': 'verus-nms-v1_20_R1',
|
||||
'v1_20_R3': 'verus-nms-v1_20_R3',
|
||||
]
|
||||
|
||||
def serverVersions = file('platforms/versions.txt').readLines().findAll { !it.isBlank() }
|
||||
serverVersions.each { serverVersion ->
|
||||
def set = sourceSets.create('server_' + serverVersion)
|
||||
set.java.setSrcDirs(['platforms/' + serverVersion + '/src/main/java'])
|
||||
set.resources.setSrcDirs([])
|
||||
set.compileClasspath = compileApi(nmsApis[serverVersion]) + sourceSets.main.output + configurations.compileClasspath
|
||||
tasks.named(set.compileJavaTaskName) { dependsOn tasks.named('classes') }
|
||||
tasks.named('jar') { from set.output; dependsOn tasks.named(set.classesTaskName) }
|
||||
tasks.named('shadowJar') { from set.output; dependsOn tasks.named(set.classesTaskName) }
|
||||
tasks.named('sourcesJar') { from set.allSource }
|
||||
}
|
||||
|
||||
// Cross-version adapter reuse present in Verus (v1_11_R1 -> v1_7_R4 listener, v1_19_R1 -> v1_19_R2 packets/listener)
|
||||
sourceSets.named('server_v1_11_R1') {
|
||||
compileClasspath += sourceSets.server_v1_7_R4.output
|
||||
}
|
||||
tasks.named('compileServer_v1_11_R1Java') { dependsOn tasks.named('server_v1_7_R4Classes') }
|
||||
sourceSets.named('server_v1_19_R1') {
|
||||
compileClasspath += sourceSets.server_v1_19_R2.output
|
||||
}
|
||||
tasks.named('compileServer_v1_19_R1Java') { dependsOn tasks.named('server_v1_19_R2Classes') }
|
||||
|
||||
jar {
|
||||
archiveClassifier = 'plain'
|
||||
manifest.attributes('Implementation-Title': 'Verus', 'Implementation-Version': project.version)
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = 'java17'
|
||||
relocate 'org.bson', 'me.levansj01.verus.util.bson'
|
||||
relocate 'com.mongodb', 'me.levansj01.verus.util.mongodb'
|
||||
relocate 'com.zaxxer.hikari', 'me.levansj01.verus.util.hikari'
|
||||
relocate 'net.jpountz', 'me.levansj01.verus.util.jpountz'
|
||||
relocate 'club.minnced.discord.webhook', 'me.levansj01.verus.util.webhook'
|
||||
relocate 'okhttp3', 'me.levansj01.verus.util.okhttp3'
|
||||
relocate 'okio', 'me.levansj01.verus.util.okio'
|
||||
relocate 'org.slf4j', 'me.levansj01.verus.util.slf4j'
|
||||
relocate 'org.json', 'me.levansj01.verus.util.json'
|
||||
minimize {
|
||||
exclude(dependency('org.lz4:lz4-java:.*'))
|
||||
exclude(dependency('com.zaxxer:HikariCP:.*'))
|
||||
exclude(dependency('javax.xml.bind:jaxb-api:.*'))
|
||||
}
|
||||
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': 'Verus', 'Implementation-Version': project.version)
|
||||
}
|
||||
|
||||
tasks.named('sourcesJar') {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
|
||||
assemble.dependsOn shadowJar
|
||||
|
||||
idea {
|
||||
module {
|
||||
downloadSources = true
|
||||
downloadJavadoc = true
|
||||
}
|
||||
}
|
||||
|
||||
eclipse {
|
||||
classpath {
|
||||
downloadSources = true
|
||||
downloadJavadoc = true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
org.gradle.jvmargs=-Xmx3g -Dfile.encoding=UTF-8
|
||||
org.gradle.workers.max=2
|
||||
org.gradle.parallel=false
|
||||
@@ -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<String> 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","<init>","(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<String,JsonObject> declarations(Path input,Path schema,Set<Path> 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<String,JsonObject> 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<String,JsonObject> 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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"co/aikar/timings/Timing","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"co/aikar/timings/WorldTimingsHandler","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/avaje/ebean/config/ServerConfig","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/google/gson/ExclusionStrategy","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"shouldSkipField","access":1025,"descriptor":"(Lcom/google/gson/FieldAttributes;)Z"},{"name":"shouldSkipClass","access":1025,"descriptor":"(Ljava/lang/Class;)Z","signature":"(Ljava/lang/Class\u003c*\u003e;)Z"}]},{"name":"com/google/gson/FieldAttributes","version":51,"access":49,"superName":"java/lang/Object","fields":[{"name":"field","access":18,"descriptor":"Ljava/lang/reflect/Field;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/lang/reflect/Field;)V"},{"name":"getDeclaringClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class\u003c*\u003e;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getDeclaredType","access":1,"descriptor":"()Ljava/lang/reflect/Type;"},{"name":"getDeclaredClass","access":1,"descriptor":"()Ljava/lang/Class;","signature":"()Ljava/lang/Class\u003c*\u003e;"},{"name":"getAnnotation","access":1,"descriptor":"(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;","signature":"\u003cT::Ljava/lang/annotation/Annotation;\u003e(Ljava/lang/Class\u003cTT;\u003e;)TT;"},{"name":"getAnnotations","access":1,"descriptor":"()Ljava/util/Collection;","signature":"()Ljava/util/Collection\u003cLjava/lang/annotation/Annotation;\u003e;"},{"name":"hasModifier","access":1,"descriptor":"(I)Z"},{"name":"toString","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/google/gson/FieldNamingPolicy","version":51,"access":17441,"signature":"Ljava/lang/Enum\u003cLcom/google/gson/FieldNamingPolicy;\u003e;Lcom/google/gson/FieldNamingStrategy;","superName":"java/lang/Enum","interfaces":["com/google/gson/FieldNamingStrategy"],"innerClasses":[{"name":"com/google/gson/FieldNamingPolicy$7","access":16400},{"name":"com/google/gson/FieldNamingPolicy$6","access":16400},{"name":"com/google/gson/FieldNamingPolicy$5","access":16400},{"name":"com/google/gson/FieldNamingPolicy$4","access":16400},{"name":"com/google/gson/FieldNamingPolicy$3","access":16400},{"name":"com/google/gson/FieldNamingPolicy$2","access":16400},{"name":"com/google/gson/FieldNamingPolicy$1","access":16400}],"fields":[{"name":"IDENTITY","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"UPPER_CAMEL_CASE","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"UPPER_CAMEL_CASE_WITH_SPACES","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"UPPER_CASE_WITH_UNDERSCORES","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"LOWER_CASE_WITH_UNDERSCORES","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"LOWER_CASE_WITH_DASHES","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"LOWER_CASE_WITH_DOTS","access":16409,"descriptor":"Lcom/google/gson/FieldNamingPolicy;"},{"name":"$VALUES","access":4122,"descriptor":"[Lcom/google/gson/FieldNamingPolicy;"}],"methods":[{"name":"values","access":9,"descriptor":"()[Lcom/google/gson/FieldNamingPolicy;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/google/gson/FieldNamingPolicy;"},{"name":"\u003cinit\u003e","access":2,"descriptor":"(Ljava/lang/String;I)V","signature":"()V"},{"name":"separateCamelCase","access":8,"descriptor":"(Ljava/lang/String;C)Ljava/lang/String;"},{"name":"upperCaseFirstLetter","access":8,"descriptor":"(Ljava/lang/String;)Ljava/lang/String;"},{"name":"\u003cinit\u003e","access":4096,"descriptor":"(Ljava/lang/String;ILcom/google/gson/FieldNamingPolicy$1;)V"}]},{"name":"com/google/gson/FieldNamingPolicy$1","version":51,"access":16432,"signature":"Ljava/lang/Enum\u003cLcom/google/gson/FieldNamingPolicy$1;\u003e;","superName":"com/google/gson/FieldNamingPolicy","innerClasses":[{"name":"com/google/gson/FieldNamingPolicy$1","access":16400}],"methods":[{"name":"\u003cinit\u003e","access":0,"descriptor":"(Ljava/lang/String;I)V"},{"name":"translateName","access":1,"descriptor":"(Ljava/lang/reflect/Field;)Ljava/lang/String;"},{"name":"values","access":9,"descriptor":"()[Lcom/google/gson/FieldNamingPolicy$1;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lcom/google/gson/FieldNamingPolicy$1;"}]},{"name":"com/google/gson/FieldNamingStrategy","version":51,"access":1537,"superName":"java/lang/Object","methods":[{"name":"tLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"getX","access":1,"descriptor":"()I"},{"name":"getY","access":1,"descriptor":"()I"},{"name":"getZ","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"getAdjacentX","access":1,"descriptor":"()I"},{"name":"getAdjacentY","access":1,"descriptor":"()I"},{"name":"getAdjacentZ","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"k","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"},{"name":"net/minecraft/network/chat/IChatBaseComponent","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/Packet","version":52,"access":1537,"signature":"\u003cT0:Ljava/lang/Object;\u003eLjava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Lnet/minecraft/network/PacketListener;)V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundAddVibrationSignalPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundClearTitlesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPingPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(I)V"},{"name":"b","access":1,"descriptor":"()I"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPlayerCombatEnterPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"i","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"k","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"},{"name":"net/minecraft/network/chat/IChatBaseComponent","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/Packet","version":52,"access":1537,"signature":"\u003cT0:Ljava/lang/Object;\u003eLjava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Lnet/minecraft/network/PacketListener;)V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundAddVibrationSignalPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundClearTitlesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPingPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(I)V"},{"name":"b","access":1,"descriptor":"()I"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPlayerCombatEndPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"metLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/authlib/GameProfile","version":50,"access":33,"superName":"java/lang/Object","fields":[{"name":"id","access":18,"descriptor":"Ljava/util/UUID;"},{"name":"name","access":18,"descriptor":"Ljava/lang/String;"},{"name":"properties","access":18,"descriptor":"Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"legacy","access":2,"descriptor":"Z"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;)V"},{"name":"getId","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getProperties","access":1,"descriptor":"()Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"isComplete","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":"isLegacy","access":1,"descriptor":"()Z"}]},{"name":"com/mojang/authlib/properties/PropertyMap","version":50,"access":33,"signature":"Lcom/google/common/collect/ForwardingMultimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;","superName":"com/google/common/collect/ForwardingMultimap","innerClasses":[{"name":"com/mojang/authlib/properties/PropertyMap$Serializer","outerName":"com/mojang/authlib/properties/PropertyMap","innerName":"Serializer","access":9}],"fields":[{"name":"properties","access":18,"descriptor":"Lcom/google/common/collect/Multimap;","signature":"Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"},{"name":"delegate","access":4,"descriptor":"()Lcom/google/common/collect/Multimap;","signature":"()Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"},{"name":"delegate","access":4164,"descriptor":"()Ljava/lang/Object;"}]},{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"},{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"i","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"m","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"l","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"m","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"},{"name":"net/minecraft/network/chat/IChatBaseComponent","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/Packet","version":52,"access":1537,"signature":"\u003cT0:Ljava/lang/Object;\u003eLjava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Lnet/minecraft/network/PacketListener;)V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundBlockChangedAckPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundChatPreviewPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundClearTitlesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundLevelChunkWithLightPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundPingPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descrLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"l","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"m","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"},{"name":"net/minecraft/network/chat/IChatBaseComponent","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/Packet","version":52,"access":1537,"signature":"\u003cT0:Ljava/lang/Object;\u003eLjava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Lnet/minecraft/network/PacketListener;)V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundBlockChangedAckPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundClearTitlesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundCustomChatCompletionsPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundDeleteChatPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundDisguisedChatPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundInitializeBorderPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","accessLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/authlib/GameProfile","version":50,"access":33,"superName":"java/lang/Object","fields":[{"name":"id","access":18,"descriptor":"Ljava/util/UUID;"},{"name":"name","access":18,"descriptor":"Ljava/lang/String;"},{"name":"properties","access":18,"descriptor":"Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"legacy","access":2,"descriptor":"Z"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;)V"},{"name":"getId","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getProperties","access":1,"descriptor":"()Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"isComplete","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":"isLegacy","access":1,"descriptor":"()Z"}]},{"name":"com/mojang/authlib/properties/PropertyMap","version":50,"access":33,"signature":"Lcom/google/common/collect/ForwardingMultimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;","superName":"com/google/common/collect/ForwardingMultimap","innerClasses":[{"name":"com/mojang/authlib/properties/PropertyMap$Serializer","outerName":"com/mojang/authlib/properties/PropertyMap","innerName":"Serializer","access":9}],"fields":[{"name":"properties","access":18,"descriptor":"Lcom/google/common/collect/Multimap;","signature":"Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"},{"name":"delegate","access":4,"descriptor":"()Lcom/google/common/collect/Multimap;","signature":"()Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"},{"name":"delegate","access":4164,"descriptor":"()Ljava/lang/Object;"}]},{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"l","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"m","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"l","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/network/NetworkManager","version":52,"access":33,"superName":"java/lang/Object","fields":[{"name":"m","access":1,"descriptor":"Lio/netty/channel/Channel;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketDataSerializer","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"capacity","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/PacketListener","version":52,"access":1537,"superName":"java/lang/Object"},{"name":"net/minecraft/network/chat/IChatBaseComponent","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/Packet","version":52,"access":1537,"signature":"\u003cT0:Ljava/lang/Object;\u003eLjava/lang/Object;","superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Lnet/minecraft/network/PacketListener;)V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundBlockChangedAckPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundBundlePacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundChunksBiomesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundClearTitlesPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundCustomChatCompletionsPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/network/protocol/game/ClientboundDamageEventPacket","version":52,"access":33,"superName":"java/lang/Object","interfaces":["net/minecraft/network/protocol/Packet"],"methods":[{"name":"\u003cinit\u003e","access":1,"descrLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","base":"verus","classes":[{"name":"com/mojang/authlib/GameProfile","version":50,"access":33,"superName":"java/lang/Object","fields":[{"name":"id","access":18,"descriptor":"Ljava/util/UUID;"},{"name":"name","access":18,"descriptor":"Ljava/lang/String;"},{"name":"properties","access":18,"descriptor":"Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"legacy","access":2,"descriptor":"Z"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/util/UUID;Ljava/lang/String;)V"},{"name":"getId","access":1,"descriptor":"()Ljava/util/UUID;"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getProperties","access":1,"descriptor":"()Lcom/mojang/authlib/properties/PropertyMap;"},{"name":"isComplete","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":"isLegacy","access":1,"descriptor":"()Z"}]},{"name":"com/mojang/authlib/properties/PropertyMap","version":50,"access":33,"signature":"Lcom/google/common/collect/ForwardingMultimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;","superName":"com/google/common/collect/ForwardingMultimap","innerClasses":[{"name":"com/mojang/authlib/properties/PropertyMap$Serializer","outerName":"com/mojang/authlib/properties/PropertyMap","innerName":"Serializer","access":9}],"fields":[{"name":"properties","access":18,"descriptor":"Lcom/google/common/collect/Multimap;","signature":"Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"}],"methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"},{"name":"delegate","access":4,"descriptor":"()Lcom/google/common/collect/Multimap;","signature":"()Lcom/google/common/collect/Multimap\u003cLjava/lang/String;Lcom/mojang/authlib/properties/Property;\u003e;"},{"name":"delegate","access":4164,"descriptor":"()Ljava/lang/Object;"}]},{"name":"com/mojang/brigadier/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/mojang/brigadier/tree/LiteralCommandNode","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/CrashReport","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/CrashReportSystemDetails","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/commands/CommandDispatcher","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"a","access":1,"descriptor":"()Lcom/mojang/brigadier/CommandDispatcher;"},{"name":"a","access":1,"descriptor":"(Lnet/minecraft/server/level/EntityPlayer;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition","version":52,"access":33,"superName":"java/lang/Object","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"u","access":1,"descriptor":"()I"},{"name":"v","access":1,"descriptor":"()I"},{"name":"w","access":1,"descriptor":"()I"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","version":52,"access":33,"superName":"net/minecraft/core/BlockPosition","innerClasses":[{"name":"net/minecraft/core/BlockPosition$MutableBlockPosition","outerName":"net/minecraft/core/BlockPosition","innerName":"MutableBlockPosition","access":9}],"methods":[{"name":"d","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"e","access":1,"descriptor":"(III)Lnet/minecraft/core/BlockPosition$MutableBlockPosition;"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"net/minecraft/core/EnumDirection","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLnet/minecraft/core/EnumDirection;\u003e;","superName":"java/lang/Enum","methods":[{"name":"ordinal","access":1,"descriptor":"()I"},{"name":"j","access":1,"descriptor":"()I"},{"name":"k","access":1,"descriptor":"()I"},{"name":"l","access":1,"descriptor":"()I"},{"name":"values","access":9,"descriptor":"()[Lnet/minecraft/core/EnumDirection;"},{"name":"valueOf","access":9,"descriptor":"(Ljava/lang/String;)Lnet/minecraft/core/EnumDirection;"}]},{"name":"net/minecraft/core/IRegistry","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"a","access":1025,"descriptor":"(Ljava/lang/Object;)I"}]},{"name":"net/minecraft/core/RegistryBlocks","version":52,"access":1537,"sLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"formatVersion":1,"purpose":"Compile-only API declarations; not runtime implementations","classes":[{"name":"com/destroystokyo/paper/profile/PlayerProfile","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getProperties","access":1025,"descriptor":"()Ljava/util/Set;"},{"name":"setProperty","access":1025,"descriptor":"(Lcom/destroystokyo/paper/profile/ProfileProperty;)V"},{"name":"getId","access":1025,"descriptor":"()Ljava/util/UUID;"}]},{"name":"com/destroystokyo/paper/profile/ProfileProperty","version":61,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V"},{"name":"\u003cinit\u003e","access":1,"descriptor":"(Ljava/lang/String;Ljava/lang/String;)V"},{"name":"getName","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getValue","access":1,"descriptor":"()Ljava/lang/String;"},{"name":"getSignature","access":1,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/lunarclient/bukkitapi/LunarClientAPI","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"getInstance","access":9,"descriptor":"()Lcom/lunarclient/bukkitapi/LunarClientAPI;"},{"name":"isRunningLunarClient","access":1,"descriptor":"(Lorg/bukkit/entity/Player;)Z"},{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/viaversion/viaversion/api/Via","version":61,"access":33,"superName":"java/lang/Object","methods":[{"name":"getAPI","access":9,"descriptor":"()Lcom/viaversion/viaversion/api/ViaAPI;"},{"name":"getManager","access":9,"descriptor":"()Lcom/viaversion/viaversion/api/ViaManager;"}]},{"name":"com/viaversion/viaversion/api/ViaAPI","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getPlayerVersion","access":1025,"descriptor":"(Ljava/lang/Object;)I"},{"name":"getPlayerVersion","access":1025,"descriptor":"(Ljava/util/UUID;)I"},{"name":"getConnection","access":1025,"descriptor":"(Ljava/util/UUID;)Lcom/viaversion/viaversion/api/connection/UserConnection;"}]},{"name":"com/viaversion/viaversion/api/ViaManager","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getInjector","access":1025,"descriptor":"()Lcom/viaversion/viaversion/api/platform/ViaInjector;"},{"name":"getProtocolManager","access":1025,"descriptor":"()Lcom/viaversion/viaversion/api/protocol/ProtocolManager;"}]},{"name":"com/viaversion/viaversion/api/connection/ProtocolInfo","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"protocolVersion","access":1025,"descriptor":"()Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;"},{"name":"getProtocolVersion","access":1025,"descriptor":"()I"}]},{"name":"com/viaversion/viaversion/api/connection/UserConnection","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getProtocolInfo","access":1025,"descriptor":"()Lcom/viaversion/viaversion/api/connection/ProtocolInfo;"},{"name":"getPacketTracker","access":1025,"descriptor":"()Lcom/viaversion/viaversion/api/protocol/packet/PacketTracker;"}]},{"name":"com/viaversion/viaversion/api/platform/ViaInjector","version":61,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getEncoderName","access":1025,"descriptor":"()Ljava/lang/String;"}]},{"name":"com/viaversion/viaversion/api/protocol/Protocol","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"registerClientbound","access":1025,"descriptor":"(Lcom/viaversion/viaversion/api/protocol/packet/State;IILcom/viaversion/viaversion/api/protocol/remapper/PacketRemapper;Z)V"},{"name":"registerServerbound","access":1025,"descriptor":"(Lcom/viaversion/viaversion/api/protocol/packet/State;IILcom/viaversion/viaversion/api/protocol/remapper/PacketRemapper;Z)V"}]},{"name":"com/viaversion/viaversion/api/protocol/ProtocolManager","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"getProtocol","access":1025,"descriptor":"(Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;)Lcom/viaversion/viaversion/api/protocol/Protocol;"}]},{"name":"com/viaversion/viaversion/api/protocol/packet/PacketTracker","version":52,"access":33,"superName":"java/lang/Object","methods":[{"name":"\u003cinit\u003e","access":1,"descriptor":"()V"}]},{"name":"com/viaversion/viaversion/api/protocol/packet/PacketWrapper","version":52,"access":1537,"superName":"java/lang/Object","methods":[{"name":"read","access":1025,"descriptor":"(Lcom/viaversion/viaversion/api/type/Type;)Ljava/lang/Object;"},{"name":"write","access":1025,"descriptor":"(Lcom/viaversion/viaversion/api/type/Type;Ljava/lang/Object;)V"},{"name":"cancel","access":1025,"descriptor":"()V"}]},{"name":"com/viaversion/viaversion/api/protocol/packet/State","version":52,"access":16433,"signature":"Ljava/lang/Enum\u003cLcom/viaversion/viaversion/api/protocol/packet/State;\u003e;","superName":"java/lang/Enum","fieLine truncated
|
||||
Vendored
BIN
Binary file not shown.
+8
@@ -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
|
||||
@@ -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" "$@"
|
||||
Vendored
+94
@@ -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
|
||||
@@ -0,0 +1,304 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1;
|
||||
|
||||
import gnu.trove.map.hash.TLongObjectHashMap;
|
||||
import io.netty.channel.Channel;
|
||||
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import me.levansj01.verus.compat.api.trove.LongObjectMapWrapper;
|
||||
import me.levansj01.verus.compat.api.wrapper.PlayerAbilities;
|
||||
import me.levansj01.verus.data.PlayerData;
|
||||
import me.levansj01.verus.data.version.ClientVersion;
|
||||
import me.levansj01.verus.util.Cuboid;
|
||||
import me.levansj01.verus.util.IBlockPosition;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.AxisAlignedBB;
|
||||
import net.minecraft.server.v1_11_R1.Block;
|
||||
import net.minecraft.server.v1_11_R1.Blocks;
|
||||
import net.minecraft.server.v1_11_R1.EntityLiving;
|
||||
import net.minecraft.server.v1_11_R1.EntityPlayer;
|
||||
import net.minecraft.server.v1_11_R1.GenericAttributes;
|
||||
import net.minecraft.server.v1_11_R1.IBlockData;
|
||||
import net.minecraft.server.v1_11_R1.ITickable;
|
||||
import net.minecraft.server.v1_11_R1.MinecraftServer;
|
||||
import net.minecraft.server.v1_11_R1.MobEffect;
|
||||
import net.minecraft.server.v1_11_R1.MobEffectList;
|
||||
import net.minecraft.server.v1_11_R1.MovingObjectPosition;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBlockChange;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTransaction;
|
||||
import net.minecraft.server.v1_11_R1.PlayerConnection;
|
||||
import net.minecraft.server.v1_11_R1.Vec3D;
|
||||
import net.minecraft.server.v1_11_R1.WorldServer;
|
||||
import net.minecraft.server.v1_11_R1.BlockPosition.MutableBlockPosition;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.inventory.CraftInventoryPlayer;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.util.CraftMagicNumbers;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.MaterialData;
|
||||
|
||||
public class NMSManager extends me.levansj01.verus.compat.NMSManager<IBlockData> {
|
||||
private static final Field effects = SafeReflection.access(EntityLiving.class, "effects");
|
||||
private static final List<ITickable> list = SafeReflection.getLocalField(MinecraftServer.class, MinecraftServer.getServer(), new String[]{"o"});
|
||||
private final MutableBlockPosition blockPosition = new MutableBlockPosition();
|
||||
|
||||
public static NMSManager getInstance() {
|
||||
return (NMSManager)me.levansj01.verus.compat.NMSManager.getInstance();
|
||||
}
|
||||
|
||||
public NMSManager() {
|
||||
try {
|
||||
Class.forName("it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap");
|
||||
this.fastUtil = true;
|
||||
} catch (ClassNotFoundException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRunning() {
|
||||
return MinecraftServer.getServer().isRunning();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <V> Map<Long, V> long2ObjectHashMap(int initialCapacity, float loadFactor) {
|
||||
return this.fastUtil
|
||||
? new Long2ObjectOpenHashMap<>(initialCapacity, loadFactor)
|
||||
: new LongObjectMapWrapper(new TLongObjectHashMap(initialCapacity, loadFactor));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ClientVersion defaultVersion() {
|
||||
return ClientVersion.V1_11;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int versionNumber() {
|
||||
return 315;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLoaded(World world, int x, int z) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
return worldServer.getChunkProviderServer().isLoaded(x >> 4, z >> 4);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Material getType(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
return worldServer.isLoaded(this.blockPosition) ? CraftMagicNumbers.getMaterial(worldServer.getType(this.blockPosition).getBlock()) : Material.AIR;
|
||||
}
|
||||
|
||||
public MaterialData toData(IBlockData data) {
|
||||
Block nmsBlock = data.getBlock();
|
||||
return CraftMagicNumbers.getMaterial(nmsBlock).getNewData((byte)nmsBlock.toLegacyData(data));
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaterialData getTypeAndData(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData blockData = worldServer.getType(this.blockPosition);
|
||||
return this.toData(blockData);
|
||||
} else {
|
||||
return new MaterialData(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDamage(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
IBlockData blockData = worldServer.getType(this.blockPosition);
|
||||
return blockData.a(entityPlayer, worldServer, this.blockPosition);
|
||||
} else {
|
||||
return 0.0F;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFrictionFactor(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
return worldServer.isLoaded(this.blockPosition) ? worldServer.getType(this.blockPosition).getBlock().frictionFactor : Blocks.AIR.frictionFactor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cuboid getBoundingBox(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData blockData = worldServer.getType(this.blockPosition);
|
||||
Block nmsBlock = blockData.getBlock();
|
||||
AxisAlignedBB axisAlignedBB = nmsBlock.b(blockData, worldServer, this.blockPosition);
|
||||
return new Cuboid(axisAlignedBB.a, axisAlignedBB.d, axisAlignedBB.b, axisAlignedBB.e, axisAlignedBB.c, axisAlignedBB.f);
|
||||
} else {
|
||||
return new Cuboid(block).add(new Cuboid(1.0, 1.0, 1.0));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMovementSpeed(Player player) {
|
||||
return ((CraftPlayer)player).getHandle().getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getKnockbackResistance(Player player) {
|
||||
return ((CraftPlayer)player).getHandle().getAttributeInstance(GenericAttributes.c).getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setOnGround(Player player, boolean ground) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
boolean value = entityPlayer.onGround;
|
||||
entityPlayer.onGround = ground;
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setInWater(Player player, boolean water) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
boolean value = entityPlayer.inWater;
|
||||
entityPlayer.inWater = water;
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFrictionFactor(org.bukkit.block.Block block) {
|
||||
return CraftMagicNumbers.getBlock(block).frictionFactor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGliding(Player player) {
|
||||
return ((CraftPlayer)player).isGliding();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updatePing(Player player, int ping) {
|
||||
((CraftPlayer)player).getHandle().ping = ping;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendTransaction(Player player, short id) {
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(new PacketPlayOutTransaction(0, id, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayerAbilities getAbilities(Player player) {
|
||||
net.minecraft.server.v1_11_R1.PlayerAbilities abilities = ((CraftPlayer)player).getHandle().abilities;
|
||||
return new PlayerAbilities(
|
||||
abilities.isInvulnerable, abilities.isFlying, abilities.canFly, abilities.canInstantlyBuild, abilities.mayBuild, abilities.a(), abilities.b()
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendBlockUpdate(Player player, World world, int x, int y, int z) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(x, y, z);
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(new PacketPlayOutBlockChange(worldServer, this.blockPosition));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendBlockUpdate(Player player, Location location) {
|
||||
this.sendBlockUpdate(player, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAsyncPotionEffects(Player player) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
Map<MobEffectList, MobEffect> map = entityPlayer.effects;
|
||||
if (map instanceof HashMap) {
|
||||
SafeReflection.set(effects, entityPlayer, new ConcurrentHashMap<>(map));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCurrentTick() {
|
||||
return MinecraftServer.currentTick;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean rayTrace(World world, double x, double y, double z, double dX, double dY, double dZ, boolean b1, boolean b2, boolean b3) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
MovingObjectPosition result = worldServer.rayTrace(new Vec3D(x, y, z), new Vec3D(dX, dY, dZ), b1, b2, b3);
|
||||
if (result == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
IBlockData blockData = worldServer.getType(result.a());
|
||||
return blockData.getBlock() != Blocks.END_PORTAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty(World world, Entity entity, Cuboid boundingBox, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData blockData = worldServer.getType(this.blockPosition);
|
||||
AxisAlignedBB axisAlignedBB = new AxisAlignedBB(
|
||||
boundingBox.getX1(), boundingBox.getY1(), boundingBox.getZ1(), boundingBox.getX2(), boundingBox.getY2(), boundingBox.getZ2()
|
||||
);
|
||||
List<AxisAlignedBB> list = new ArrayList<>(1);
|
||||
blockData.getBlock().a(blockData, worldServer, this.blockPosition, axisAlignedBB, list, ((CraftEntity)entity).getHandle(), false);
|
||||
return list.isEmpty();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getOffHand(Player player) {
|
||||
return ((CraftInventoryPlayer)player.getInventory()).getItemInOffHand();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inject(PlayerData playerData) {
|
||||
Channel channel = ((CraftPlayer)playerData.getPlayer()).getHandle().playerConnection.networkManager.channel;
|
||||
if (channel != null) {
|
||||
this.getNettyHandler().inject(channel, new me.levansj01.verus.compat.v1_7_R4.SPacketListener(playerData));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uninject(PlayerData playerData) {
|
||||
PlayerConnection playerConnection = ((CraftPlayer)playerData.getPlayer()).getHandle().playerConnection;
|
||||
if (playerConnection != null && !playerConnection.isDisconnected()) {
|
||||
this.getNettyHandler().uninject(playerConnection.networkManager.channel);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postToMainThread(Runnable runnable) {
|
||||
MinecraftServer.getServer().postToMainThread(runnable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Runnable scheduleEnd(Runnable runnable) {
|
||||
ITickable update = runnable::run;
|
||||
list.add(update);
|
||||
return () -> list.remove(update);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(Player player) {
|
||||
Channel channel = ((CraftPlayer)player).getHandle().playerConnection.networkManager.channel;
|
||||
if (channel != null) {
|
||||
channel.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
+572
@@ -0,0 +1,572 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1;
|
||||
|
||||
import me.levansj01.verus.compat.api.VPacketListener;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInAbilities;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInArmAnimation;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInBlockDig;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInBlockPlace;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInClientCommand;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInCloseWindow;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInCustomPayload;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInEntityAction;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInFlying;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInHeldItemSlot;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInKeepAlive;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInSetCreativeSlot;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInSteerVehicle;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInTeleportAccept;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInTransaction;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInUseEntity;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInUseItem;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInVehicleMove;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayInWindowClick;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutAbilities;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutAttachEntity;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntity;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntityDestroy;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntityEffect;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntityMetadata;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntityTeleport;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutEntityVelocity;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutExplosion;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutGameStateChange;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutKeepAlive;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutNamedEntitySpawn;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutOpenWindow;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutPosition;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutRemoveEntityEffect;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutRespawn;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutSetSlot;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutSpawnEntity;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutSpawnEntityLiving;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutSpawnPosition;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutTransaction;
|
||||
import me.levansj01.verus.compat.v1_11_R1.packets.SPacketPlayOutUpdateAttributes;
|
||||
import me.levansj01.verus.data.PlayerData;
|
||||
import net.minecraft.server.v1_11_R1.IChatBaseComponent;
|
||||
import net.minecraft.server.v1_11_R1.Packet;
|
||||
import net.minecraft.server.v1_11_R1.PacketHandshakingInListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketHandshakingInSetProtocol;
|
||||
import net.minecraft.server.v1_11_R1.PacketListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketListenerPlayIn;
|
||||
import net.minecraft.server.v1_11_R1.PacketListenerPlayOut;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginInEncryptionBegin;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginInListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginInStart;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginOutDisconnect;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginOutEncryptionBegin;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginOutListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginOutSetCompression;
|
||||
import net.minecraft.server.v1_11_R1.PacketLoginOutSuccess;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInAbilities;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInArmAnimation;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInBlockDig;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInBoatMove;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInChat;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInClientCommand;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInCloseWindow;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInCustomPayload;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInEnchantItem;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInEntityAction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInFlying;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInHeldItemSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInKeepAlive;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInResourcePackStatus;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSetCreativeSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSettings;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSpectate;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSteerVehicle;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInTabComplete;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInTeleportAccept;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInTransaction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUpdateSign;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUseEntity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUseItem;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInVehicleMove;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInWindowClick;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutAbilities;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutAnimation;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutAttachEntity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBed;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBlockAction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBlockBreakAnimation;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBlockChange;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutBoss;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCamera;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutChat;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCloseWindow;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCollect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCombatEvent;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCustomPayload;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutCustomSoundEffect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityDestroy;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityEffect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityEquipment;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityHeadRotation;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityStatus;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityTeleport;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityVelocity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutExperience;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutExplosion;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutGameStateChange;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutHeldItemSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutKeepAlive;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutKickDisconnect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutLogin;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutMap;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutMapChunk;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutMount;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutMultiBlockChange;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutNamedEntitySpawn;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutNamedSoundEffect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutOpenSignEditor;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutOpenWindow;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutPlayerInfo;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutPlayerListHeaderFooter;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutPosition;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutRemoveEntityEffect;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutResourcePackSend;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutRespawn;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutScoreboardDisplayObjective;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutScoreboardObjective;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutScoreboardScore;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutScoreboardTeam;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutServerDifficulty;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSetCooldown;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSetSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntityExperienceOrb;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntityLiving;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntityPainting;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntityWeather;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnPosition;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutStatistic;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTabComplete;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTileEntityData;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTitle;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTransaction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUnloadChunk;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUpdateAttributes;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUpdateHealth;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUpdateTime;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutVehicleMove;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutWindowData;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutWindowItems;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutWorldBorder;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutWorldEvent;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutWorldParticles;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusInListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusInPing;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusInStart;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusOutListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusOutPong;
|
||||
import net.minecraft.server.v1_11_R1.PacketStatusOutServerInfo;
|
||||
|
||||
public class SPacketListener
|
||||
extends VPacketListener
|
||||
implements PacketListenerPlayIn,
|
||||
PacketListenerPlayOut,
|
||||
PacketStatusInListener,
|
||||
PacketStatusOutListener,
|
||||
PacketLoginInListener,
|
||||
PacketLoginOutListener,
|
||||
PacketHandshakingInListener {
|
||||
public void a(PacketPlayInUseItem packet) {
|
||||
this.handleIn(packet, new SPacketPlayInUseItem());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWindowData packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTransaction packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutTransaction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInUseEntity packet) {
|
||||
this.handleIn(packet, new SPacketPlayInUseEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInKeepAlive packet) {
|
||||
this.handleIn(packet, new SPacketPlayInKeepAlive());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInUpdateSign packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityLiving packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnEntityLiving());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInVehicleMove packet) {
|
||||
this.handleIn(packet, new SPacketPlayInVehicleMove());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockChange packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInEnchantItem packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityHeadRotation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutVehicleMove packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSetSlot packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSetSlot());
|
||||
}
|
||||
|
||||
public SPacketListener(PlayerData playerData) {
|
||||
super(playerData);
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateAttributes packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutUpdateAttributes());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityPainting packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockBreakAnimation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutOpenWindow packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutOpenWindow());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityVelocity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityVelocity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardDisplayObjective packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardScore packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateTime packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInChat packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTeleportAccept packet) {
|
||||
this.handleIn(packet, new SPacketPlayInTeleportAccept());
|
||||
}
|
||||
|
||||
public void a(PacketLoginInEncryptionBegin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSetCooldown packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityEffect packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityEffect());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInHeldItemSlot packet) {
|
||||
this.handleIn(packet, new SPacketPlayInHeldItemSlot());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMapChunk packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutKeepAlive packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutKeepAlive());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBoss packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInArmAnimation packet) {
|
||||
this.handleIn(packet, new SPacketPlayInArmAnimation());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTabComplete packet) {
|
||||
}
|
||||
|
||||
public void a(PacketStatusInPing packet) {
|
||||
}
|
||||
|
||||
public void a(PacketHandshakingInSetProtocol packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCloseWindow packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInFlying packet) {
|
||||
this.handleIn(packet, new SPacketPlayInFlying());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityStatus packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutLogin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutRespawn packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutRespawn());
|
||||
}
|
||||
|
||||
public void a(PacketStatusInStart packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutExplosion packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutExplosion());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCustomPayload packet) {
|
||||
}
|
||||
|
||||
public void a(PacketStatusOutPong packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityTeleport packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityTeleport());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMap packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginInStart packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWindowItems packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInEntityAction packet) {
|
||||
this.handleIn(packet, new SPacketPlayInEntityAction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutExperience packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutHeldItemSlot packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInWindowClick packet) {
|
||||
this.handleIn(packet, new SPacketPlayInWindowClick());
|
||||
}
|
||||
|
||||
public <T extends PacketListener> void processTyped(Packet<T> packet) {
|
||||
if (packet instanceof PacketPlayInCustomPayload) {
|
||||
this.a((PacketPlayInCustomPayload)packet);
|
||||
} else {
|
||||
packet.a(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAbilities packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutAbilities());
|
||||
}
|
||||
|
||||
public void a(IChatBaseComponent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityExperienceOrb packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldEvent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutOpenSignEditor packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInCustomPayload packet) {
|
||||
this.handleIn(packet, new SPacketPlayInCustomPayload());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutRemoveEntityEffect packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutRemoveEntityEffect());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldParticles packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnPosition packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnPosition());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityWeather packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardObjective packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInClientCommand packet) {
|
||||
this.handleIn(packet, new SPacketPlayInClientCommand());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockAction packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCustomSoundEffect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSteerVehicle packet) {
|
||||
this.handleIn(packet, new SPacketPlayInSteerVehicle());
|
||||
}
|
||||
|
||||
public void a(PacketStatusOutServerInfo packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutNamedEntitySpawn packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutNamedEntitySpawn());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTileEntityData packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutDisconnect packet) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(Object obj) {
|
||||
if (obj instanceof Packet) {
|
||||
this.processTyped((Packet)obj);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutStatistic packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTitle packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateHealth packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutServerDifficulty packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUnloadChunk packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPlayerInfo packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutKickDisconnect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutEncryptionBegin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCamera packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityEquipment packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutChat packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutSetCompression packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBlockDig packet) {
|
||||
this.handleIn(packet, new SPacketPlayInBlockDig());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInResourcePackStatus packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityMetadata packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityMetadata());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAttachEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutAttachEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBlockPlace packet) {
|
||||
this.handleIn(packet, new SPacketPlayInBlockPlace());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCollect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTabComplete packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldBorder packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInCloseWindow packet) {
|
||||
this.handleIn(packet, new SPacketPlayInCloseWindow());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBoatMove packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInAbilities packet) {
|
||||
this.handleIn(packet, new SPacketPlayInAbilities());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCombatEvent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPlayerListHeaderFooter packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPosition packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutPosition());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSpectate packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutResourcePackSend packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSetCreativeSlot packet) {
|
||||
this.handleIn(packet, new SPacketPlayInSetCreativeSlot());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutGameStateChange packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutGameStateChange());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTransaction packet) {
|
||||
this.handleIn(packet, new SPacketPlayInTransaction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAnimation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSettings packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardTeam packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutSuccess packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutNamedSoundEffect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityDestroy packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityDestroy());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMultiBlockChange packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBed packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMount packet) {
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.api.wrapper.PlayerAbilities;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInAbilities;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInAbilities;
|
||||
|
||||
public class SPacketPlayInAbilities extends VPacketPlayInAbilities<PacketPlayInAbilities> {
|
||||
private static final Field e_field = SafeReflection.access(PacketPlayInAbilities.class, "e");
|
||||
private static final Field f_field = SafeReflection.access(PacketPlayInAbilities.class, "f");
|
||||
|
||||
public void accept(PacketPlayInAbilities packet) {
|
||||
this.abilities = new PlayerAbilities(
|
||||
packet.a(), packet.isFlying(), packet.c(), packet.d(), SafeReflection.<Float>fetch(e_field, packet), SafeReflection.<Float>fetch(f_field, packet)
|
||||
);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInArmAnimation;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInArmAnimation;
|
||||
|
||||
public class SPacketPlayInArmAnimation extends VPacketPlayInArmAnimation<PacketPlayInArmAnimation> {
|
||||
public void accept(PacketPlayInArmAnimation packet) {
|
||||
this.hand = packet.a().ordinal();
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.api.wrapper.BlockPosition;
|
||||
import me.levansj01.verus.compat.api.wrapper.Direction;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInBlockDig;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInBlockDig;
|
||||
|
||||
public class SPacketPlayInBlockDig extends VPacketPlayInBlockDig<PacketPlayInBlockDig> {
|
||||
public void accept(PacketPlayInBlockDig packet) {
|
||||
this.blockPosition = new BlockPosition(packet.a().getX(), packet.a().getY(), packet.a().getZ());
|
||||
this.face = Direction.values()[packet.b().ordinal()];
|
||||
this.type = VPacketPlayInBlockDig.PlayerDigType.values()[packet.c().ordinal()];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInBlockPlace;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace;
|
||||
|
||||
public class SPacketPlayInBlockPlace extends VPacketPlayInBlockPlace<PacketPlayInBlockPlace> {
|
||||
public void accept(PacketPlayInBlockPlace packet) {
|
||||
this.timestamp = packet.timestamp;
|
||||
this.empty = true;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInChat;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInChat;
|
||||
|
||||
public class SPacketPlayInChat extends VPacketPlayInChat<PacketPlayInChat> {
|
||||
public void accept(PacketPlayInChat packet) {
|
||||
this.message = packet.a();
|
||||
this.command = this.message.startsWith("!");
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInClientCommand;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInClientCommand;
|
||||
|
||||
public class SPacketPlayInClientCommand extends VPacketPlayInClientCommand<PacketPlayInClientCommand> {
|
||||
public void accept(PacketPlayInClientCommand packet) {
|
||||
this.command = VPacketPlayInClientCommand.ClientCommand.values()[packet.a().ordinal()];
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInCloseWindow;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInCloseWindow;
|
||||
|
||||
public class SPacketPlayInCloseWindow extends VPacketPlayInCloseWindow<PacketPlayInCloseWindow> {
|
||||
private static final Field window_field = SafeReflection.access(PacketPlayInCloseWindow.class, "id");
|
||||
|
||||
public void accept(PacketPlayInCloseWindow packet) {
|
||||
this.window = SafeReflection.<Integer>fetch(window_field, packet);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInCustomPayload;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInCustomPayload;
|
||||
|
||||
public class SPacketPlayInCustomPayload extends VPacketPlayInCustomPayload<PacketPlayInCustomPayload> {
|
||||
public void accept(PacketPlayInCustomPayload packet) {
|
||||
this.channel = packet.a();
|
||||
|
||||
try {
|
||||
this.size = packet.b().capacity();
|
||||
} catch (IllegalStateException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInEntityAction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInEntityAction;
|
||||
|
||||
public class SPacketPlayInEntityAction extends VPacketPlayInEntityAction<PacketPlayInEntityAction> {
|
||||
public void accept(PacketPlayInEntityAction packet) {
|
||||
switch (packet.b()) {
|
||||
case START_SNEAKING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_SNEAKING;
|
||||
break;
|
||||
case STOP_SNEAKING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SNEAKING;
|
||||
break;
|
||||
case STOP_SLEEPING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SLEEPING;
|
||||
break;
|
||||
case START_SPRINTING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_SPRINTING;
|
||||
break;
|
||||
case STOP_SPRINTING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SPRINTING;
|
||||
break;
|
||||
case START_RIDING_JUMP:
|
||||
case STOP_RIDING_JUMP:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.RIDING_JUMP;
|
||||
break;
|
||||
case OPEN_INVENTORY:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.OPEN_INVENTORY;
|
||||
break;
|
||||
case START_FALL_FLYING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_FALL_FLYING;
|
||||
}
|
||||
|
||||
this.value = packet.c();
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInFlying;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInFlying;
|
||||
|
||||
public class SPacketPlayInFlying extends VPacketPlayInFlying<PacketPlayInFlying> {
|
||||
private static final Field field_hasPos = SafeReflection.access(PacketPlayInFlying.class, "hasPos");
|
||||
private static final Field field_hasLook = SafeReflection.access(PacketPlayInFlying.class, "hasLook");
|
||||
|
||||
public void accept(PacketPlayInFlying packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = SafeReflection.<Boolean>fetch(field_hasPos, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(field_hasLook, packet);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInHeldItemSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInHeldItemSlot;
|
||||
|
||||
public class SPacketPlayInHeldItemSlot extends VPacketPlayInHeldItemSlot<PacketPlayInHeldItemSlot> {
|
||||
public void accept(PacketPlayInHeldItemSlot packet) {
|
||||
this.slot = packet.a();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInKeepAlive;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInKeepAlive;
|
||||
|
||||
public class SPacketPlayInKeepAlive extends VPacketPlayInKeepAlive<PacketPlayInKeepAlive> {
|
||||
public void accept(PacketPlayInKeepAlive packet) {
|
||||
this.id = BigInteger.valueOf(packet.a());
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInLook;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInFlying.PacketPlayInLook;
|
||||
|
||||
public class SPacketPlayInLook extends VPacketPlayInLook<PacketPlayInLook> {
|
||||
public void accept(PacketPlayInLook packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = false;
|
||||
this.look = true;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInPosition;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInFlying.PacketPlayInPosition;
|
||||
|
||||
public class SPacketPlayInPosition extends VPacketPlayInPosition<PacketPlayInPosition> {
|
||||
public void accept(PacketPlayInPosition packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = true;
|
||||
this.look = false;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInPositionLook;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInFlying.PacketPlayInPositionLook;
|
||||
|
||||
public class SPacketPlayInPositionLook extends VPacketPlayInPositionLook<PacketPlayInPositionLook> {
|
||||
public void accept(PacketPlayInPositionLook packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = true;
|
||||
this.look = true;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInSetCreativeSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSetCreativeSlot;
|
||||
|
||||
public class SPacketPlayInSetCreativeSlot extends VPacketPlayInSetCreativeSlot<PacketPlayInSetCreativeSlot> {
|
||||
public void accept(PacketPlayInSetCreativeSlot packet) {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInSteerVehicle;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInSteerVehicle;
|
||||
|
||||
public class SPacketPlayInSteerVehicle extends VPacketPlayInSteerVehicle<PacketPlayInSteerVehicle> {
|
||||
public void accept(PacketPlayInSteerVehicle packet) {
|
||||
this.forward = packet.a();
|
||||
this.strafe = packet.b();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInTeleportAccept;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInTeleportAccept;
|
||||
|
||||
public class SPacketPlayInTeleportAccept extends VPacketPlayInTeleportAccept<PacketPlayInTeleportAccept> {
|
||||
public void accept(PacketPlayInTeleportAccept packet) {
|
||||
this.id = packet.a();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInTransaction;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInTransaction;
|
||||
|
||||
public class SPacketPlayInTransaction extends VPacketPlayInTransaction<PacketPlayInTransaction> {
|
||||
public void accept(PacketPlayInTransaction packet) {
|
||||
this.id = packet.b();
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInUseEntity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUseEntity;
|
||||
import net.minecraft.server.v1_11_R1.Vec3D;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.CraftWorld;
|
||||
import org.bukkit.entity.Entity;
|
||||
|
||||
public class SPacketPlayInUseEntity extends VPacketPlayInUseEntity<PacketPlayInUseEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayInUseEntity.class, "a", "id");
|
||||
private boolean fetchedEntity;
|
||||
|
||||
public void accept(PacketPlayInUseEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.action = VPacketPlayInUseEntity.EntityUseAction.values()[packet.a().ordinal()];
|
||||
if (this.action == VPacketPlayInUseEntity.EntityUseAction.INTERACT_AT) {
|
||||
Vec3D vec = packet.c();
|
||||
this.bodyX = vec.x;
|
||||
this.bodyY = vec.y;
|
||||
this.bodyZ = vec.z;
|
||||
} else {
|
||||
this.bodyX = this.bodyY = this.bodyZ = 0.0;
|
||||
}
|
||||
|
||||
this.fetchedEntity = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getEntity(World world) {
|
||||
if (!this.fetchedEntity) {
|
||||
net.minecraft.server.v1_11_R1.Entity entity = ((CraftWorld)world).getHandle().getEntity(this.id);
|
||||
if (entity == null) {
|
||||
this.entity = new WeakReference<>(null);
|
||||
} else {
|
||||
this.entity = new WeakReference<>(entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
this.fetchedEntity = true;
|
||||
}
|
||||
|
||||
return this.entity == null ? null : this.entity.get();
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.api.wrapper.BlockPosition;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInUseItem;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUseItem;
|
||||
|
||||
public class SPacketPlayInUseItem extends VPacketPlayInUseItem<PacketPlayInUseItem> {
|
||||
public void accept(PacketPlayInUseItem packet) {
|
||||
this.position = new BlockPosition(packet.a().getX(), packet.a().getY(), packet.a().getZ());
|
||||
this.face = packet.b().ordinal();
|
||||
this.blockX = packet.d();
|
||||
this.blockY = packet.e();
|
||||
this.blockZ = packet.f();
|
||||
this.timestamp = packet.timestamp;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInVehicleMove;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInVehicleMove;
|
||||
|
||||
public class SPacketPlayInVehicleMove extends VPacketPlayInVehicleMove<PacketPlayInVehicleMove> {
|
||||
public void accept(PacketPlayInVehicleMove packet) {
|
||||
this.x = packet.getZ();
|
||||
this.y = packet.getY();
|
||||
this.z = packet.getZ();
|
||||
this.yaw = packet.getYaw();
|
||||
this.pitch = packet.getPitch();
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInWindowClick;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInWindowClick;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.inventory.CraftItemStack;
|
||||
|
||||
public class SPacketPlayInWindowClick extends VPacketPlayInWindowClick<PacketPlayInWindowClick> {
|
||||
public void accept(PacketPlayInWindowClick packet) {
|
||||
this.slot = packet.b();
|
||||
this.window = packet.a();
|
||||
this.button = packet.c();
|
||||
this.mode = packet.f().ordinal();
|
||||
this.itemStack = CraftItemStack.asBukkitCopy(packet.e());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isChest() {
|
||||
return this.window != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItem() {
|
||||
return this.itemStack != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isShiftClick() {
|
||||
return this.isChest() && this.mode == 1 && this.button < 2;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutAbilities;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutAbilities;
|
||||
|
||||
public class SPacketPlayOutAbilities extends VPacketPlayOutAbilities<PacketPlayOutAbilities> {
|
||||
private static final Field e_field = SafeReflection.access(PacketPlayOutAbilities.class, "e");
|
||||
private static final Field f_field = SafeReflection.access(PacketPlayOutAbilities.class, "f");
|
||||
|
||||
public void accept(PacketPlayOutAbilities packet) {
|
||||
this.isInvulnerable = packet.a();
|
||||
this.isFlying = packet.b();
|
||||
this.canFly = packet.c();
|
||||
this.canInstantlyBuild = packet.d();
|
||||
this.walkSpeed = SafeReflection.<Float>fetch(e_field, packet);
|
||||
this.flySpeed = SafeReflection.<Float>fetch(f_field, packet);
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutAttachEntity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutAttachEntity;
|
||||
|
||||
public class SPacketPlayOutAttachEntity extends VPacketPlayOutAttachEntity<PacketPlayOutAttachEntity> {
|
||||
private static final Field a_field = SafeReflection.access(PacketPlayOutAttachEntity.class, "a");
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutAttachEntity.class, "b");
|
||||
|
||||
public void accept(PacketPlayOutAttachEntity packet) {
|
||||
this.leash = 0;
|
||||
this.entityId = SafeReflection.<Integer>fetch(a_field, packet);
|
||||
this.attachId = SafeReflection.<Integer>fetch(b_field, packet);
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMove;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook;
|
||||
|
||||
public class SPacketPlayOutEntity extends VPacketPlayOutEntity<PacketPlayOutEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntity.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutEntity.class, "b");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutEntity.class, "c");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutEntity.class, "d");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutEntity.class, "e");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutEntity.class, "f");
|
||||
private static final Field ground_field = SafeReflection.access(PacketPlayOutEntity.class, "g");
|
||||
private static final Field look_field = SafeReflection.access(PacketPlayOutEntity.class, "h");
|
||||
|
||||
public void accept(PacketPlayOutEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Integer>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Integer>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Integer>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
this.ground = SafeReflection.<Boolean>fetch(ground_field, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(look_field, packet);
|
||||
this.pos = packet instanceof PacketPlayOutRelEntityMoveLook || packet instanceof PacketPlayOutRelEntityMove;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityDestroy;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityDestroy;
|
||||
|
||||
public class SPacketPlayOutEntityDestroy extends VPacketPlayOutEntityDestroy<PacketPlayOutEntityDestroy> {
|
||||
private static final Field ids_field = SafeReflection.access(PacketPlayOutEntityDestroy.class, "a");
|
||||
|
||||
public void accept(PacketPlayOutEntityDestroy packet) {
|
||||
this.ids = SafeReflection.fetch(ids_field, packet);
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityEffect;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityEffect;
|
||||
|
||||
public class SPacketPlayOutEntityEffect extends VPacketPlayOutEntityEffect<PacketPlayOutEntityEffect> {
|
||||
private static final Field a_field = SafeReflection.access(PacketPlayOutEntityEffect.class, "a");
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutEntityEffect.class, "b");
|
||||
private static final Field c_field = SafeReflection.access(PacketPlayOutEntityEffect.class, "c");
|
||||
private static final Field d_field = SafeReflection.access(PacketPlayOutEntityEffect.class, "d");
|
||||
private static final Field e_field = SafeReflection.access(PacketPlayOutEntityEffect.class, "e");
|
||||
|
||||
public void accept(PacketPlayOutEntityEffect packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(a_field, packet);
|
||||
this.effect = SafeReflection.<Byte>fetch(b_field, packet);
|
||||
this.amplifier = SafeReflection.<Byte>fetch(c_field, packet);
|
||||
this.duration = SafeReflection.<Integer>fetch(d_field, packet);
|
||||
this.flags = SafeReflection.<Byte>fetch(e_field, packet);
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityLook;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity;
|
||||
|
||||
public class SPacketPlayOutEntityLook extends VPacketPlayOutEntityLook<PacketPlayOutEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntity.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutEntity.class, "b");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutEntity.class, "c");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutEntity.class, "d");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutEntity.class, "e");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutEntity.class, "f");
|
||||
private static final Field ground_field = SafeReflection.access(PacketPlayOutEntity.class, "g");
|
||||
private static final Field look_field = SafeReflection.access(PacketPlayOutEntity.class, "h");
|
||||
|
||||
public void accept(PacketPlayOutEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Integer>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Integer>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Integer>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
this.ground = SafeReflection.<Boolean>fetch(ground_field, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(look_field, packet);
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.List;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityMetadata;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.DataWatcherObject;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_11_R1.DataWatcher.Item;
|
||||
|
||||
public class SPacketPlayOutEntityMetadata extends VPacketPlayOutEntityMetadata<PacketPlayOutEntityMetadata> {
|
||||
private static final Field a_field = SafeReflection.access(PacketPlayOutEntityMetadata.class, "a");
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutEntityMetadata.class, "b");
|
||||
|
||||
public void accept(PacketPlayOutEntityMetadata packet) {
|
||||
List<Item> list = SafeReflection.fetch(b_field, packet);
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for (Item item : list) {
|
||||
DataWatcherObject dataWatcherObject = item.a();
|
||||
this.values.add(new VPacketPlayOutEntityMetadata.MetadataValue(dataWatcherObject.a(), item.b()));
|
||||
}
|
||||
}
|
||||
|
||||
this.entityId = SafeReflection.<Integer>fetch(a_field, packet);
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityTeleport;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityTeleport;
|
||||
|
||||
public class SPacketPlayOutEntityTeleport extends VPacketPlayOutEntityTeleport<PacketPlayOutEntityTeleport> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "b");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "c");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "d");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "e");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "f");
|
||||
private static final Field ground_field = SafeReflection.access(PacketPlayOutEntityTeleport.class, "g");
|
||||
|
||||
public void accept(PacketPlayOutEntityTeleport packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Double>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Double>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Double>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
this.ground = SafeReflection.<Boolean>fetch(ground_field, packet);
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutEntityVelocity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntityVelocity;
|
||||
|
||||
public class SPacketPlayOutEntityVelocity extends VPacketPlayOutEntityVelocity<PacketPlayOutEntityVelocity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntityVelocity.class, "a", "id");
|
||||
private static final Field motX_field = SafeReflection.access(PacketPlayOutEntityVelocity.class, "b", "x");
|
||||
private static final Field motY_field = SafeReflection.access(PacketPlayOutEntityVelocity.class, "c", "y");
|
||||
private static final Field motZ_field = SafeReflection.access(PacketPlayOutEntityVelocity.class, "d", "z");
|
||||
|
||||
public void accept(PacketPlayOutEntityVelocity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.motX = SafeReflection.<Integer>fetch(motX_field, packet);
|
||||
this.motY = SafeReflection.<Integer>fetch(motY_field, packet);
|
||||
this.motZ = SafeReflection.<Integer>fetch(motZ_field, packet);
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutExplosion;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutExplosion;
|
||||
|
||||
public class SPacketPlayOutExplosion extends VPacketPlayOutExplosion<PacketPlayOutExplosion> {
|
||||
private static final Field motX_field = SafeReflection.access(PacketPlayOutExplosion.class, "f");
|
||||
private static final Field motY_field = SafeReflection.access(PacketPlayOutExplosion.class, "g");
|
||||
private static final Field motZ_field = SafeReflection.access(PacketPlayOutExplosion.class, "h");
|
||||
|
||||
public void accept(PacketPlayOutExplosion packet) {
|
||||
this.motX = SafeReflection.<Float>fetch(motX_field, packet);
|
||||
this.motY = SafeReflection.<Float>fetch(motY_field, packet);
|
||||
this.motZ = SafeReflection.<Float>fetch(motZ_field, packet);
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutGameStateChange;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutGameStateChange;
|
||||
|
||||
public class SPacketPlayOutGameStateChange extends VPacketPlayOutGameStateChange<PacketPlayOutGameStateChange> {
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutGameStateChange.class, "b");
|
||||
private static final Field c_field = SafeReflection.access(PacketPlayOutGameStateChange.class, "c");
|
||||
|
||||
public void accept(PacketPlayOutGameStateChange packet) {
|
||||
this.setting = SafeReflection.<Integer>fetch(b_field, packet);
|
||||
this.value = SafeReflection.<Float>fetch(c_field, packet);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.math.BigInteger;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutKeepAlive;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutKeepAlive;
|
||||
|
||||
public class SPacketPlayOutKeepAlive extends VPacketPlayOutKeepAlive<PacketPlayOutKeepAlive> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutKeepAlive.class, "a");
|
||||
|
||||
public void accept(PacketPlayOutKeepAlive packet) {
|
||||
this.id = BigInteger.valueOf(SafeReflection.<Integer>fetch(id_field, packet).longValue());
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutNamedEntitySpawn;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutNamedEntitySpawn;
|
||||
|
||||
public class SPacketPlayOutNamedEntitySpawn extends VPacketPlayOutNamedEntitySpawn<PacketPlayOutNamedEntitySpawn> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "c");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "d");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "e");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "f");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutNamedEntitySpawn.class, "g");
|
||||
|
||||
public void accept(PacketPlayOutNamedEntitySpawn packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Double>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Double>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Double>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutOpenWindow;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutOpenWindow;
|
||||
|
||||
public class SPacketPlayOutOpenWindow extends VPacketPlayOutOpenWindow<PacketPlayOutOpenWindow> {
|
||||
public void accept(PacketPlayOutOpenWindow packet) {
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutPosition;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutPosition;
|
||||
|
||||
public class SPacketPlayOutPosition extends VPacketPlayOutPosition<PacketPlayOutPosition> {
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutPosition.class, "a", "x");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutPosition.class, "b", "y");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutPosition.class, "c", "z");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutPosition.class, "d", "yaw");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutPosition.class, "e", "pitch");
|
||||
private static final Field flags_field = SafeReflection.access(PacketPlayOutPosition.class, "f", "flags");
|
||||
|
||||
public void accept(PacketPlayOutPosition packet) {
|
||||
this.x = SafeReflection.<Double>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Double>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Double>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Float>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Float>fetch(pitch_field, packet);
|
||||
this.flags = SafeReflection.fetch(flags_field, packet);
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutRelEntityMove;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity;
|
||||
|
||||
public class SPacketPlayOutRelEntityMove extends VPacketPlayOutRelEntityMove<PacketPlayOutEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntity.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutEntity.class, "b");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutEntity.class, "c");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutEntity.class, "d");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutEntity.class, "e");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutEntity.class, "f");
|
||||
private static final Field ground_field = SafeReflection.access(PacketPlayOutEntity.class, "g");
|
||||
private static final Field look_field = SafeReflection.access(PacketPlayOutEntity.class, "h");
|
||||
|
||||
public void accept(PacketPlayOutEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Integer>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Integer>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Integer>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
this.ground = SafeReflection.<Boolean>fetch(ground_field, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(look_field, packet);
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutRelEntityMoveLook;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutEntity;
|
||||
|
||||
public class SPacketPlayOutRelEntityMoveLook extends VPacketPlayOutRelEntityMoveLook<PacketPlayOutEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutEntity.class, "a");
|
||||
private static final Field x_field = SafeReflection.access(PacketPlayOutEntity.class, "b");
|
||||
private static final Field y_field = SafeReflection.access(PacketPlayOutEntity.class, "c");
|
||||
private static final Field z_field = SafeReflection.access(PacketPlayOutEntity.class, "d");
|
||||
private static final Field yaw_field = SafeReflection.access(PacketPlayOutEntity.class, "e");
|
||||
private static final Field pitch_field = SafeReflection.access(PacketPlayOutEntity.class, "f");
|
||||
private static final Field ground_field = SafeReflection.access(PacketPlayOutEntity.class, "g");
|
||||
private static final Field look_field = SafeReflection.access(PacketPlayOutEntity.class, "h");
|
||||
|
||||
public void accept(PacketPlayOutEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.x = SafeReflection.<Integer>fetch(x_field, packet);
|
||||
this.y = SafeReflection.<Integer>fetch(y_field, packet);
|
||||
this.z = SafeReflection.<Integer>fetch(z_field, packet);
|
||||
this.yaw = SafeReflection.<Byte>fetch(yaw_field, packet);
|
||||
this.pitch = SafeReflection.<Byte>fetch(pitch_field, packet);
|
||||
this.ground = SafeReflection.<Boolean>fetch(ground_field, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(look_field, packet);
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutRemoveEntityEffect;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.MobEffectList;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutRemoveEntityEffect;
|
||||
|
||||
public class SPacketPlayOutRemoveEntityEffect extends VPacketPlayOutRemoveEntityEffect<PacketPlayOutRemoveEntityEffect> {
|
||||
private static final Field a_field = SafeReflection.access(PacketPlayOutRemoveEntityEffect.class, "a");
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutRemoveEntityEffect.class, "b");
|
||||
|
||||
public void accept(PacketPlayOutRemoveEntityEffect packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(a_field, packet);
|
||||
this.effect = MobEffectList.getId(SafeReflection.fetch(b_field, packet));
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutRespawn;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.EnumGamemode;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutRespawn;
|
||||
import org.bukkit.GameMode;
|
||||
|
||||
public class SPacketPlayOutRespawn extends VPacketPlayOutRespawn<PacketPlayOutRespawn> {
|
||||
private static final Field c_field = SafeReflection.access(PacketPlayOutRespawn.class, "c");
|
||||
|
||||
public void accept(PacketPlayOutRespawn packet) {
|
||||
EnumGamemode enumGamemode = SafeReflection.fetch(c_field, packet);
|
||||
this.gameMode = GameMode.getByValue(enumGamemode.getId());
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutSetSlot;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSetSlot;
|
||||
|
||||
public class SPacketPlayOutSetSlot extends VPacketPlayOutSetSlot<PacketPlayOutSetSlot> {
|
||||
public void accept(PacketPlayOutSetSlot packet) {
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutSpawnEntity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntity;
|
||||
|
||||
public class SPacketPlayOutSpawnEntity extends VPacketPlayOutSpawnEntity<PacketPlayOutSpawnEntity> {
|
||||
private static final Field PacketPlayOutSpawnEntity_a = SafeReflection.access(PacketPlayOutSpawnEntity.class, "a");
|
||||
|
||||
public void accept(PacketPlayOutSpawnEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(PacketPlayOutSpawnEntity_a, packet);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutSpawnEntityLiving;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnEntityLiving;
|
||||
|
||||
public class SPacketPlayOutSpawnEntityLiving extends VPacketPlayOutSpawnEntityLiving<PacketPlayOutSpawnEntityLiving> {
|
||||
private static final Field PacketPlayOutSpawnEntityLiving_a = SafeReflection.access(PacketPlayOutSpawnEntityLiving.class, "a");
|
||||
|
||||
public void accept(PacketPlayOutSpawnEntityLiving packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(PacketPlayOutSpawnEntityLiving_a, packet);
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.api.wrapper.BlockPosition;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutSpawnPosition;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutSpawnPosition;
|
||||
|
||||
public class SPacketPlayOutSpawnPosition extends VPacketPlayOutSpawnPosition<PacketPlayOutSpawnPosition> {
|
||||
public void accept(PacketPlayOutSpawnPosition packet) {
|
||||
this.position = new BlockPosition(packet.position.getX(), packet.position.getY(), packet.position.getZ());
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutTransaction;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutTransaction;
|
||||
|
||||
public class SPacketPlayOutTransaction extends VPacketPlayOutTransaction<PacketPlayOutTransaction> {
|
||||
private static final Field window_field = SafeReflection.access(PacketPlayOutTransaction.class, "a");
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayOutTransaction.class, "b");
|
||||
private static final Field accepted_field = SafeReflection.access(PacketPlayOutTransaction.class, "c");
|
||||
|
||||
public void accept(PacketPlayOutTransaction packet) {
|
||||
this.window = SafeReflection.<Integer>fetch(window_field, packet);
|
||||
this.id = SafeReflection.<Short>fetch(id_field, packet);
|
||||
this.accepted = SafeReflection.<Boolean>fetch(accepted_field, packet);
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package me.levansj01.verus.compat.v1_11_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.List;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayOutUpdateAttributes;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_11_R1.AttributeModifier;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUpdateAttributes;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayOutUpdateAttributes.AttributeSnapshot;
|
||||
|
||||
public class SPacketPlayOutUpdateAttributes extends VPacketPlayOutUpdateAttributes<PacketPlayOutUpdateAttributes> {
|
||||
private static final Field a_field = SafeReflection.access(PacketPlayOutUpdateAttributes.class, "a");
|
||||
private static final Field b_field = SafeReflection.access(PacketPlayOutUpdateAttributes.class, "b");
|
||||
|
||||
public void accept(PacketPlayOutUpdateAttributes packet) {
|
||||
this.entityId = SafeReflection.<Integer>fetch(a_field, packet);
|
||||
|
||||
for (AttributeSnapshot attributeSnapshot : (List<AttributeSnapshot>)SafeReflection.fetch(b_field, packet)) {
|
||||
VPacketPlayOutUpdateAttributes.Snapshot snapshot = new VPacketPlayOutUpdateAttributes.Snapshot(attributeSnapshot.a(), attributeSnapshot.b());
|
||||
|
||||
for (AttributeModifier attributeModifier : (Iterable<AttributeModifier>)attributeSnapshot.c()) {
|
||||
snapshot.getModifiers().add(new VPacketPlayOutUpdateAttributes.Snapshot.Modifier(attributeModifier.b(), attributeModifier.d(), attributeModifier.c()));
|
||||
}
|
||||
|
||||
this.snapshots.add(snapshot);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,282 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1;
|
||||
|
||||
import io.netty.channel.Channel;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import me.levansj01.verus.compat.api.wrapper.PlayerAbilities;
|
||||
import me.levansj01.verus.data.PlayerData;
|
||||
import me.levansj01.verus.data.version.ClientVersion;
|
||||
import me.levansj01.verus.util.Cuboid;
|
||||
import me.levansj01.verus.util.IBlockPosition;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_12_R1.AxisAlignedBB;
|
||||
import net.minecraft.server.v1_12_R1.Block;
|
||||
import net.minecraft.server.v1_12_R1.Blocks;
|
||||
import net.minecraft.server.v1_12_R1.EntityLiving;
|
||||
import net.minecraft.server.v1_12_R1.EntityPlayer;
|
||||
import net.minecraft.server.v1_12_R1.GenericAttributes;
|
||||
import net.minecraft.server.v1_12_R1.IBlockData;
|
||||
import net.minecraft.server.v1_12_R1.ITickable;
|
||||
import net.minecraft.server.v1_12_R1.MinecraftServer;
|
||||
import net.minecraft.server.v1_12_R1.MovingObjectPosition;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBlockChange;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutTransaction;
|
||||
import net.minecraft.server.v1_12_R1.PlayerConnection;
|
||||
import net.minecraft.server.v1_12_R1.Vec3D;
|
||||
import net.minecraft.server.v1_12_R1.WorldServer;
|
||||
import net.minecraft.server.v1_12_R1.BlockPosition.MutableBlockPosition;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftEntity;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.inventory.CraftInventoryPlayer;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.util.CraftMagicNumbers;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.material.MaterialData;
|
||||
|
||||
public class NMSManager extends me.levansj01.verus.compat.NMSManager<IBlockData> {
|
||||
private static final Field effects = SafeReflection.access(EntityLiving.class, "effects");
|
||||
private static final List<ITickable> list = SafeReflection.getLocalField(MinecraftServer.class, MinecraftServer.getServer(), new String[]{"o"});
|
||||
private final MutableBlockPosition blockPosition = new MutableBlockPosition();
|
||||
|
||||
@Override
|
||||
public Cuboid getBoundingBox(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData type = worldServer.getType(this.blockPosition);
|
||||
Block block2 = type.getBlock();
|
||||
AxisAlignedBB boundingBox = block2.b(type, worldServer, this.blockPosition);
|
||||
return new Cuboid(boundingBox.a, boundingBox.d, boundingBox.b, boundingBox.e, boundingBox.c, boundingBox.f);
|
||||
} else {
|
||||
return new Cuboid(block).add(new Cuboid(1.0, 1.0, 1.0));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFrictionFactor(org.bukkit.block.Block block) {
|
||||
return CraftMagicNumbers.getBlock(block).frictionFactor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inject(PlayerData playerData) {
|
||||
Channel channel = ((CraftPlayer)playerData.getPlayer()).getHandle().playerConnection.networkManager.channel;
|
||||
if (channel != null) {
|
||||
this.getNettyHandler().inject(channel, new SPacketListener(playerData));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getDamage(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
IBlockData type = worldServer.getType(this.blockPosition);
|
||||
return type.a(entityPlayer, worldServer, this.blockPosition);
|
||||
} else {
|
||||
return 0.0F;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGliding(Player player) {
|
||||
return ((CraftPlayer)player).isGliding();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Material getType(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
return worldServer.isLoaded(this.blockPosition) ? CraftMagicNumbers.getMaterial(worldServer.getType(this.blockPosition).getBlock()) : Material.AIR;
|
||||
}
|
||||
|
||||
public static NMSManager getInstance() {
|
||||
return (NMSManager)me.levansj01.verus.compat.NMSManager.getInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postToMainThread(Runnable runnable) {
|
||||
MinecraftServer.getServer().postToMainThread(runnable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setInWater(Player player, boolean water) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
boolean inWater = entityPlayer.inWater;
|
||||
entityPlayer.inWater = water;
|
||||
return inWater;
|
||||
}
|
||||
|
||||
public MaterialData toData(IBlockData data) {
|
||||
Block block = data.getBlock();
|
||||
return CraftMagicNumbers.getMaterial(block).getNewData((byte)block.toLegacyData(data));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAsyncPotionEffects(Player player) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
Map effects2 = entityPlayer.effects;
|
||||
if (effects2 instanceof HashMap) {
|
||||
SafeReflection.set(effects, entityPlayer, new ConcurrentHashMap(effects2));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRunning() {
|
||||
return MinecraftServer.getServer().isRunning();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ClientVersion defaultVersion() {
|
||||
return ClientVersion.V1_12;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendBlockUpdate(Player player, Location location) {
|
||||
this.sendBlockUpdate(player, location.getWorld(), location.getBlockX(), location.getBlockY(), location.getBlockZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getFrictionFactor(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
return worldServer.isLoaded(this.blockPosition) ? worldServer.getType(this.blockPosition).getBlock().frictionFactor : Blocks.AIR.frictionFactor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendTransaction(Player player, short id) {
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(new PacketPlayOutTransaction(0, id, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getOffHand(Player player) {
|
||||
return ((CraftInventoryPlayer)player.getInventory()).getItemInOffHand();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int versionNumber() {
|
||||
return 340;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(Player player) {
|
||||
Channel channel = ((CraftPlayer)player).getHandle().playerConnection.networkManager.channel;
|
||||
if (channel != null) {
|
||||
channel.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaterialData getTypeAndData(Player player, World world, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData type = worldServer.getType(this.blockPosition);
|
||||
return this.toData(type);
|
||||
} else {
|
||||
return new MaterialData(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Runnable scheduleEnd(Runnable runnable) {
|
||||
ITickable tickable = runnable::run;
|
||||
list.add(tickable);
|
||||
return () -> list.remove(tickable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setOnGround(Player player, boolean ground) {
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
boolean onGround = entityPlayer.onGround;
|
||||
entityPlayer.onGround = ground;
|
||||
return onGround;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendBlockUpdate(Player player, World world, int x, int y, int z) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(x, y, z);
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(new PacketPlayOutBlockChange(worldServer, this.blockPosition));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty(World world, Entity entity, Cuboid boundingBox, IBlockPosition block) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
this.blockPosition.c(block.getX(), block.getY(), block.getZ());
|
||||
if (worldServer.isLoaded(this.blockPosition)) {
|
||||
IBlockData type = worldServer.getType(this.blockPosition);
|
||||
AxisAlignedBB boundingBox2 = new AxisAlignedBB(boundingBox.getX1(), boundingBox.getY1(), boundingBox.getZ1(), boundingBox.getX2(), boundingBox.getY2(), boundingBox.getZ2());
|
||||
ArrayList list = new ArrayList(1);
|
||||
type.getBlock().a(type, worldServer, this.blockPosition, boundingBox2, list, ((CraftEntity)entity).getHandle(), false);
|
||||
return list.isEmpty();
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCurrentTick() {
|
||||
return MinecraftServer.currentTick;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getKnockbackResistance(Player player) {
|
||||
return ((CraftPlayer)player).getHandle().getAttributeInstance(GenericAttributes.c).getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMovementSpeed(Player player) {
|
||||
return ((CraftPlayer)player).getHandle().getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).getValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean rayTrace(
|
||||
World world, double x, double y, double z, double dX, double dY, double dZ, boolean b1, boolean b2, boolean b3
|
||||
) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
MovingObjectPosition movingObjectPosition = worldServer.rayTrace(new Vec3D(x, y, z), new Vec3D(dX, dY, dZ), b1, b2, b3);
|
||||
if (movingObjectPosition == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
IBlockData type = worldServer.getType(movingObjectPosition.a());
|
||||
return type.getBlock() != Blocks.END_PORTAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayerAbilities getAbilities(Player player) {
|
||||
net.minecraft.server.v1_12_R1.PlayerAbilities abilities = ((CraftPlayer)player).getHandle().abilities;
|
||||
return new PlayerAbilities(abilities.isInvulnerable, abilities.isFlying, abilities.canFly, abilities.canInstantlyBuild, abilities.mayBuild, abilities.a(), abilities.b());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updatePing(Player player, int ping) {
|
||||
((CraftPlayer)player).getHandle().ping = ping;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isLoaded(World world, int x, int z) {
|
||||
WorldServer worldServer = ((CraftWorld)world).getHandle();
|
||||
return worldServer.getChunkProviderServer().isLoaded(x >> 4, z >> 4);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uninject(PlayerData playerData) {
|
||||
PlayerConnection playerConnection = ((CraftPlayer)playerData.getPlayer()).getHandle().playerConnection;
|
||||
if (playerConnection != null && !playerConnection.isDisconnected()) {
|
||||
this.getNettyHandler().uninject(playerConnection.networkManager.channel);
|
||||
}
|
||||
}
|
||||
}
|
||||
+600
@@ -0,0 +1,600 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1;
|
||||
|
||||
import me.levansj01.verus.compat.api.VPacketListener;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInAbilities;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInArmAnimation;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInBlockDig;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInBlockPlace;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInClientCommand;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInCloseWindow;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInCustomPayload;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInEntityAction;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInFlying;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInHeldItemSlot;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInKeepAlive;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInSetCreativeSlot;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInSteerVehicle;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInTeleportAccept;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInTransaction;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInUseEntity;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInUseItem;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInVehicleMove;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayInWindowClick;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutAbilities;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutAttachEntity;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntity;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntityDestroy;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntityEffect;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntityMetadata;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntityTeleport;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutEntityVelocity;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutExplosion;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutGameStateChange;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutKeepAlive;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutNamedEntitySpawn;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutOpenWindow;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutPosition;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutRemoveEntityEffect;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutRespawn;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutSetSlot;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutSpawnEntity;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutSpawnEntityLiving;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutSpawnPosition;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutTransaction;
|
||||
import me.levansj01.verus.compat.v1_12_R1.packets.SPacketPlayOutUpdateAttributes;
|
||||
import me.levansj01.verus.data.PlayerData;
|
||||
import net.minecraft.server.v1_12_R1.IChatBaseComponent;
|
||||
import net.minecraft.server.v1_12_R1.Packet;
|
||||
import net.minecraft.server.v1_12_R1.PacketHandshakingInListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketHandshakingInSetProtocol;
|
||||
import net.minecraft.server.v1_12_R1.PacketListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketListenerPlayIn;
|
||||
import net.minecraft.server.v1_12_R1.PacketListenerPlayOut;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginInEncryptionBegin;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginInListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginInStart;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginOutDisconnect;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginOutEncryptionBegin;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginOutListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginOutSetCompression;
|
||||
import net.minecraft.server.v1_12_R1.PacketLoginOutSuccess;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInAbilities;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInAdvancements;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInAutoRecipe;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInBlockDig;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInBoatMove;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInChat;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInClientCommand;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInCloseWindow;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInCustomPayload;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInEnchantItem;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInEntityAction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInFlying;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInHeldItemSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInKeepAlive;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInRecipeDisplayed;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInResourcePackStatus;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSettings;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSpectate;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSteerVehicle;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInTabComplete;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInTeleportAccept;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInTransaction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUpdateSign;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUseEntity;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUseItem;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInVehicleMove;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInWindowClick;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutAbilities;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutAdvancements;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutAnimation;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutAttachEntity;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutAutoRecipe;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBed;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBlockAction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBlockBreakAnimation;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBlockChange;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutBoss;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCamera;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutChat;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCloseWindow;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCollect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCombatEvent;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCustomPayload;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutCustomSoundEffect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntity;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityDestroy;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityEffect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityEquipment;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityHeadRotation;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityStatus;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityTeleport;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutEntityVelocity;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutExperience;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutExplosion;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutGameStateChange;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutHeldItemSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutKeepAlive;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutKickDisconnect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutLogin;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutMap;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutMapChunk;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutMount;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutMultiBlockChange;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutNamedEntitySpawn;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutNamedSoundEffect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutOpenSignEditor;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutOpenWindow;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutPlayerInfo;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutPlayerListHeaderFooter;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutPosition;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutRecipes;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutRemoveEntityEffect;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutResourcePackSend;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutRespawn;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutScoreboardDisplayObjective;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutScoreboardObjective;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutScoreboardScore;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutScoreboardTeam;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSelectAdvancementTab;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutServerDifficulty;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSetCooldown;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSetSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnEntity;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnEntityExperienceOrb;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnEntityLiving;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnEntityPainting;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnEntityWeather;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutSpawnPosition;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutStatistic;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutTabComplete;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutTileEntityData;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutTitle;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutTransaction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutUnloadChunk;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutUpdateAttributes;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutUpdateHealth;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutUpdateTime;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutVehicleMove;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutWindowData;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutWindowItems;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutWorldBorder;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutWorldEvent;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayOutWorldParticles;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusInListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusInPing;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusInStart;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusOutListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusOutPong;
|
||||
import net.minecraft.server.v1_12_R1.PacketStatusOutServerInfo;
|
||||
|
||||
public class SPacketListener
|
||||
extends VPacketListener
|
||||
implements PacketListenerPlayIn,
|
||||
PacketListenerPlayOut,
|
||||
PacketStatusInListener,
|
||||
PacketStatusOutListener,
|
||||
PacketLoginInListener,
|
||||
PacketLoginOutListener,
|
||||
PacketHandshakingInListener {
|
||||
public void a(PacketPlayOutCollect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutServerDifficulty packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutEncryptionBegin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnPosition packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnPosition());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPosition packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutPosition());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTileEntityData packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityEffect packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityEffect());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutHeldItemSlot packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAttachEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutAttachEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMap packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutRemoveEntityEffect packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutRemoveEntityEffect());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInChat packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTransaction packet) {
|
||||
this.handleIn(packet, new SPacketPlayInTransaction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAutoRecipe packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardDisplayObjective packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityHeadRotation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWindowItems packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutKeepAlive packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutKeepAlive());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutKickDisconnect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInClientCommand packet) {
|
||||
this.handleIn(packet, new SPacketPlayInClientCommand());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMount packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCamera packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldBorder packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginInEncryptionBegin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInFlying packet) {
|
||||
this.handleIn(packet, new SPacketPlayInFlying());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutExplosion packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutExplosion());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTeleportAccept packet) {
|
||||
this.handleIn(packet, new SPacketPlayInTeleportAccept());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutRespawn packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutRespawn());
|
||||
}
|
||||
|
||||
public SPacketListener(PlayerData playerData) {
|
||||
super(playerData);
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSetSlot packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSetSlot());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutGameStateChange packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutGameStateChange());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInUseEntity packet) {
|
||||
this.handleIn(packet, new SPacketPlayInUseEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInRecipeDisplayed packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardTeam packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWindowData packet) {
|
||||
}
|
||||
|
||||
public void a(PacketStatusInStart packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInEntityAction packet) {
|
||||
this.handleIn(packet, new SPacketPlayInEntityAction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBed packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityLiving packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnEntityLiving());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityExperienceOrb packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginInStart packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSettings packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockBreakAnimation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBoatMove packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInKeepAlive packet) {
|
||||
this.handleIn(packet, new SPacketPlayInKeepAlive());
|
||||
}
|
||||
|
||||
public void a(PacketStatusInPing packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInVehicleMove packet) {
|
||||
this.handleIn(packet, new SPacketPlayInVehicleMove());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInHeldItemSlot packet) {
|
||||
this.handleIn(packet, new SPacketPlayInHeldItemSlot());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityPainting packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateAttributes packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutUpdateAttributes());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityVelocity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityVelocity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBlockDig packet) {
|
||||
this.handleIn(packet, new SPacketPlayInBlockDig());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutRecipes packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTitle packet) {
|
||||
}
|
||||
|
||||
public void a(IChatBaseComponent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTabComplete packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutResourcePackSend packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInAbilities packet) {
|
||||
this.handleIn(packet, new SPacketPlayInAbilities());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockChange packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInAdvancements packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCustomSoundEffect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutSpawnEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAbilities packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutAbilities());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSpectate packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCloseWindow packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBoss packet) {
|
||||
}
|
||||
|
||||
public void a(PacketStatusOutServerInfo packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutLogin packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutChat packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateTime packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUnloadChunk packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutOpenSignEditor packet) {
|
||||
}
|
||||
|
||||
public void a(PacketHandshakingInSetProtocol packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInUpdateSign packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldParticles packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMultiBlockChange packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInCloseWindow packet) {
|
||||
this.handleIn(packet, new SPacketPlayInCloseWindow());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSpawnEntityWeather packet) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(Object obj) {
|
||||
if (obj instanceof Packet) {
|
||||
this.processTyped((Packet)obj);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutOpenWindow packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutOpenWindow());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCombatEvent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutSuccess packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityDestroy packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityDestroy());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPlayerInfo packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutDisconnect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutMapChunk packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAnimation packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutVehicleMove packet) {
|
||||
}
|
||||
|
||||
public void a(PacketStatusOutPong packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInCustomPayload packet) {
|
||||
this.handleIn(packet, new SPacketPlayInCustomPayload());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutNamedEntitySpawn packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutNamedEntitySpawn());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutTransaction packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutTransaction());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInWindowClick packet) {
|
||||
this.handleIn(packet, new SPacketPlayInWindowClick());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInUseItem packet) {
|
||||
this.handleIn(packet, new SPacketPlayInUseItem());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSelectAdvancementTab packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityEquipment packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityMetadata packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityMetadata());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityTeleport packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntityTeleport());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutNamedSoundEffect packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutPlayerListHeaderFooter packet) {
|
||||
}
|
||||
|
||||
public void a(PacketLoginOutSetCompression packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardObjective packet) {
|
||||
}
|
||||
|
||||
public <T extends PacketListener> void processTyped(Packet<T> packet) {
|
||||
if (packet instanceof PacketPlayInCustomPayload) {
|
||||
this.a((PacketPlayInCustomPayload)packet);
|
||||
} else {
|
||||
packet.a(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutBlockAction packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutWorldEvent packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSetCreativeSlot packet) {
|
||||
this.handleIn(packet, new SPacketPlayInSetCreativeSlot());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInArmAnimation packet) {
|
||||
this.handleIn(packet, new SPacketPlayInArmAnimation());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutUpdateHealth packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInAutoRecipe packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInResourcePackStatus packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInBlockPlace packet) {
|
||||
this.handleIn(packet, new SPacketPlayInBlockPlace());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntity packet) {
|
||||
this.handleOut(packet, new SPacketPlayOutEntity());
|
||||
}
|
||||
|
||||
public void a(PacketPlayInSteerVehicle packet) {
|
||||
this.handleIn(packet, new SPacketPlayInSteerVehicle());
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutStatistic packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutExperience packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInTabComplete packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutAdvancements packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutSetCooldown packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayInEnchantItem packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutCustomPayload packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutScoreboardScore packet) {
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutEntityStatus packet) {
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.api.wrapper.PlayerAbilities;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInAbilities;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInAbilities;
|
||||
|
||||
public class SPacketPlayInAbilities extends VPacketPlayInAbilities<PacketPlayInAbilities> {
|
||||
private static final Field e_field = SafeReflection.access(PacketPlayInAbilities.class, "e");
|
||||
private static final Field f_field = SafeReflection.access(PacketPlayInAbilities.class, "f");
|
||||
|
||||
public void accept(PacketPlayInAbilities packet) {
|
||||
this.abilities = new PlayerAbilities(
|
||||
packet.a(), packet.isFlying(), packet.c(), packet.d(), SafeReflection.<Float>fetch(e_field, packet), SafeReflection.<Float>fetch(f_field, packet)
|
||||
);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInArmAnimation;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation;
|
||||
|
||||
public class SPacketPlayInArmAnimation extends VPacketPlayInArmAnimation<PacketPlayInArmAnimation> {
|
||||
public void accept(PacketPlayInArmAnimation packet) {
|
||||
this.hand = packet.a().ordinal();
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.api.wrapper.BlockPosition;
|
||||
import me.levansj01.verus.compat.api.wrapper.Direction;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInBlockDig;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInBlockDig;
|
||||
|
||||
public class SPacketPlayInBlockDig extends VPacketPlayInBlockDig<PacketPlayInBlockDig> {
|
||||
public void accept(PacketPlayInBlockDig packet) {
|
||||
this.blockPosition = new BlockPosition(packet.a().getX(), packet.a().getY(), packet.a().getZ());
|
||||
this.face = Direction.values()[packet.b().ordinal()];
|
||||
this.type = VPacketPlayInBlockDig.PlayerDigType.values()[packet.c().ordinal()];
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInBlockPlace;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace;
|
||||
|
||||
public class SPacketPlayInBlockPlace extends VPacketPlayInBlockPlace<PacketPlayInBlockPlace> {
|
||||
public void accept(PacketPlayInBlockPlace packet) {
|
||||
this.timestamp = packet.timestamp;
|
||||
this.empty = true;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInChat;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInChat;
|
||||
|
||||
public class SPacketPlayInChat extends VPacketPlayInChat<PacketPlayInChat> {
|
||||
public void accept(PacketPlayInChat packet) {
|
||||
this.message = packet.a();
|
||||
this.command = this.message.startsWith("!");
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInClientCommand;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInClientCommand;
|
||||
|
||||
public class SPacketPlayInClientCommand extends VPacketPlayInClientCommand<PacketPlayInClientCommand> {
|
||||
public void accept(PacketPlayInClientCommand packet) {
|
||||
this.command = VPacketPlayInClientCommand.ClientCommand.values()[packet.a().ordinal()];
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInCloseWindow;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInCloseWindow;
|
||||
|
||||
public class SPacketPlayInCloseWindow extends VPacketPlayInCloseWindow<PacketPlayInCloseWindow> {
|
||||
private static final Field window_field = SafeReflection.access(PacketPlayInCloseWindow.class, "id");
|
||||
|
||||
public void accept(PacketPlayInCloseWindow packet) {
|
||||
this.window = SafeReflection.<Integer>fetch(window_field, packet);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInCustomPayload;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInCustomPayload;
|
||||
|
||||
public class SPacketPlayInCustomPayload extends VPacketPlayInCustomPayload<PacketPlayInCustomPayload> {
|
||||
public void accept(PacketPlayInCustomPayload packet) {
|
||||
this.channel = packet.a();
|
||||
|
||||
try {
|
||||
this.size = packet.b().capacity();
|
||||
} catch (IllegalStateException ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInEntityAction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInEntityAction;
|
||||
|
||||
public class SPacketPlayInEntityAction extends VPacketPlayInEntityAction<PacketPlayInEntityAction> {
|
||||
public void accept(PacketPlayInEntityAction packet) {
|
||||
switch (packet.b()) {
|
||||
case START_SNEAKING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_SNEAKING;
|
||||
break;
|
||||
case STOP_SNEAKING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SNEAKING;
|
||||
break;
|
||||
case STOP_SLEEPING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SLEEPING;
|
||||
break;
|
||||
case START_SPRINTING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_SPRINTING;
|
||||
break;
|
||||
case STOP_SPRINTING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.STOP_SPRINTING;
|
||||
break;
|
||||
case START_RIDING_JUMP:
|
||||
case STOP_RIDING_JUMP:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.RIDING_JUMP;
|
||||
break;
|
||||
case OPEN_INVENTORY:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.OPEN_INVENTORY;
|
||||
break;
|
||||
case START_FALL_FLYING:
|
||||
this.action = VPacketPlayInEntityAction.PlayerAction.START_FALL_FLYING;
|
||||
}
|
||||
|
||||
this.value = packet.c();
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInFlying;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInFlying;
|
||||
|
||||
public class SPacketPlayInFlying extends VPacketPlayInFlying<PacketPlayInFlying> {
|
||||
private static final Field field_hasPos = SafeReflection.access(PacketPlayInFlying.class, "hasPos");
|
||||
private static final Field field_hasLook = SafeReflection.access(PacketPlayInFlying.class, "hasLook");
|
||||
|
||||
public void accept(PacketPlayInFlying packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = SafeReflection.<Boolean>fetch(field_hasPos, packet);
|
||||
this.look = SafeReflection.<Boolean>fetch(field_hasLook, packet);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInHeldItemSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInHeldItemSlot;
|
||||
|
||||
public class SPacketPlayInHeldItemSlot extends VPacketPlayInHeldItemSlot<PacketPlayInHeldItemSlot> {
|
||||
public void accept(PacketPlayInHeldItemSlot packet) {
|
||||
this.slot = packet.a();
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInKeepAlive;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInKeepAlive;
|
||||
|
||||
public class SPacketPlayInKeepAlive extends VPacketPlayInKeepAlive<PacketPlayInKeepAlive> {
|
||||
public void accept(PacketPlayInKeepAlive packet) {
|
||||
this.id = BigInteger.valueOf(packet.a());
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInLook;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInFlying.PacketPlayInLook;
|
||||
|
||||
public class SPacketPlayInLook extends VPacketPlayInLook<PacketPlayInLook> {
|
||||
public void accept(PacketPlayInLook packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = false;
|
||||
this.look = true;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInPosition;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInFlying.PacketPlayInPosition;
|
||||
|
||||
public class SPacketPlayInPosition extends VPacketPlayInPosition<PacketPlayInPosition> {
|
||||
public void accept(PacketPlayInPosition packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = true;
|
||||
this.look = false;
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInPositionLook;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInFlying.PacketPlayInPositionLook;
|
||||
|
||||
public class SPacketPlayInPositionLook extends VPacketPlayInPositionLook<PacketPlayInPositionLook> {
|
||||
public void accept(PacketPlayInPositionLook packet) {
|
||||
this.x = packet.a(0.0);
|
||||
this.y = packet.b(0.0);
|
||||
this.z = packet.c(0.0);
|
||||
this.yaw = packet.a(0.0F);
|
||||
this.pitch = packet.b(0.0F);
|
||||
this.ground = packet.a();
|
||||
this.pos = true;
|
||||
this.look = true;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInSetCreativeSlot;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSetCreativeSlot;
|
||||
|
||||
public class SPacketPlayInSetCreativeSlot extends VPacketPlayInSetCreativeSlot<PacketPlayInSetCreativeSlot> {
|
||||
public void accept(PacketPlayInSetCreativeSlot packet) {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInSteerVehicle;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInSteerVehicle;
|
||||
|
||||
public class SPacketPlayInSteerVehicle extends VPacketPlayInSteerVehicle<PacketPlayInSteerVehicle> {
|
||||
public void accept(PacketPlayInSteerVehicle packet) {
|
||||
this.forward = packet.a();
|
||||
this.strafe = packet.b();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInTeleportAccept;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInTeleportAccept;
|
||||
|
||||
public class SPacketPlayInTeleportAccept extends VPacketPlayInTeleportAccept<PacketPlayInTeleportAccept> {
|
||||
public void accept(PacketPlayInTeleportAccept packet) {
|
||||
this.id = packet.a();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInTransaction;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInTransaction;
|
||||
|
||||
public class SPacketPlayInTransaction extends VPacketPlayInTransaction<PacketPlayInTransaction> {
|
||||
public void accept(PacketPlayInTransaction packet) {
|
||||
this.id = packet.b();
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.Field;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInUseEntity;
|
||||
import me.levansj01.verus.util.java.SafeReflection;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUseEntity;
|
||||
import net.minecraft.server.v1_12_R1.Vec3D;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.CraftWorld;
|
||||
import org.bukkit.entity.Entity;
|
||||
|
||||
public class SPacketPlayInUseEntity extends VPacketPlayInUseEntity<PacketPlayInUseEntity> {
|
||||
private static final Field id_field = SafeReflection.access(PacketPlayInUseEntity.class, "a", "id");
|
||||
private boolean fetchedEntity;
|
||||
|
||||
@Override
|
||||
public Entity getEntity(World world) {
|
||||
if (!this.fetchedEntity) {
|
||||
net.minecraft.server.v1_12_R1.Entity entity = ((CraftWorld)world).getHandle().getEntity(this.id);
|
||||
if (entity == null) {
|
||||
this.entity = new WeakReference<>(null);
|
||||
} else {
|
||||
this.entity = new WeakReference<>(entity.getBukkitEntity());
|
||||
}
|
||||
|
||||
this.fetchedEntity = true;
|
||||
}
|
||||
|
||||
return this.entity == null ? null : this.entity.get();
|
||||
}
|
||||
|
||||
public void accept(PacketPlayInUseEntity packet) {
|
||||
this.id = SafeReflection.<Integer>fetch(id_field, packet);
|
||||
this.action = VPacketPlayInUseEntity.EntityUseAction.values()[packet.a().ordinal()];
|
||||
if (this.action == VPacketPlayInUseEntity.EntityUseAction.INTERACT_AT) {
|
||||
Vec3D vec = packet.c();
|
||||
this.bodyX = vec.x;
|
||||
this.bodyY = vec.y;
|
||||
this.bodyZ = vec.z;
|
||||
} else {
|
||||
this.bodyX = this.bodyY = this.bodyZ = 0.0;
|
||||
}
|
||||
|
||||
this.fetchedEntity = false;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.api.wrapper.BlockPosition;
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInUseItem;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUseItem;
|
||||
|
||||
public class SPacketPlayInUseItem extends VPacketPlayInUseItem<PacketPlayInUseItem> {
|
||||
public void accept(PacketPlayInUseItem packet) {
|
||||
this.position = new BlockPosition(packet.a().getX(), packet.a().getY(), packet.a().getZ());
|
||||
this.face = packet.b().ordinal();
|
||||
this.blockX = packet.d();
|
||||
this.blockY = packet.e();
|
||||
this.blockZ = packet.f();
|
||||
this.timestamp = packet.timestamp;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInVehicleMove;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInVehicleMove;
|
||||
|
||||
public class SPacketPlayInVehicleMove extends VPacketPlayInVehicleMove<PacketPlayInVehicleMove> {
|
||||
public void accept(PacketPlayInVehicleMove packet) {
|
||||
this.x = packet.getZ();
|
||||
this.y = packet.getY();
|
||||
this.z = packet.getZ();
|
||||
this.yaw = packet.getYaw();
|
||||
this.pitch = packet.getPitch();
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package me.levansj01.verus.compat.v1_12_R1.packets;
|
||||
|
||||
import me.levansj01.verus.compat.packets.VPacketPlayInWindowClick;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInWindowClick;
|
||||
import org.bukkit.craftbukkit.v1_12_R1.inventory.CraftItemStack;
|
||||
|
||||
public class SPacketPlayInWindowClick extends VPacketPlayInWindowClick<PacketPlayInWindowClick> {
|
||||
@Override
|
||||
public boolean isItem() {
|
||||
return this.itemStack != null;
|
||||
}
|
||||
|
||||
public void accept(PacketPlayInWindowClick packet) {
|
||||
this.slot = packet.b();
|
||||
this.window = packet.a();
|
||||
this.button = packet.c();
|
||||
this.mode = packet.f().ordinal();
|
||||
this.itemStack = CraftItemStack.asBukkitCopy(packet.e());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isShiftClick() {
|
||||
return this.isChest() && this.mode == 1 && this.button < 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isChest() {
|
||||
return this.window != 0;
|
||||
}
|
||||
}
|
||||
Loaded 100 of 1291 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user