Interface GeneralConfig
- All Superinterfaces:
ConfigurationSerializable
-
Method Summary
Modifier and TypeMethodDescriptionThe default channel for brush messages.boolean
Defined if the plugin should check for updatesdefault boolean
isOutOfRenderRange
(Location origin, Location other) boolean
Defines if the preview should be enabled by default.boolean
Defined if names should be always shown by defaultlanguage()
int
The max effective render size.int
The max amount of ms, which can be used by the renderer in one tick (50 ms)int
The max render size.int
int
The refresh interval for each player of the rendering preview.int
The max distance of the render origin and the brush ownerdouble
The max distance of the render origin and the brush ownerDefined the used storage type.
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceConfigurationSerializable
-
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 ofMessageChannel
- 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
-
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()
-