Package mindustry.net
Class Streamable
java.lang.Object
mindustry.net.Packet
mindustry.net.Streamable
- Direct Known Subclasses:
Packets.AssetRequirementStream,Packets.AssetStream,Packets.WorldStream
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class mindustry.net.Packet
BAIS, NODATA, priorityHigh, priorityLow, priorityNormal, READ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallow(boolean server) intbooleanIf true, this stream is handled as soon as it is received, instead of all at once.Methods inherited from class mindustry.net.Packet
handleClient, handled, handleServer, read, read, write
-
Field Details
-
stream
-
-
Constructor Details
-
Streamable
public Streamable()
-
-
Method Details
-
getPriority
public int getPriority()- Overrides:
getPriorityin classPacket
-
allow
public boolean allow(boolean server) -
incremental
public boolean incremental()If true, this stream is handled as soon as it is received, instead of all at once.
-