Class ClientboundAddEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private static final double
private static final double
static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundAddEntityPacket> private final EntityType
<?> private final UUID
private final double
private final int
private final byte
private final double
private final int
private final byte
private final byte
private final double
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundAddEntityPacket
(int pId, UUID pUuid, double pX, double pY, double pZ, float pXRot, float pYRot, EntityType<?> pType, int pData, Vec3 pDeltaMovement, double pYHeadRot) private
ClientboundAddEntityPacket
(Entity pEntity, int pData, BlockPos pPos) ClientboundAddEntityPacket
(Entity pEntity, ServerEntity pServerEntity) ClientboundAddEntityPacket
(Entity pEntity, ServerEntity pServerEntity, int pData) -
Method Summary
Modifier and TypeMethodDescriptionint
getData()
int
getId()
EntityType
<?> getType()
getUUID()
double
getX()
double
getXa()
float
getXRot()
double
getY()
double
getYa()
float
float
getYRot()
double
getZ()
double
getZa()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf p_320192_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
MAGICAL_QUANTIZATION
private static final double MAGICAL_QUANTIZATION- See Also:
-
LIMIT
private static final double LIMIT- See Also:
-
id
private final int id -
uuid
-
type
-
x
private final double x -
y
private final double y -
z
private final double z -
xa
private final int xa -
ya
private final int ya -
za
private final int za -
xRot
private final byte xRot -
yRot
private final byte yRot -
yHeadRot
private final byte yHeadRot -
data
private final int data
-
-
Constructor Details
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int pId, UUID pUuid, double pX, double pY, double pZ, float pXRot, float pYRot, EntityType<?> pType, int pData, Vec3 pDeltaMovement, double pYHeadRot) -
ClientboundAddEntityPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getUUID
-
getType
-
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getXa
public double getXa() -
getYa
public double getYa() -
getZa
public double getZa() -
getXRot
public float getXRot() -
getYRot
public float getYRot() -
getYHeadRot
public float getYHeadRot() -
getData
public int getData()
-