Package mindustry.io

Interface SaveFileReader.CustomChunk

All Known Implementing Classes:
FogControl
Enclosing class:
SaveFileReader

public static interface SaveFileReader.CustomChunk
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    read(DataInput stream)
     
    default boolean
     
    void
    write(DataOutput stream)
     
    default boolean
     
  • Method Details

    • write

      void write(DataOutput stream) throws IOException
      Throws:
      IOException
    • read

      void read(DataInput stream) throws IOException
      Throws:
      IOException
    • shouldWrite

      default boolean shouldWrite()
      Returns:
      whether this chunk is enabled at all
    • writeNet

      default boolean writeNet()
      Returns:
      whether this chunk should be written to connecting clients (default true)