Class ClientboundAddEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
- All Implemented Interfaces:
 Packet<ClientGamePacketListener>
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate static final doubleprivate static final doubleprivate final EntityType<?>private final UUIDprivate final doubleprivate final intprivate final byteprivate final doubleprivate final intprivate final byteprivate final byteprivate final doubleprivate final int - 
Constructor Summary
ConstructorsConstructorDescriptionClientboundAddEntityPacket(int p_237546_, UUID p_237547_, double p_237548_, double p_237549_, double p_237550_, float p_237551_, float p_237552_, EntityType<?> p_237553_, int p_237554_, Vec3 p_237555_, double p_237556_) ClientboundAddEntityPacket(FriendlyByteBuf p_178562_) ClientboundAddEntityPacket(Entity p_131481_) ClientboundAddEntityPacket(Entity p_131483_, int p_131484_) ClientboundAddEntityPacket(Entity p_237558_, int p_237559_, BlockPos p_237560_)  - 
Method Summary
Modifier and TypeMethodDescriptionintgetData()intgetId()EntityType<?>getType()getUUID()doublegetX()doublegetXa()floatgetXRot()doublegetY()doublegetYa()floatfloatgetYRot()doublegetZ()doublegetZa()voidhandle(ClientGamePacketListener p_131495_) voidwrite(FriendlyByteBuf p_131498_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, nextProtocol 
- 
Field Details
- 
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 p_237546_, UUID p_237547_, double p_237548_, double p_237549_, double p_237550_, float p_237551_, float p_237552_, EntityType<?> p_237553_, int p_237554_, Vec3 p_237555_, double p_237556_)  - 
ClientboundAddEntityPacket
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfacePacket<ClientGamePacketListener>
 - 
handle
- Specified by:
 handlein 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() 
 -