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 class
SEntityPacket.LookPacket
static class
SEntityPacket.MovePacket
static class
SEntityPacket.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 long
entityToPacket(double p_218743_0_)
Entity
getEntity(World p_149065_1_)
byte
getxRot()
byte
getyRot()
void
handle(IClientPlayNetHandler p_148833_1_)
boolean
hasPosition()
boolean
hasRotation()
boolean
isOnGround()
static double
packetToEntity(long p_244299_0_)
static Vector3d
packetToEntity(long p_218744_0_, long p_218744_2_, long p_218744_4_)
void
read(PacketBuffer p_148837_1_)
java.lang.String
toString()
Vector3d
updateEntityPosition(Vector3d p_244300_1_)
void
write(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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getyRot
public byte getyRot()
-
getxRot
public byte getxRot()
-
hasRotation
public boolean hasRotation()
-
hasPosition
public boolean hasPosition()
-
isOnGround
public boolean isOnGround()
-
-