Class ClientboundAddEntityPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundAddEntityPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientboundAddEntityPacket(int p_131470_, UUID p_131471_, double p_131472_, double p_131473_, double p_131474_, float p_131475_, float p_131476_, EntityType<?> p_131477_, int p_131478_, Vec3 p_131479_)
ClientboundAddEntityPacket(FriendlyByteBuf p_178562_)
ClientboundAddEntityPacket(Entity p_131481_)
ClientboundAddEntityPacket(Entity p_131483_, int p_131484_)
ClientboundAddEntityPacket(Entity p_131486_, EntityType<?> p_131487_, int p_131488_, BlockPos p_131489_)
-
Method Summary
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
-
Field Details
-
MAGICAL_QUANTIZATION
public static final double MAGICAL_QUANTIZATION- See Also:
- Constant Field Values
-
id
private final int id -
uuid
-
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 int xRot -
yRot
private final int yRot -
type
-
data
private final int data -
LIMIT
public static final double LIMIT- See Also:
- Constant Field Values
-
-
Constructor Details
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(int p_131470_, UUID p_131471_, double p_131472_, double p_131473_, double p_131474_, float p_131475_, float p_131476_, EntityType<?> p_131477_, int p_131478_, Vec3 p_131479_) -
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
-
ClientboundAddEntityPacket
public ClientboundAddEntityPacket(Entity p_131486_, EntityType<?> p_131487_, int p_131488_, BlockPos p_131489_) -
ClientboundAddEntityPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getId
public int getId() -
getUUID
-
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 int getxRot() -
getyRot
public int getyRot() -
getType
-
getData
public int getData()
-