Add additional particle API. Thanks thinkofdeath!
By: md_5 <md_5@live.com.au>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 6d8f5f571b3642bee78a65ad7cf14e915d1386d3 Mon Sep 17 00:00:00 2001
|
||||
From ab1f4060dfec54383427f22f29da6ea2c0ae49c9 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Wed, 10 Apr 2013 13:52:52 +1000
|
||||
Subject: [PATCH] mc-dev imports
|
||||
@@ -385,6 +385,63 @@ index 0000000..53c1cb5
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/Packet63WorldParticles.java b/src/main/java/net/minecraft/server/Packet63WorldParticles.java
|
||||
new file mode 100644
|
||||
index 0000000..8c86b03
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/net/minecraft/server/Packet63WorldParticles.java
|
||||
@@ -0,0 +1,51 @@
|
||||
+package net.minecraft.server;
|
||||
+
|
||||
+import java.io.DataInputStream;
|
||||
+import java.io.DataOutputStream;
|
||||
+
|
||||
+public class Packet63WorldParticles extends Packet {
|
||||
+
|
||||
+ private String a;
|
||||
+ private float b;
|
||||
+ private float c;
|
||||
+ private float d;
|
||||
+ private float e;
|
||||
+ private float f;
|
||||
+ private float g;
|
||||
+ private float h;
|
||||
+ private int i;
|
||||
+
|
||||
+ public Packet63WorldParticles() {}
|
||||
+
|
||||
+ public void a(DataInputStream datainputstream) {
|
||||
+ this.a = a(datainputstream, 64);
|
||||
+ this.b = datainputstream.readFloat();
|
||||
+ this.c = datainputstream.readFloat();
|
||||
+ this.d = datainputstream.readFloat();
|
||||
+ this.e = datainputstream.readFloat();
|
||||
+ this.f = datainputstream.readFloat();
|
||||
+ this.g = datainputstream.readFloat();
|
||||
+ this.h = datainputstream.readFloat();
|
||||
+ this.i = datainputstream.readInt();
|
||||
+ }
|
||||
+
|
||||
+ public void a(DataOutputStream dataoutputstream) {
|
||||
+ a(this.a, dataoutputstream);
|
||||
+ dataoutputstream.writeFloat(this.b);
|
||||
+ dataoutputstream.writeFloat(this.c);
|
||||
+ dataoutputstream.writeFloat(this.d);
|
||||
+ dataoutputstream.writeFloat(this.e);
|
||||
+ dataoutputstream.writeFloat(this.f);
|
||||
+ dataoutputstream.writeFloat(this.g);
|
||||
+ dataoutputstream.writeFloat(this.h);
|
||||
+ dataoutputstream.writeInt(this.i);
|
||||
+ }
|
||||
+
|
||||
+ public void handle(Connection connection) {
|
||||
+ connection.a(this);
|
||||
+ }
|
||||
+
|
||||
+ public int a() {
|
||||
+ return 64;
|
||||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/RegionFileCache.java b/src/main/java/net/minecraft/server/RegionFileCache.java
|
||||
new file mode 100644
|
||||
index 0000000..900ed68
|
||||
@@ -459,5 +516,5 @@ index 0000000..900ed68
|
||||
+ }
|
||||
+}
|
||||
--
|
||||
1.8.2.1
|
||||
1.8.1.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user