13
0
geforkt von Mirrors/Paper
Paper/src/main/java/net/minecraft/server/Packet3Chat.java
Erik Broes a98c7ba2c7 Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
2011-06-27 00:47:03 +02:00

40 Zeilen
894 B
Java

package net.minecraft.server;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException; // CraftBukkit
public class Packet3Chat extends Packet {
public String message;
public Packet3Chat() {}
public Packet3Chat(String s) {
/* CraftBukkit start - handle this later
if (s.length() > 119) {
s = s.substring(0, 119);
}
// CraftBukkit end */
this.message = s;
}
public void a(DataInputStream datainputstream) throws IOException { // CraftBukkit
this.message = a(datainputstream, 119);
}
public void a(DataOutputStream dataoutputstream) throws IOException { // CraftBukkit
a(this.message, dataoutputstream);
}
public void a(NetHandler nethandler) {
nethandler.a(this);
}
public int a() {
return this.message.length();
}
}