Class ClientboundAddEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionClientboundAddEntityPacket(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 SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
MAGICAL_QUANTIZATIONprivate static final double MAGICAL_QUANTIZATION- See Also:
 
- 
LIMITprivate static final double LIMIT- See Also:
 
- 
idprivate final int id
- 
uuid
- 
type
- 
xprivate final double x
- 
yprivate final double y
- 
zprivate final double z
- 
xaprivate final int xa
- 
yaprivate final int ya
- 
zaprivate final int za
- 
xRotprivate final byte xRot
- 
yRotprivate final byte yRot
- 
yHeadRotprivate final byte yHeadRot
- 
dataprivate final int data
 
- 
- 
Constructor Details- 
ClientboundAddEntityPacket
- 
ClientboundAddEntityPacket
- 
ClientboundAddEntityPacket
- 
ClientboundAddEntityPacketpublic 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 interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
getIdpublic int getId()
- 
getUUID
- 
getType
- 
getXpublic double getX()
- 
getYpublic double getY()
- 
getZpublic double getZ()
- 
getXapublic double getXa()
- 
getYapublic double getYa()
- 
getZapublic double getZa()
- 
getXRotpublic float getXRot()
- 
getYRotpublic float getYRot()
- 
getYHeadRotpublic float getYHeadRot()
- 
getDatapublic int getData()
 
-