Class EntityS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
- Direct Known Subclasses:
EntityS2CPacket.MoveRelative
,EntityS2CPacket.Rotate
,EntityS2CPacket.RotateAndMoveRelative
public class EntityS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official qs
intermediary net/minecraft/class_2684
named net/minecraft/network/packet/s2c/play/EntityS2CPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityS2CPacket.MoveRelative
static class
EntityS2CPacket.Rotate
static class
EntityS2CPacket.RotateAndMoveRelative
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityS2CPacket()
EntityS2CPacket(int entityId)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
Vec3d
calculateDeltaPosition(Vec3d orig)
static double
decodePacketCoordinate(long coord)
static Vec3d
decodePacketCoordinates(long x, long y, long z)
static long
encodePacketCoordinate(double coord)
Entity
getEntity(World world)
byte
getPitch()
byte
getYaw()
boolean
hasRotation()
boolean
isOnGround()
boolean
isPositionChanged()
void
read(PacketByteBuf buf)
String
toString()
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
id
protected int id- Mappings:
Namespace Name Mixin selector official a
Lqs;a:I
intermediary field_12310
Lnet/minecraft/class_2684;field_12310:I
named id
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;id:I
-
deltaX
protected short deltaX- Mappings:
Namespace Name Mixin selector official b
Lqs;b:S
intermediary field_12309
Lnet/minecraft/class_2684;field_12309:S
named deltaX
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;deltaX:S
-
deltaY
protected short deltaY- Mappings:
Namespace Name Mixin selector official c
Lqs;c:S
intermediary field_12308
Lnet/minecraft/class_2684;field_12308:S
named deltaY
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;deltaY:S
-
deltaZ
protected short deltaZ- Mappings:
Namespace Name Mixin selector official d
Lqs;d:S
intermediary field_12307
Lnet/minecraft/class_2684;field_12307:S
named deltaZ
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;deltaZ:S
-
yaw
protected byte yaw- Mappings:
Namespace Name Mixin selector official e
Lqs;e:B
intermediary field_12312
Lnet/minecraft/class_2684;field_12312:B
named yaw
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;yaw:B
-
pitch
protected byte pitch- Mappings:
Namespace Name Mixin selector official f
Lqs;f:B
intermediary field_12311
Lnet/minecraft/class_2684;field_12311:B
named pitch
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;pitch:B
-
onGround
protected boolean onGround- Mappings:
Namespace Name Mixin selector official g
Lqs;g:Z
intermediary field_12306
Lnet/minecraft/class_2684;field_12306:Z
named onGround
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;onGround:Z
-
rotate
protected boolean rotate- Mappings:
Namespace Name Mixin selector official h
Lqs;h:Z
intermediary field_12305
Lnet/minecraft/class_2684;field_12305:Z
named rotate
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;rotate:Z
-
positionChanged
protected boolean positionChanged- Mappings:
Namespace Name Mixin selector official i
Lqs;i:Z
intermediary field_20849
Lnet/minecraft/class_2684;field_20849:Z
named positionChanged
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;positionChanged:Z
-
-
Constructor Details
-
EntityS2CPacket
public EntityS2CPacket() -
EntityS2CPacket
public EntityS2CPacket(int entityId)- Mappings:
Namespace Name Mixin selector official <init>
Lqs;<init>(I)V
intermediary <init>
Lnet/minecraft/class_2684;<init>(I)V
named <init>
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;<init>(I)V
-
-
Method Details
-
encodePacketCoordinate
public static long encodePacketCoordinate(double coord)- Mappings:
Namespace Name Mixin selector official a
Lqs;a(D)J
intermediary method_18047
Lnet/minecraft/class_2684;method_18047(D)J
named encodePacketCoordinate
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;encodePacketCoordinate(D)J
-
decodePacketCoordinate
- Mappings:
Namespace Name Mixin selector official a
Lqs;a(J)D
intermediary method_30301
Lnet/minecraft/class_2684;method_30301(J)D
named decodePacketCoordinate
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;decodePacketCoordinate(J)D
-
calculateDeltaPosition
- Mappings:
Namespace Name Mixin selector official a
Lqs;a(Ldiu;)Ldiu;
intermediary method_30302
Lnet/minecraft/class_2684;method_30302(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
named calculateDeltaPosition
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;calculateDeltaPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
decodePacketCoordinates
- Mappings:
Namespace Name Mixin selector official a
Lqs;a(JJJ)Ldiu;
intermediary method_18695
Lnet/minecraft/class_2684;method_18695(JJJ)Lnet/minecraft/class_243;
named decodePacketCoordinates
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;decodePacketCoordinates(JJJ)Lnet/minecraft/util/math/Vec3d;
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lqs;a(Lpd;)V
intermediary method_11651
Lnet/minecraft/class_2684;method_11651(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
toString
- Overrides:
toString
in classObject
- Mappings:
Namespace Name Mixin selector official toString
Lqs;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_2684;toString()Ljava/lang/String;
named toString
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;toString()Ljava/lang/String;
-
getEntity
- Mappings:
Namespace Name Mixin selector official a
Lqs;a(Lbtv;)Laqv;
intermediary method_11645
Lnet/minecraft/class_2684;method_11645(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1297;
named getEntity
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;getEntity(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;
-
getYaw
- Mappings:
Namespace Name Mixin selector official e
Lqs;e()B
intermediary method_11649
Lnet/minecraft/class_2684;method_11649()B
named getYaw
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;getYaw()B
-
getPitch
- Mappings:
Namespace Name Mixin selector official f
Lqs;f()B
intermediary method_11650
Lnet/minecraft/class_2684;method_11650()B
named getPitch
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;getPitch()B
-
hasRotation
- Mappings:
Namespace Name Mixin selector official g
Lqs;g()Z
intermediary method_11652
Lnet/minecraft/class_2684;method_11652()Z
named hasRotation
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;hasRotation()Z
-
isPositionChanged
- Mappings:
Namespace Name Mixin selector official h
Lqs;h()Z
intermediary method_22826
Lnet/minecraft/class_2684;method_22826()Z
named isPositionChanged
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;isPositionChanged()Z
-
isOnGround
- Mappings:
Namespace Name Mixin selector official i
Lqs;i()Z
intermediary method_11653
Lnet/minecraft/class_2684;method_11653()Z
named isOnGround
Lnet/minecraft/network/packet/s2c/play/EntityS2CPacket;isOnGround()Z
-