Class StorageOptions

java.lang.Object
net.minestom.server.storage.StorageOptions

public class StorageOptions
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    StorageOptions()  
  • Method Summary

    Modifier and Type Method Description
    boolean hasCompression()
    Gets if compression should be enabled.
    StorageOptions setCompression​(boolean compression)
    Defines if the storage solution should use compression.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • hasCompression

      public boolean hasCompression()
      Gets if compression should be enabled.
      Returns:
      true if compression should be enabled, false otherwise
    • setCompression

      public StorageOptions setCompression​(boolean compression)
      Defines if the storage solution should use compression.
      Parameters:
      compression - true to enable compression, false otherwise
      Returns:
      the reference to the current options