Interface GeneralConfig

All Superinterfaces:
ConfigurationSerializable

public interface GeneralConfig extends ConfigurationSerializable
  • Method Details

    • serialize

      @NotNull @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface ConfigurationSerializable
    • storageType

      Nameable storageType()
      Defined the used storage type.
      Returns:
      name of storage type
    • isCheckUpdates

      boolean isCheckUpdates()
      Defined if the plugin should check for updates
      Returns:
      true when update checks should be performed
    • isPreviewDefault

      boolean isPreviewDefault()
      Defines if the preview should be enabled by default.
      Returns:
      true when preview should be enabled
    • isShowNameDefault

      boolean isShowNameDefault()
      Defined if names should be always shown by default
      Returns:
      true when names should be shown by default
    • defaultNameChannel

      MessageChannel defaultNameChannel()
      The default channel for brush messages. One of MessageChannel
      Returns:
      the message channel implementation
    • previewRefreshInterval

      int previewRefreshInterval()
      The refresh interval for each player of the rendering preview.
      Returns:
      the refresh interval in ticks
    • maxRenderMs

      int maxRenderMs()
      The max amount of ms, which can be used by the renderer in one tick (50 ms)
      Returns:
      the amount in ms
    • renderDistance

      int renderDistance()
      The max distance of the render origin and the brush owner
      Returns:
      the distance in blocks
    • renderDistanceSquared

      double renderDistanceSquared()
      The max distance of the render origin and the brush owner
      Returns:
      the distance in blocks
    • maxRenderSize

      int maxRenderSize()
      The max render size. This is the size of the schematic based on the bounds including air blocks.

      See maxEffectiveRenderSize() for the size without air blocks

      Returns:
      the max render size in blocks
    • isOutOfRenderRange

      default boolean isOutOfRenderRange(Location origin, Location other)
    • maxEffectiveRenderSize

      int maxEffectiveRenderSize()
      The max effective render size. This is the size of a schematic excluding air blocks
      Returns:
      the effective render size in blocks
    • pasteBreak

      int pasteBreak()
    • language

      String language()