Package me.iron.WarpSpace.Mod.network
Class PacketSCUpdateWarp
java.lang.Object
api.network.Packet
me.iron.WarpSpace.Mod.network.PacketSCUpdateWarp
public class PacketSCUpdateWarp
extends api.network.Packet
packet to send a vector3i to a client and set it as the clients navigation waypoint
send all important information from server to client
edited by Ir0nsight
made by jake
-
Field Summary
Fields Modifier and Type Field Description private org.schema.common.util.linAlg.Vector3i
waypoint
-
Constructor Summary
Constructors Constructor Description PacketSCUpdateWarp()
PacketSCUpdateWarp(org.schema.common.util.linAlg.Vector3i waypoint)
constructor -
Method Summary
Modifier and Type Method Description void
processPacketOnClient()
void
processPacketOnServer(org.schema.game.common.data.player.PlayerState sender)
void
readPacketData(api.network.PacketReadBuffer buf)
void
writePacketData(api.network.PacketWriteBuffer buf)
-
Field Details
-
waypoint
private org.schema.common.util.linAlg.Vector3i waypoint
-
-
Constructor Details
-
PacketSCUpdateWarp
public PacketSCUpdateWarp(org.schema.common.util.linAlg.Vector3i waypoint)constructor- Parameters:
waypoint
- vector3i with new navigation marker waypoint for target machine.
-
PacketSCUpdateWarp
public PacketSCUpdateWarp()
-
-
Method Details
-
readPacketData
public void readPacketData(api.network.PacketReadBuffer buf) throws java.io.IOException- Specified by:
readPacketData
in classapi.network.Packet
- Throws:
java.io.IOException
-
writePacketData
public void writePacketData(api.network.PacketWriteBuffer buf) throws java.io.IOException- Specified by:
writePacketData
in classapi.network.Packet
- Throws:
java.io.IOException
-
processPacketOnClient
public void processPacketOnClient()- Specified by:
processPacketOnClient
in classapi.network.Packet
-
processPacketOnServer
public void processPacketOnServer(org.schema.game.common.data.player.PlayerState sender)- Specified by:
processPacketOnServer
in classapi.network.Packet
-