TaterConfig

open class TaterConfig : IBrigadierConfigurator

Types

Bungee
Link copied to clipboard
open class Bungee
Settings for proxy connections.
Defaults
Link copied to clipboard
open class Defaults
Messages
Link copied to clipboard
open class Messages
Settings for Taterzen's messages
Path
Link copied to clipboard
open class Path
Settings for path visualisation.
Permissions
Link copied to clipboard
open class Permissions
Permission stuff.

Properties

_comment_combatInPeaceful
Link copied to clipboard
@SerializedName(value = "// Whether to allow Taterzens to fight players in peaceful mode as well.")
val _comment_combatInPeaceful: String
_comment_defaults
Link copied to clipboard
@SerializedName(value = "// Default settings for new Taterzens.")
val _comment_defaults: String
_comment_fabricTailorAdvert0
Link copied to clipboard
@SerializedName(value = "// Whether to remind you that if FabricTailor mod is installed,")
val _comment_fabricTailorAdvert0: String
_comment_fabricTailorAdvert1
Link copied to clipboard
@SerializedName(value = "// it has some built-in skin swapping functionality for Taterzens as well.")
val _comment_fabricTailorAdvert1: String
_comment_glowSelectedNpc
Link copied to clipboard
@SerializedName(value = "// Whether give fake glowing effect to Taterzen when selected.")
val _comment_glowSelectedNpc: String
_comment_guiItemModelData
Link copied to clipboard
@SerializedName(value = "// Custom model data number that items in GUI should use.")
val _comment_guiItemModelData: String
_comment_hideOpsMessage
Link copied to clipboard
@SerializedName(value = "// Whether to cancel sending info that Taterzen has executed a command to ops.")
val _comment_hideOpsMessage: String
_comment_language
Link copied to clipboard
@SerializedName(value = "// Language file to use.")
val _comment_language: String
_comment_lockAfterCreation
Link copied to clipboard
@SerializedName(value = "// Whether to automatically lock the taterzen after creating it.")
val _comment_lockAfterCreation: String
_comment_prefersExecution
Link copied to clipboard
@SerializedName(value = "// Nodes which prefer execution instead of going in submenus in `/npc` gui. (Swaps the right and left click function to these nodes)")
val _comment_prefersExecution: String
_comment_taterzenTablistTimeout0
Link copied to clipboard
@SerializedName(value = "// After how many ticks Taterzens should be cleared from tablist.")
val _comment_taterzenTablistTimeout0: String
_comment_taterzenTablistTimeout1
Link copied to clipboard
@SerializedName(value = "// Some delay is needed, otherwise clients don't fetch their skins.")
val _comment_taterzenTablistTimeout1: String
_comment_taterzenTablistTimeout2
Link copied to clipboard
@SerializedName(value = "// If you want them to stay on the tablist, set this to -1.")
val _comment_taterzenTablistTimeout2: String
bungee
Link copied to clipboard
open val bungee: TaterConfig.Bungee
combatInPeaceful
Link copied to clipboard
@SerializedName(value = "combat_in_peaceful")
open val combatInPeaceful: Boolean
defaults
Link copied to clipboard
open val defaults: TaterConfig.Defaults
fabricTailorAdvert
Link copied to clipboard
@SerializedName(value = "post_fabrictailor_advert")
open val fabricTailorAdvert: Boolean
Whether to remind you that if FabricTailor mod is installed, it has some more skin functionality.
glowSelectedNpc
Link copied to clipboard
@SerializedName(value = "glow_selected_npc")
open val glowSelectedNpc: Boolean
guiItemModelData
Link copied to clipboard
@SerializedName(value = "gui_item_model_data")
open val guiItemModelData: Int
hideOpsMessage
Link copied to clipboard
@SerializedName(value = "hide_ops_message")
open val hideOpsMessage: Boolean
language
Link copied to clipboard
open val language: String
Language file used by Taterzens.
lockAfterCreation
Link copied to clipboard
@SerializedName(value = "lock_after_creation")
open val lockAfterCreation: Boolean
messages
Link copied to clipboard
open val messages: TaterConfig.Messages
obscureTabList
Link copied to clipboard
@SerializedName(value = "// Obsucre Taterzens' names while they are visible on the tab list.")
open val obscureTabList: Boolean
path
Link copied to clipboard
open val path: TaterConfig.Path
perms
Link copied to clipboard
open val perms: TaterConfig.Permissions
prefersExecution
Link copied to clipboard
@SerializedName(value = "prefer_execution_nodes")
open val prefersExecution: List<String>
taterzenTablistTimeout
Link copied to clipboard
@SerializedName(value = "taterzen_tablist_timeout")
open val taterzenTablistTimeout: Int
After how many ticks Taterzens should be cleared from tablist.

Functions

loadConfigFile
Link copied to clipboard
open fun loadConfigFile(file: File): TaterConfig
Loads config file.
reload
Link copied to clipboard
open fun reload()
Changes values of current object with reflection, in order to keep the same object.
save
Link copied to clipboard
open fun save()
saveConfigFile
Link copied to clipboard
open fun saveConfigFile(file: File)
Saves the config to the given file.

Inherited functions

enableSerializedNameComments
Link copied to clipboard
open fun enableSerializedNameComments(): Boolean
generateCommand
Link copied to clipboard
open fun generateCommand(editNode: LiteralCommandNode<CommandSourceStack>)
generateFieldDescription
Link copied to clipboard
open fun generateFieldDescription(parent: Any, attribute: Field): MutableComponent
generateFieldInfo
Link copied to clipboard
open fun generateFieldInfo(context: CommandContext<CommandSourceStack>, parent: Any, attribute: Field): Int
getCommentPrefix
Link copied to clipboard
open fun getCommentPrefix(): String
getDescription
Link copied to clipboard
open fun getDescription(field: Field): String
loadConfigFile
Link copied to clipboard
open fun <C : IBrigadierConfigurator?> loadConfigFile(file: File, configClass: Class<C>, defaultConfig: Supplier<C>): C
recursiveEditCommand
Link copied to clipboard
open fun recursiveEditCommand(root: LiteralCommandNode<CommandSourceStack>, configFields: ConfigFieldList)
recursiveReload
Link copied to clipboard
open fun recursiveReload(config: Any, newConfig: Any)
reload
Link copied to clipboard
open fun reload(newConfig: Any)
shouldExclude
Link copied to clipboard
open fun shouldExclude(field: Field): Boolean
writeToFile
Link copied to clipboard
open fun writeToFile(file: File)