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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
entityToPacket
(double p_218743_0_) byte
getxRot()
byte
getyRot()
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
boolean
boolean
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_) toString()
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
-
Field Details
-
entityId
protected int entityId -
xa
protected short xa -
ya
protected short ya -
za
protected short za -
yRot
protected byte yRot -
xRot
protected byte xRot -
onGround
protected boolean onGround -
hasRot
protected boolean hasRot -
hasPos
protected boolean hasPos
-
-
Constructor Details
-
SEntityPacket
public SEntityPacket() -
SEntityPacket
public SEntityPacket(int p_i46936_1_)
-
-
Method Details
-
entityToPacket
public static long entityToPacket(double p_218743_0_) -
packetToEntity
public static double packetToEntity(long p_244299_0_) -
updateEntityPosition
-
packetToEntity
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
toString
-
getEntity
-
getyRot
public byte getyRot() -
getxRot
public byte getxRot() -
hasRotation
public boolean hasRotation() -
hasPosition
public boolean hasPosition() -
isOnGround
public boolean isOnGround()
-