Class SEntityPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SEntityPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
- Direct Known Subclasses:
SEntityPacket.LookPacket,SEntityPacket.MovePacket,SEntityPacket.RelativeMovePacket
public class SEntityPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSEntityPacket.LookPacketstatic classSEntityPacket.MovePacketstatic classSEntityPacket.RelativeMovePacket
-
Constructor Summary
Constructors Constructor Description SEntityPacket()SEntityPacket(int p_i46936_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longentityToPacket(double p_218743_0_)EntitygetEntity(World p_149065_1_)bytegetxRot()bytegetyRot()voidhandle(IClientPlayNetHandler p_148833_1_)booleanhasPosition()booleanhasRotation()booleanisOnGround()static doublepacketToEntity(long p_244299_0_)static Vector3dpacketToEntity(long p_218744_0_, long p_218744_2_, long p_218744_4_)voidread(PacketBuffer p_148837_1_)java.lang.StringtoString()Vector3dupdateEntityPosition(Vector3d p_244300_1_)voidwrite(PacketBuffer p_148840_1_)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Method Detail
-
entityToPacket
public static long entityToPacket(double p_218743_0_)
-
packetToEntity
public static double packetToEntity(long p_244299_0_)
-
packetToEntity
public static Vector3d packetToEntity(long p_218744_0_, long p_218744_2_, long p_218744_4_)
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getyRot
public byte getyRot()
-
getxRot
public byte getxRot()
-
hasRotation
public boolean hasRotation()
-
hasPosition
public boolean hasPosition()
-
isOnGround
public boolean isOnGround()
-
-