Class SSpawnObjectPacket
java.lang.Object
net.minecraft.network.play.server.SSpawnObjectPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSSpawnObjectPacket
(int p_i50777_1_, UUID p_i50777_2_, double p_i50777_3_, double p_i50777_5_, double p_i50777_7_, float p_i50777_9_, float p_i50777_10_, EntityType<?> p_i50777_11_, int p_i50777_12_, Vector3d p_i50777_13_) SSpawnObjectPacket
(Entity p_i50778_1_) SSpawnObjectPacket
(Entity p_i46976_1_, int p_i46976_2_) SSpawnObjectPacket
(Entity p_i50779_1_, EntityType<?> p_i50779_2_, int p_i50779_3_, BlockPos p_i50779_4_) -
Method Summary
Modifier and TypeMethodDescriptionint
getData()
int
getId()
EntityType<?>
getType()
getUUID()
double
getX()
double
getXa()
int
getxRot()
double
getY()
double
getYa()
int
getyRot()
double
getZ()
double
getZa()
void
handle
(IClientPlayNetHandler p_148833_1_) void
read
(PacketBuffer p_148837_1_) void
write
(PacketBuffer p_148840_1_) 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.IPacket
isSkippable
-
Field Details
-
id
private int id -
uuid
-
x
private double x -
y
private double y -
z
private double z -
xa
private int xa -
ya
private int ya -
za
private int za -
xRot
private int xRot -
yRot
private int yRot -
type
-
data
private int data
-
-
Constructor Details
-
SSpawnObjectPacket
public SSpawnObjectPacket() -
SSpawnObjectPacket
public SSpawnObjectPacket(int p_i50777_1_, UUID p_i50777_2_, double p_i50777_3_, double p_i50777_5_, double p_i50777_7_, float p_i50777_9_, float p_i50777_10_, EntityType<?> p_i50777_11_, int p_i50777_12_, Vector3d p_i50777_13_) -
SSpawnObjectPacket
-
SSpawnObjectPacket
-
SSpawnObjectPacket
public SSpawnObjectPacket(Entity p_i50779_1_, EntityType<?> p_i50779_2_, int p_i50779_3_, BlockPos p_i50779_4_)
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
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()
-