Interface PreviewConfiguration


public interface PreviewConfiguration
A read-only view of the preview configuration. Maps to the "preview" section of the config file.
Since:
3.3.0
  • Method Details

    • itemStackMergingStrategy

      ItemStackMergingStrategy itemStackMergingStrategy()
      Controls the way items with the same ID but differing components should be merged.
      Returns:
      the stack merging strategy.
      Since:
      3.3.0
    • defaultMaxRowSize

      int defaultMaxRowSize()
      The max number of items in a preview row. May not affect modded containers.
      Returns:
      the default max row size.
      Since:
      3.3.0
    • shortItemCounts

      boolean shortItemCounts()
      Whether to shorten large item counts using suffixes. (e.g. 1,000,000 -> 1M).
      Returns:
      whether to shorten item counts.
      Since:
      3.3.0
    • compactPreviewOrder

      CompactPreviewOrder compactPreviewOrder()
      The ordering strategy for compact preview items.
      Returns:
      the ordering strategy to use in compact previews.
      Since:
      5.3.0
    • useColors

      boolean useColors()
      Whether to use colors when rendering the preview decoration, when false the renderer should use the default inventory color.
      Returns:
      whether to use colors in the preview decoration.
      Since:
      3.3.0
      See Also: