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 Summary
Modifier and TypeMethodDescriptionintThe max number of items in a preview row.Controls the way items with the same ID but differing components should be merged.booleanWhether to shorten large item counts using suffixes.booleanWhether to use colors when rendering the preview decoration, whenfalsethe renderer should use the default inventory color.
-
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
-
useColors
boolean useColors()Whether to use colors when rendering the preview decoration, whenfalsethe renderer should use the default inventory color.- Returns:
- whether to use colors in the preview decoration.
- Since:
- 3.3.0
- See Also:
-