Add updatehealth packet

This commit is contained in:
libraryaddict 2015-10-21 19:56:52 +13:00
parent 8ceb69513a
commit 5c010af8c4
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,57 @@
From 3532fbe2e215a6a0ccee91c7bab806054039424b Mon Sep 17 00:00:00 2001
From: libraryaddict <libraryaddict115@yahoo.co.nz>
Date: Wed, 21 Oct 2015 19:53:48 +1300
Subject: [PATCH] Add missing update packet
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutUpdateHealth.java b/src/main/java/net/minecraft/server/PacketPlayOutUpdateHealth.java
new file mode 100644
index 0000000..c799c99
--- /dev/null
+++ b/src/main/java/net/minecraft/server/PacketPlayOutUpdateHealth.java
@@ -0,0 +1,41 @@
+package net.minecraft.server;
+
+import java.io.IOException;
+
+public class PacketPlayOutUpdateHealth
+ implements Packet<PacketListenerPlayOut>
+{
+ public float a;
+ public int b;
+ public float c;
+
+ public PacketPlayOutUpdateHealth()
+ {
+ }
+
+ public PacketPlayOutUpdateHealth(float f, int i, float f1)
+ {
+ a = f;
+ b = i;
+ c = f1;
+ }
+
+ public void a(PacketDataSerializer packetdataserializer)
+ {
+ a = packetdataserializer.readFloat();
+ b = packetdataserializer.e();
+ c = packetdataserializer.readFloat();
+ }
+
+ public void b(PacketDataSerializer packetdataserializer)
+ {
+ packetdataserializer.writeFloat(a);
+ packetdataserializer.b(b);
+ packetdataserializer.writeFloat(c);
+ }
+
+ public void a(PacketListenerPlayOut packetlistenerplayout)
+ {
+ packetlistenerplayout.a(this);
+ }
+}
\ No newline at end of file
--
1.9.5.msysgit.0

Binary file not shown.