Class SSpawnObjectPacket
java.lang.Object
net.minecraft.network.play.server.SSpawnObjectPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSSpawnObjectPacket(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 TypeMethodDescriptionintgetData()intgetId()EntityType<?>getType()getUUID()doublegetX()doublegetXa()intgetxRot()doublegetY()doublegetYa()intgetyRot()doublegetZ()doublegetZa()voidhandle(IClientPlayNetHandler p_148833_1_) voidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
handle
- Specified by:
handlein 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()
-