public class SUpdateHealthPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
| コンストラクタと説明 |
|---|
SUpdateHealthPacket() |
SUpdateHealthPacket(float healthIn,
int foodLevelIn,
float saturationLevelIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
getFoodLevel() |
float |
getHealth() |
float |
getSaturationLevel() |
void |
processPacket(IClientPlayNetHandler handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldSkipErrorspublic SUpdateHealthPacket()
public SUpdateHealthPacket(float healthIn,
int foodLevelIn,
float saturationLevelIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData インタフェース内 IPacket<IClientPlayNetHandler>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData インタフェース内 IPacket<IClientPlayNetHandler>java.io.IOExceptionpublic void processPacket(IClientPlayNetHandler handler)
processPacket インタフェース内 IPacket<IClientPlayNetHandler>public float getHealth()
public int getFoodLevel()
public float getSaturationLevel()