Add a constructor for setting both the header and the footer to PacketPlayOutPlayerListHeaderFooter
This commit is contained in:
parent
4b79813cf3
commit
ff120ea055
@ -1,4 +1,4 @@
|
|||||||
From 49b5ab870fb9264549c00c2ecda33ac7affdfb13 Mon Sep 17 00:00:00 2001
|
From 341f3417d0859e5ffede7045f1f81dfe43b12d0d Mon Sep 17 00:00:00 2001
|
||||||
From: Zach Brown <Zbob750@live.com>
|
From: Zach Brown <Zbob750@live.com>
|
||||||
Date: Thu, 27 Nov 2014 23:53:56 -0600
|
Date: Thu, 27 Nov 2014 23:53:56 -0600
|
||||||
Subject: [PATCH] mc-dev imports
|
Subject: [PATCH] mc-dev imports
|
||||||
@ -148,6 +148,43 @@ index 0000000..620685a
|
|||||||
+ return this.id == MobEffectList.WEAKNESS.id ? (double) (-0.5F * (float) (i + 1)) : 1.3D * (double) (i + 1);
|
+ return this.id == MobEffectList.WEAKNESS.id ? (double) (-0.5F * (float) (i + 1)) : 1.3D * (double) (i + 1);
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..985e437
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
||||||
|
@@ -0,0 +1,31 @@
|
||||||
|
+package net.minecraft.server;
|
||||||
|
+
|
||||||
|
+public class PacketPlayOutPlayerListHeaderFooter implements Packet {
|
||||||
|
+
|
||||||
|
+ private IChatBaseComponent a;
|
||||||
|
+ private IChatBaseComponent b;
|
||||||
|
+
|
||||||
|
+ public PacketPlayOutPlayerListHeaderFooter() {}
|
||||||
|
+
|
||||||
|
+ public PacketPlayOutPlayerListHeaderFooter(IChatBaseComponent ichatbasecomponent) {
|
||||||
|
+ this.a = ichatbasecomponent;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void a(PacketDataSerializer packetdataserializer) {
|
||||||
|
+ this.a = packetdataserializer.d();
|
||||||
|
+ this.b = packetdataserializer.d();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void b(PacketDataSerializer packetdataserializer) {
|
||||||
|
+ packetdataserializer.a(this.a);
|
||||||
|
+ packetdataserializer.a(this.b);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void a(PacketListenerPlayOut packetlistenerplayout) {
|
||||||
|
+ packetlistenerplayout.a(this);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ public void a(PacketListener packetlistener) {
|
||||||
|
+ this.a((PacketListenerPlayOut) packetlistener);
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
diff --git a/src/main/java/net/minecraft/server/TileEntityEnderChest.java b/src/main/java/net/minecraft/server/TileEntityEnderChest.java
|
diff --git a/src/main/java/net/minecraft/server/TileEntityEnderChest.java b/src/main/java/net/minecraft/server/TileEntityEnderChest.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..794cdc8
|
index 0000000..794cdc8
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
From 5524edc7e5c314b762f8f81aaaccdca084763fc8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zach Brown <Zbob750@live.com>
|
||||||
|
Date: Fri, 5 Dec 2014 22:44:50 -0600
|
||||||
|
Subject: [PATCH] Add a constructor for setting header and footer
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
||||||
|
index 985e437..8acd298 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PacketPlayOutPlayerListHeaderFooter.java
|
||||||
|
@@ -21,6 +21,13 @@ public class PacketPlayOutPlayerListHeaderFooter implements Packet {
|
||||||
|
packetdataserializer.a(this.b);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // PaperSpigot start - Add a constructor for setting both the header and the footer
|
||||||
|
+ public PacketPlayOutPlayerListHeaderFooter(IChatBaseComponent header, IChatBaseComponent footer) {
|
||||||
|
+ this.a = header;
|
||||||
|
+ this.b = footer;
|
||||||
|
+ }
|
||||||
|
+ // PaperSpigot end
|
||||||
|
+
|
||||||
|
public void a(PacketListenerPlayOut packetlistenerplayout) {
|
||||||
|
packetlistenerplayout.a(this);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user