public class SpectatorTeleportC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private UUID |
targetUuid |
Constructor and Description |
---|
SpectatorTeleportC2SPacket() |
SpectatorTeleportC2SPacket(UUID targetUuid) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
Entity |
getTarget(ServerWorld world) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private UUID targetUuid
public SpectatorTeleportC2SPacket()
public SpectatorTeleportC2SPacket(UUID targetUuid)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
@Nullable public Entity getTarget(ServerWorld world)