Package mindustry.net
Class NetConnection
java.lang.Object
mindustry.net.NetConnection
- Direct Known Subclasses:
ArcNetProvider.ArcConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringarc.util.RatekeeperHandles chat spam rate limits.longWhen this connection was established.booleanbooleanbooleanbooleanbooleanintID of last received client snapshot.longTimestamp of last received snapshot.arc.struct.Seq<mindustry.gen.Syncc>Entities that only this player will get synced to them.booleanbooleanarc.util.RatekeeperHandles packet spam rate limits.mindustry.gen.Playerbooleanarc.struct.Seq<BuildPlan>Build requests that have been recently rejected.floatfloatfloatfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract voidclose()booleanvoidkick()Kick with the standard kick reason.voidKick with an arbitrary reason.voidKick with an arbitrary reason.voidkick(Packets.KickReason reason) Kick with a special, localized reason.voidkick(Packets.KickReason reason, long kickDuration) Kick with a special, localized reason.protected voidabstract voidvoidsendStream(Streamable stream) voidsendStream(Streamable stream, ByteArrayOutputStream data) voidsendStreamAsync(Streamable stream, ByteArrayOutputStream data)
-
Field Details
-
address
-
uuid
-
usid
-
mobile
public boolean mobile -
modclient
public boolean modclient -
player
@Nullable public mindustry.gen.Player player -
kicked
public boolean kicked -
connectTime
public long connectTimeWhen this connection was established. -
lastReceivedClientSnapshot
public int lastReceivedClientSnapshotID of last received client snapshot. -
lastReceivedClientTime
public long lastReceivedClientTimeTimestamp of last received snapshot. -
rejectedRequests
Build requests that have been recently rejected. This is cleared every snapshot. -
chatRate
public arc.util.Ratekeeper chatRateHandles chat spam rate limits. -
packetRate
public arc.util.Ratekeeper packetRateHandles packet spam rate limits. -
localEntities
public arc.struct.Seq<mindustry.gen.Syncc> localEntitiesEntities that only this player will get synced to them. -
hasConnected
public boolean hasConnected -
hasBegunConnecting
public boolean hasBegunConnecting -
determiningAssets
public boolean determiningAssets -
receivingAssets
public boolean receivingAssets -
hasDisconnected
public boolean hasDisconnected -
viewWidth
public float viewWidth -
viewHeight
public float viewHeight -
viewX
public float viewX -
viewY
public float viewY
-
-
Constructor Details
-
NetConnection
-
-
Method Details
-
kick
public void kick()Kick with the standard kick reason. -
kick
Kick with a special, localized reason. Use this if possible. -
kick
Kick with a special, localized reason. Use this if possible. -
kick
Kick with an arbitrary reason. -
kick
Kick with an arbitrary reason. -
kickDisconnect
protected void kickDisconnect() -
isConnected
public boolean isConnected() -
sendStreamAsync
-
sendStream
-
sendStream
-
blacklist
public void blacklist() -
send
-
close
public abstract void close()
-