Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractConfigStructure - Interface in me.bristermitten.mittenlib.annotations.ast
-
The abstract shape of a config, before proper resolution
- AbstractConfigStructure.Atomic - Record Class in me.bristermitten.mittenlib.annotations.ast
- AbstractConfigStructure.Intersection - Record Class in me.bristermitten.mittenlib.annotations.ast
- AbstractConfigStructure.Union - Record Class in me.bristermitten.mittenlib.annotations.ast
- AbstractMessageFormatter - Class in me.bristermitten.mittenlib.lang.format
-
An abstract implementation of
MessageFormatter
that provides a default implementation ofAbstractMessageFormatter.preFormat(String, OfflinePlayer)
. - AbstractMessageFormatter(Set<FormattingHook>) - Constructor for class me.bristermitten.mittenlib.lang.format.AbstractMessageFormatter
-
Create a new
AbstractMessageFormatter
with the givenFormattingHook
s. - AbstractMiniMessageFactory - Interface in me.bristermitten.mittenlib.lang.format
-
A factory for creating
instances
. - AccessorGenerator - Class in me.bristermitten.mittenlib.annotations.compile
-
Generates accessor methods for configuration classes.
- AccessorGenerator(TypesUtil, MethodNames, ConfigurationClassNameGenerator) - Constructor for class me.bristermitten.mittenlib.annotations.compile.AccessorGenerator
- add(LangMessage) - Method in class me.bristermitten.mittenlib.lang.LangMessage
- addConfigModules(Set<Configuration<?>>) - Method in class me.bristermitten.mittenlib.MittenLib
- addConfigModules(Configuration<?>...) - Method in class me.bristermitten.mittenlib.MittenLib
- addDefaultModules() - Method in class me.bristermitten.mittenlib.MittenLib
- addModule(Module) - Method in class me.bristermitten.mittenlib.MittenLib
- addModules(Module...) - Method in class me.bristermitten.mittenlib.MittenLib
- addType(Class<? extends FileType>) - Method in class me.bristermitten.mittenlib.files.FileTypes
-
Register a new
FileType
class - addWatcher(FileWatcher) - Method in class me.bristermitten.mittenlib.watcher.FileWatcherService
-
Add a watcher to the service.
- AdventureAudienceProvider - Class in me.bristermitten.mittenlib.lang
-
A provider for
BukkitAudiences
that uses thePlugin
- alternatives() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
alternatives
record component. - apply(T) - Method in interface me.bristermitten.mittenlib.util.lambda.IOFunction
-
Apply the function, possibly throwing an exception.
- apply(T) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction
-
Apply the function, possibly throwing an exception.
- apply(T, R1) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction2
-
Apply the function, possibly throwing an exception.
- applyCatching(T) - Method in interface me.bristermitten.mittenlib.util.lambda.IOFunction
-
Apply the function, catching any exceptions and wrapping them in a
Result
- applyCatching(T) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction
-
Apply the function, catching any exceptions and wrapping them in a
Result
- applyCatching(T, R1) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction2
-
Apply the function, catching any exceptions and wrapping them in a
Result
- ArgumentCondition<T> - Interface in me.bristermitten.mittenlib.commands.handlers
-
A condition that can be placed upon an argument of a given type.
- ArgumentContext<T> - Interface in me.bristermitten.mittenlib.commands.handlers
-
Handles resolution of an argument to a value of type
ArgumentContext
. - asBiConsumer() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeBiConsumer
-
Turn this
SafeBiConsumer
into aBiConsumer
that sneaky throws any exceptions. - asBiFunction() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction2
-
Turn this
SafeFunction2
into aBiFunction
that sneaky throws any exceptions. - asConsumer() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeConsumer
-
Turn this
SafeConsumer
into aConsumer
that sneaky throws any exceptions. - asFunction() - Method in interface me.bristermitten.mittenlib.util.lambda.IOFunction
-
Turn this
IOFunction
into aFunction
that sneaky throws any exceptions. - asFunction() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction
-
Turn this
SafeFunction
into aFunction
that sneaky throws any exceptions. - asRunnable() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeRunnable
-
Turn this
SafeRunnable
into aRunnable
that sneaky throws any exceptions. - asSupplier() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeSupplier
-
Turn this
SafeSupplier
into aSupplier
that sneaky throws any exceptions. - ASTNode - Interface in me.bristermitten.mittenlib.annotations.ast
- ASTParentReference - Record Class in me.bristermitten.mittenlib.annotations.ast
-
List of hierarchical names
- ASTParentReference(ClassName, ASTParentReference) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Creates an instance of a
ASTParentReference
record class. - ASTSettings - Interface in me.bristermitten.mittenlib.annotations.ast
- ASTSettings.ConfigASTSettings - Record Class in me.bristermitten.mittenlib.annotations.ast
- ASTSettings.PropertyASTSettings - Record Class in me.bristermitten.mittenlib.annotations.ast
- ASTVerifier - Class in me.bristermitten.mittenlib.annotations.parser
-
Inspects the AST and sends errors/warnings for invalid setups
- ASTVerifier(Types) - Constructor for class me.bristermitten.mittenlib.annotations.parser.ASTVerifier
- Atomic(ClassName, ConfigTypeSource, ASTSettings.ConfigASTSettings, List<AbstractConfigStructure>, ASTParentReference, List<Property>) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Creates an instance of a
Atomic
record class.
B
C
- Cached<T> - Class in me.bristermitten.mittenlib.util
-
A
Supplier
which caches the value it supplies. - Cached(Supplier<T>) - Constructor for class me.bristermitten.mittenlib.util.Cached
-
Create a new Cached with the given supplier, lazily computing the value.
- Cached(Supplier<T>, boolean) - Constructor for class me.bristermitten.mittenlib.util.Cached
-
Create a new Cached with the given supplier.
- CachingConfigProvider<T> - Class in me.bristermitten.mittenlib.config.provider
-
A ConfigProvider which caches the config to avoid repeated file reads.
- CachingConfigProvider(ConfigProvider<T>) - Constructor for class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
-
Create a new CachingConfigProvider, lazily computing the config.
- capitalize(String) - Static method in class me.bristermitten.mittenlib.util.Strings
-
Capitalize the first letter of a given String "" → "" "hello" → "Hello" "HEllo" → "HEllo"
- CascadeToInnerClasses - Annotation Interface in me.bristermitten.mittenlib.config.generate
-
If an Annotation should also apply to inner / nested classes This is similar to
Inherited
but doesn't require a sub/superclass relation, which better suits the patterns often used in config DTO types. - CASE_INSENSITIVE - Enum constant in enum class me.bristermitten.mittenlib.config.EnumParsingSchemes
-
Requires the name to exactly match, but case insensitively
- Cast - Class in me.bristermitten.mittenlib.util
-
Utility class for casting objects
- ClassConfigTypeSource(TypeElement, Optional<TypeMirror>) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Creates an instance of a
ClassConfigTypeSource
record class. - className() - Element in annotation interface me.bristermitten.mittenlib.config.Config
-
The class name of the generated class.
- clearCache() - Method in class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
- clearCache() - Method in interface me.bristermitten.mittenlib.config.provider.ConfigProvider
-
Clear any and all cached config, if applicable.
- clearCache() - Method in class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
- clearCache() - Method in class me.bristermitten.mittenlib.config.provider.FileWatchingConfigProvider
- clearCache() - Method in class me.bristermitten.mittenlib.config.provider.ReadingConfigProvider
- CollectionsUtils - Class in me.bristermitten.mittenlib.config
-
Utility for deserializing collections using the MittenLib config system.
- Command - Class in me.bristermitten.mittenlib.commands
-
A command Classes should extend this instead of
BaseCommand
. - Command() - Constructor for class me.bristermitten.mittenlib.commands.Command
- CommandManagerProvider - Class in me.bristermitten.mittenlib.commands
-
A provider for
PaperCommandManager
. - CommandsModule - Class in me.bristermitten.mittenlib.commands
-
A Guice module for registering commands.
- CommandsModule() - Constructor for class me.bristermitten.mittenlib.commands.CommandsModule
- compareTo(Version) - Method in class me.bristermitten.mittenlib.util.Version
- CompositeType - Class in me.bristermitten.mittenlib.util
-
A
ParameterizedType
that can take a dynamic number of type arguments. - CompositeType(Class<?>, Class<?>...) - Constructor for class me.bristermitten.mittenlib.util.CompositeType
-
Creates a new CompositeType
- CompoundLangMessage - Class in me.bristermitten.mittenlib.lang
-
A message that is composed of multiple
LangMessage
s This allowsLangMessage
s to be easily "concatenated", allowing for more complex messages to be created - CompoundLangMessage(List<LangMessage>) - Constructor for class me.bristermitten.mittenlib.lang.CompoundLangMessage
-
Create a new CompoundLangMessage
- CompoundLangMessage(List<LangMessage>, LangMessage...) - Constructor for class me.bristermitten.mittenlib.lang.CompoundLangMessage
-
Create a new CompoundLangMessage, concatenating the 2 inputs.
- CompoundLangMessage(LangMessage...) - Constructor for class me.bristermitten.mittenlib.lang.CompoundLangMessage
-
Create a new CompoundLangMessage
- computeCatching(SafeSupplier<Result<T>>) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Safely executes a
SafeSupplier
that returns anotherResult
, wrapping the returnedResult
's value or any thrown exception in aResult
- concat(Set<E>, Set<E>) - Static method in class me.bristermitten.mittenlib.collections.Sets
-
Deprecated.
- concretePropertyClassName(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the concrete property class name for a type mirror.
- concretePropertyClassName(Property) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the concrete property class name for a property.
- Config - Annotation Interface in me.bristermitten.mittenlib.config
-
Marks a type as a DTO type that will be processed by the annotation processor, if present.
- ConfigASTSettings(NamingPattern, Source, boolean) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Creates an instance of a
ConfigASTSettings
record class. - ConfigClassParser - Class in me.bristermitten.mittenlib.annotations.parser
- ConfigClassParser(TypesUtil, ElementsFinder, ConfigNameCache) - Constructor for class me.bristermitten.mittenlib.annotations.parser.ConfigClassParser
- ConfigDeserialisationException - Exception Class in me.bristermitten.mittenlib.config.exception
- ConfigDeserialisationException() - Constructor for exception class me.bristermitten.mittenlib.config.exception.ConfigDeserialisationException
- ConfigImplGenerator - Class in me.bristermitten.mittenlib.annotations.compile
- ConfigImplGenerator(AccessorGenerator, DeserializationCodeGenerator, ToStringGenerator, EqualsHashCodeGenerator, ConfigurationClassNameGenerator, ConfigNameCache, MethodNames) - Constructor for class me.bristermitten.mittenlib.annotations.compile.ConfigImplGenerator
- ConfigInitializationStrategy - Interface in me.bristermitten.mittenlib.config.paths
-
Responsible for setting up access to a config file
- ConfigLoadingErrors - Class in me.bristermitten.mittenlib.config.exception
- ConfigLoadingErrors() - Constructor for class me.bristermitten.mittenlib.config.exception.ConfigLoadingErrors
- ConfigMapLoader - Class in me.bristermitten.mittenlib.config
-
Used in generated code to help with the loading of config maps
- ConfigModule - Class in me.bristermitten.mittenlib.config
-
Guice module for config handling
- ConfigModule(Set<Configuration<?>>) - Constructor for class me.bristermitten.mittenlib.config.ConfigModule
-
Create a new ConfigModule
- configName() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns the value of the
configName
record component. - ConfigName - Annotation Interface in me.bristermitten.mittenlib.config.names
-
Marks an expected name for a field in a config file.
- ConfigNameCache - Class in me.bristermitten.mittenlib.annotations.compile
-
A cache for AbstractConfigStructure objects indexed by their class names.
- ConfigNameCache() - Constructor for class me.bristermitten.mittenlib.annotations.compile.ConfigNameCache
- ConfigPathResolver - Interface in me.bristermitten.mittenlib.config.paths
-
Responsible for turning simple file names into
Path
s - ConfigProcessingException - Exception Class in me.bristermitten.mittenlib.annotations.exception
-
General exception thrown when the config annotation processor fails
- ConfigProcessingException(String, Throwable) - Constructor for exception class me.bristermitten.mittenlib.annotations.exception.ConfigProcessingException
-
Create a new ConfigProcessingException with the given message and cause
- ConfigProcessor - Class in me.bristermitten.mittenlib.annotations.config
-
Annotation processor for generating configuration classes from DTO classes marked with
Config
. - ConfigProcessor() - Constructor for class me.bristermitten.mittenlib.annotations.config.ConfigProcessor
-
Public constructor for the compiler
- ConfigProcessorModule - Class in me.bristermitten.mittenlib.annotations.compile
-
Guice module for the configuration annotation processor.
- ConfigProcessorModule(ProcessingEnvironment) - Constructor for class me.bristermitten.mittenlib.annotations.compile.ConfigProcessorModule
-
Creates a new ConfigProcessorModule with the given processing environment.
- ConfigProvider<T> - Interface in me.bristermitten.mittenlib.config.provider
-
A
Provider
for a config typeConfigProvider
, optionally specifying aPath
representing the config file. - ConfigProviderFactory - Interface in me.bristermitten.mittenlib.config.provider.construct
-
Creates
ConfigProvider
s forConfiguration
s - ConfigProviderImprover - Interface in me.bristermitten.mittenlib.config.provider.construct
-
Improves a
ConfigProvider
by wrapping it with (possible) extra functionality. - ConfigReader - Class in me.bristermitten.mittenlib.config.reader
-
Responsible for both reading and mapping data, delegating to
ObjectLoader
s andObjectMapper
s - ConfigTypeSource - Interface in me.bristermitten.mittenlib.annotations.ast
-
Where a config came from (its declaring class/interface annotated with @
Config
) - ConfigTypeSource.ClassConfigTypeSource - Record Class in me.bristermitten.mittenlib.annotations.ast
- ConfigTypeSource.InterfaceConfigTypeSource - Record Class in me.bristermitten.mittenlib.annotations.ast
- ConfigUnion - Annotation Interface in me.bristermitten.mittenlib.config
-
Denotes a type as the root of a union
- Configuration<T> - Class in me.bristermitten.mittenlib.config
-
Represents a loadable configuration which will deserialize to an object of type
Configuration
- Configuration(String, Class<T>, DeserializationFunction<T>) - Constructor for class me.bristermitten.mittenlib.config.Configuration
-
Create a new Configuration
- ConfigurationClassNameGenerator - Class in me.bristermitten.mittenlib.annotations.compile
-
Responsible for generating proper class names for configuration classes.
- configure() - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigProcessorModule
-
Configures the Guice bindings for this module.
- configure() - Method in class me.bristermitten.mittenlib.commands.CommandsModule
- configure() - Method in class me.bristermitten.mittenlib.config.ConfigModule
- configure() - Method in class me.bristermitten.mittenlib.config.PluginConfigModule
- configure() - Method in class me.bristermitten.mittenlib.files.FileTypeModule
- configure() - Method in class me.bristermitten.mittenlib.lang.format.hook.HookModule
- configure() - Method in class me.bristermitten.mittenlib.lang.LangModule
- configure() - Method in class me.bristermitten.mittenlib.minimessage.MiniMessageModule
- configure() - Method in class me.bristermitten.mittenlib.MittenLibModule
- configure() - Method in class me.bristermitten.mittenlib.papi.PAPIModule
- configure() - Method in class me.bristermitten.mittenlib.watcher.FileWatcherModule
- ConfigVerificationErrors - Class in me.bristermitten.mittenlib.annotations.parser
- ConfigVerificationErrors() - Constructor for class me.bristermitten.mittenlib.annotations.parser.ConfigVerificationErrors
- constant(R) - Static method in class me.bristermitten.mittenlib.util.lambda.Functions
-
A function that always returns the same value, ignoring the input
- constant(R) - Static method in interface me.bristermitten.mittenlib.util.lambda.IOFunction
-
A
IOFunction
that always returns the same value, ignoring the input. - constant(R) - Static method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction
-
A
SafeFunction
that always returns the same value, ignoring the input. - consume(T) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeConsumer
-
Consume the input, possibly throwing an exception.
- consume(T, T2) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeBiConsumer
-
Consume the input, possibly throwing an exception.
- create(Gson, TypeToken<T>) - Method in class me.bristermitten.mittenlib.config.tree.DataTreeTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class me.bristermitten.mittenlib.lang.LangMessageTypeAdapterFactory
- create(OfflinePlayer) - Method in interface me.bristermitten.mittenlib.lang.format.AbstractMiniMessageFactory
-
Create a
MiniMessage
instance for a player. - create(OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.DefaultMiniMessageFactory
-
Create a
MiniMessage
instance for a player. - createConfigImplClassName(ClassName) - Static method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Creates a class name for the implementation of a DTO class.
- createConfigImplClassName(AbstractConfigStructure) - Static method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Creates a class name for the implementation of a configuration structure.
- createDeserializeMethodFor(TypeElement, AbstractConfigStructure, Property) - Method in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
-
Creates a deserialization method for a specific field in a DTO class.
- createDeserializeMethods(TypeSpec.Builder, AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
-
Creates the main deserialization method for a config class.
- createGetterMethod(TypeSpec.Builder, VariableElement, FieldSpec) - Method in class me.bristermitten.mittenlib.annotations.compile.AccessorGenerator
-
Creates a getter method for a field.
- createGetterMethodOverriding(TypeSpec.Builder, ExecutableElement, FieldSpec) - Method in class me.bristermitten.mittenlib.annotations.compile.AccessorGenerator
-
Creates a getter method that overrides an existing method.
- createLangMessage() - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- createProvider(Configuration<T>) - Method in interface me.bristermitten.mittenlib.config.provider.construct.ConfigProviderFactory
-
Creates the simplest
ConfigProvider
possible for the givenConfiguration
. - createProvider(Configuration<T>) - Method in class me.bristermitten.mittenlib.config.provider.construct.SimpleConfigProviderFactory
- createStringReaderProvider(String, Configuration<T>) - Method in interface me.bristermitten.mittenlib.config.provider.construct.ConfigProviderFactory
-
Deprecated.This method makes use of
SearchingObjectLoader
, which cannot efficiently process Strings. UseConfigProviderFactory.createStringReaderProvider(FileType, String, Configuration)
instead to manually specify a file type - createStringReaderProvider(String, Configuration<T>) - Method in class me.bristermitten.mittenlib.config.provider.construct.SimpleConfigProviderFactory
- createStringReaderProvider(FileType, String, Configuration<T>) - Method in interface me.bristermitten.mittenlib.config.provider.construct.ConfigProviderFactory
-
Creates a
ConfigProvider
that reads a given String for its data, rather than a file. - createStringReaderProvider(FileType, String, Configuration<T>) - Method in class me.bristermitten.mittenlib.config.provider.construct.SimpleConfigProviderFactory
- createWithMethods(TypeSpec.Builder, AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.compile.AccessorGenerator
-
Creates "with" methods (immutable setters) for each field.
- curry(T) - Method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction2
-
Curry the first argument of this function, returning a
SafeFunction
that takes only the second argument. - CUSTOM_DESERIALIZER_INVALID_STATIC_METHOD_SIGNATURE - Static variable in class me.bristermitten.mittenlib.annotations.parser.ConfigVerificationErrors
- CustomDeserializer<T> - Interface in me.bristermitten.mittenlib.config.extension
- CustomDeserializerFor - Annotation Interface in me.bristermitten.mittenlib.config.extension
- CustomDeserializerInfo - Record Class in me.bristermitten.mittenlib.annotations.ast
- CustomDeserializerInfo(TypeElement, boolean, boolean, boolean) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Creates an instance of a
CustomDeserializerInfo
record class. - CustomDeserializers - Class in me.bristermitten.mittenlib.annotations.parser
- CustomDeserializers() - Constructor for class me.bristermitten.mittenlib.annotations.parser.CustomDeserializers
D
- DataTree - Class in me.bristermitten.mittenlib.config.tree
-
Like
JsonElement
but without a strict dependency on json - DataTree.DataTreeArray - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeLiteral - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeLiteral.DataTreeLiteralBoolean - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeLiteral.DataTreeLiteralFloat - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeLiteral.DataTreeLiteralInt - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeLiteral.DataTreeLiteralString - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeMap - Class in me.bristermitten.mittenlib.config.tree
- DataTree.DataTreeNull - Class in me.bristermitten.mittenlib.config.tree
- DataTreeArray(DataTree[]) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- dataTreeConvert(TypeName, TypeName, CodeBlock) - Method in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
- DataTreeLiteral() - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral
- DataTreeLiteralBoolean(boolean) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralBoolean
- DataTreeLiteralFloat(double) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralFloat
- DataTreeLiteralInt(long) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralInt
- DataTreeLiteralString(String) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralString
- DataTreeMap(Map<DataTree, DataTree>) - Constructor for class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- DataTreeTransforms - Class in me.bristermitten.mittenlib.config.tree
- DataTreeTransforms() - Constructor for class me.bristermitten.mittenlib.config.tree.DataTreeTransforms
- DataTreeTypeAdapter - Class in me.bristermitten.mittenlib.config.tree
- DataTreeTypeAdapterFactory - Class in me.bristermitten.mittenlib.config.tree
- DataTreeTypeAdapterFactory() - Constructor for class me.bristermitten.mittenlib.config.tree.DataTreeTypeAdapterFactory
- DEFAULT - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
Match the field name
- DefaultMiniMessageFactory - Class in me.bristermitten.mittenlib.lang.format
-
Default implementation of
AbstractMiniMessageFactory
. - DefaultMiniMessageFactory() - Constructor for class me.bristermitten.mittenlib.lang.format.DefaultMiniMessageFactory
- defaultTypes() - Static method in class me.bristermitten.mittenlib.files.FileTypes
- DelegatingConfigProvider<T> - Class in me.bristermitten.mittenlib.config.provider
-
A
ConfigProvider
which delegates to anotherConfigProvider
, improving it with aConfigProviderImprover
- DelegatingConfigProvider(Configuration<T>) - Constructor for class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
-
Create a new DelegatingConfigProvider
- DeserializationCodeGenerator - Class in me.bristermitten.mittenlib.annotations.compile
-
Generates deserialization code for configuration classes.
- DeserializationCodeGenerator(TypesUtil, FieldNameGenerator, ConfigurationClassNameGenerator, MethodNames, CustomDeserializers) - Constructor for class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
- DeserializationContext - Class in me.bristermitten.mittenlib.config
-
Context for deserializing a config, making it easier to pass around
- DeserializationContext(ObjectMapper, DataTree) - Constructor for class me.bristermitten.mittenlib.config.DeserializationContext
-
Create a new DeserializationContext
- DeserializationFunction<T> - Interface in me.bristermitten.mittenlib.config
-
A function that deserializes a config, taking a
DeserializationContext
and returning aResult
of typeDeserializationFunction
- DESERIALIZE_METHOD_PREFIX - Static variable in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
-
The prefix for all generated deserialization methods.
- deserializeList(Object, DeserializationContext, DeserializationFunction<T>) - Static method in class me.bristermitten.mittenlib.config.CollectionsUtils
-
Attempt to deserialize a list using the MittenLib config system.
- deserializeMap(Class<K>, Object, DeserializationContext, DeserializationFunction<V>) - Static method in class me.bristermitten.mittenlib.config.CollectionsUtils
-
Attempt to deserialise a map using the MittenLib config system.
- deserializerClass() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns the value of the
deserializerClass
record component. - difference(Set<E>, Set<E>) - Static method in class me.bristermitten.mittenlib.collections.Sets
-
Return a new set containing the difference of 2 sets, i.e.
- DTOReferenceException - Exception Class in me.bristermitten.mittenlib.annotations.exception
-
Thrown when a DTO class references an invalid type
- DTOReferenceException(TypeMirror, GeneratedTypeCache, Class<?>, Element) - Constructor for exception class me.bristermitten.mittenlib.annotations.exception.DTOReferenceException
-
Create a new DTOReferenceException
E
- element() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Returns the value of the
element
record component. - element() - Method in interface me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource
- element() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Returns the value of the
element
record component. - element() - Method in interface me.bristermitten.mittenlib.annotations.ast.Property.PropertySource
- element() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.FieldSource
-
Returns the value of the
element
record component. - element() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.MethodSource
-
Returns the value of the
element
record component. - ElementsFinder - Class in me.bristermitten.mittenlib.annotations.util
-
Helper class for working with
Elements
- emit(AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigImplGenerator
-
Generates a JavaFile containing the implementation class for the given configuration structure.
- empty(T) - Static method in class me.bristermitten.mittenlib.MittenLib
- enclosed() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
enclosed
record component. - enclosed() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- enclosed() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
enclosed
record component. - enclosed() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
- enclosedIn() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
enclosedIn
record component. - enclosedIn() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- enclosedIn() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
enclosedIn
record component. - enclosedIn() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
enclosedIn
record component. - ENUM_PARSING_SCHEME_NOT_ENUM - Static variable in class me.bristermitten.mittenlib.annotations.parser.ConfigVerificationErrors
- enumParsingScheme() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns the value of the
enumParsingScheme
record component. - EnumParsingScheme - Annotation Interface in me.bristermitten.mittenlib.config
- EnumParsingSchemes - Enum Class in me.bristermitten.mittenlib.config
- Enums - Class in me.bristermitten.mittenlib.util
-
Utility class for enums
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.FieldSource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.MethodSource
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralBoolean
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralFloat
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralInt
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralString
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- equals(Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeNull
- equals(Object) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- equals(Object) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- equals(Object) - Method in class me.bristermitten.mittenlib.util.Unit
- equals(Object) - Method in class me.bristermitten.mittenlib.util.Version
- EqualsHashCodeGenerator - Class in me.bristermitten.mittenlib.annotations.compile
-
Generates equals and hashCode methods for configuration classes.
- EqualsHashCodeGenerator(MethodNames) - Constructor for class me.bristermitten.mittenlib.annotations.compile.EqualsHashCodeGenerator
- error() - Method in interface me.bristermitten.mittenlib.util.Result
-
If this
Result
isResult.Fail
, returns the exception. - error() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- error() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- Errors - Class in me.bristermitten.mittenlib.util
-
Utility class for dealing with
Throwable
s - EXACT_MATCH - Enum constant in enum class me.bristermitten.mittenlib.config.EnumParsingSchemes
-
Requires the name to exactly match
- execCatching(SafeRunnable) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Safely executes a
SafeRunnable
, ignoring the result and wrapping any thrown exception in aResult
- ExtraTypeAdapter<T> - Class in me.bristermitten.mittenlib.files.json
-
A thin wrapper over a
TypeAdapter
that also stores the type it is for. - ExtraTypeAdapter() - Constructor for class me.bristermitten.mittenlib.files.json.ExtraTypeAdapter
F
- fail(E) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Create a
Result
from a given exception. - Fallback - Annotation Interface in me.bristermitten.mittenlib.config.extension
-
Marks a custom deserializer as a fallback deserializer.
- FieldNameGenerator - Class in me.bristermitten.mittenlib.annotations.compile
-
Responsible for generating serial keys based on DTO fields
- FieldSource(VariableElement) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.FieldSource
-
Creates an instance of a
FieldSource
record class. - FileType - Interface in me.bristermitten.mittenlib.files
-
A specific type of file such as JSON or YAML which can be loaded into a Map-like data structure.
- FileTypeModule - Class in me.bristermitten.mittenlib.files
- FileTypeModule() - Constructor for class me.bristermitten.mittenlib.files.FileTypeModule
-
Create a new FileTypeModule, using
FileTypes.defaultTypes()
andGsonObjectMapper
- FileTypeModule(FileTypes, Class<? extends ObjectMapper>) - Constructor for class me.bristermitten.mittenlib.files.FileTypeModule
-
Create a new FileTypeModule, using a provided
FileTypes
andObjectMapper
class - FileTypes - Class in me.bristermitten.mittenlib.files
-
Stores all the known
FileType
classes, used for registration in theFileTypeModule
- FileTypes(Set<Class<? extends FileType>>) - Constructor for class me.bristermitten.mittenlib.files.FileTypes
-
Create a new FileTypes instance
- FileWatcher - Class in me.bristermitten.mittenlib.watcher
-
A watcher for a file.
- FileWatcher(Path, Consumer<WatchEvent<Path>>) - Constructor for class me.bristermitten.mittenlib.watcher.FileWatcher
-
Create a new FileWatcher
- FileWatcherException - Exception Class in me.bristermitten.mittenlib.watcher
-
Exception thrown when there is an error with file watching operations.
- FileWatcherException(String) - Constructor for exception class me.bristermitten.mittenlib.watcher.FileWatcherException
-
Creates a new FileWatcherException with the specified message.
- FileWatcherException(String, Throwable) - Constructor for exception class me.bristermitten.mittenlib.watcher.FileWatcherException
-
Creates a new FileWatcherException with the specified message and cause.
- FileWatcherModule - Class in me.bristermitten.mittenlib.watcher
-
Sets up the
FileWatcherService
- FileWatcherModule() - Constructor for class me.bristermitten.mittenlib.watcher.FileWatcherModule
- FileWatcherService - Class in me.bristermitten.mittenlib.watcher
-
Handles file watching operations.
- FileWatchingConfigProvider<T> - Class in me.bristermitten.mittenlib.config.provider
-
A
ConfigProvider
that watches a file for changes, reloading the config when the file changes - FileWatchingConfigProvider(CachingConfigProvider<T>, FileWatcherService) - Constructor for class me.bristermitten.mittenlib.config.provider.FileWatchingConfigProvider
-
Create a new FileWatchingConfigProvider
- flatMap(SafeFunction<T, Result<R>>) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- flatMap(SafeFunction<T, Result<R>>) - Method in interface me.bristermitten.mittenlib.util.Result
-
Applies a function to the
Result
, passing through the exception if theResult
isResult.Fail
This allows the composition ofResult
-ful functions, makingResult
a monad (technically not a lawful monad because the function can throw exceptions) - flatMap(SafeFunction<T, Result<R>>) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- flatMapPure(Function<T, Result<R>>) - Method in interface me.bristermitten.mittenlib.util.Result
-
Like
Result.flatMap(SafeFunction)
, but the function cannot throw checked exceptions - format(String, NamingPatterns) - Static method in class me.bristermitten.mittenlib.config.names.NamingPatternTransformer
-
Format a given input string into a different format based on a
NamingPatterns
- format(String, OfflinePlayer) - Method in interface me.bristermitten.mittenlib.lang.format.hook.FormattingHook
-
Format a String, returning the formatted String.
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.hook.HexColorFixerHook
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.hook.LegacyCodeUpdaterHook
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.hook.SimpleColorCodeHook
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.hook.SimpleFormattingHook
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.hook.StringReplacingHook
- format(String, OfflinePlayer) - Method in interface me.bristermitten.mittenlib.lang.format.MessageFormatter
-
Completely format a String into a
Component
, applying allFormattingHook
s to the String. - format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.MiniMessageFormatter
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.SimpleMessageFormatter
- format(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.hook.PAPIFormattingHook
- FormattingHook - Interface in me.bristermitten.mittenlib.lang.format.hook
-
A hook for formatting a String.
- Functions - Class in me.bristermitten.mittenlib.util.lambda
-
Utility class for dealing with
Function
s - Futures - Class in me.bristermitten.mittenlib.util
-
Utility class for working with
Future
s andCompletableFuture
s
G
- generateConfigurationClassName(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Generates a ClassName for the actual generated configuration class from a given DTO, using the package of the given
TypeElement
. - GeneratedConfig - Annotation Interface in me.bristermitten.mittenlib.config
-
Marks a class as being generated from a config DTO.
- GeneratedTypeCache - Class in me.bristermitten.mittenlib.annotations.compile
-
This class should not be treated as a public API, and is subject to change at any time.
- GeneratedTypeCache() - Constructor for class me.bristermitten.mittenlib.annotations.compile.GeneratedTypeCache
- generateEquals(ClassName, List<Property>) - Method in class me.bristermitten.mittenlib.annotations.compile.EqualsHashCodeGenerator
-
Generates an equals method for a configuration class.
- generateHashCode(List<Property>) - Method in class me.bristermitten.mittenlib.annotations.compile.EqualsHashCodeGenerator
-
Generates a hashCode method for a configuration class.
- generateToString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Returns the value of the
generateToString
record component. - generateToString(List<Property>, ClassName) - Method in class me.bristermitten.mittenlib.annotations.config.ToStringGenerator
-
Generates a toString method for a configuration class.
- GenerateToString - Annotation Interface in me.bristermitten.mittenlib.config.generate
-
Instructs the annotation processor to generate a toString method for a generated config class.
- get() - Method in class me.bristermitten.mittenlib.commands.CommandManagerProvider
- get() - Method in class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
- get() - Method in class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
- get() - Method in class me.bristermitten.mittenlib.config.provider.FileWatchingConfigProvider
- get() - Method in class me.bristermitten.mittenlib.config.provider.ReadingConfigProvider
- get() - Method in class me.bristermitten.mittenlib.config.provider.StringReadingConfigProvider
- get() - Method in class me.bristermitten.mittenlib.files.json.GsonProvider
- get() - Method in class me.bristermitten.mittenlib.lang.AdventureAudienceProvider
- get() - Method in class me.bristermitten.mittenlib.util.Cached
-
Get the cached value, computing it if it is not already cached.
- get() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeSupplier
-
Gets a result, possibly throwing an exception.
- get() - Method in class me.bristermitten.mittenlib.watcher.WatchServiceProvider
- get(String) - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- get(String) - Method in class me.bristermitten.mittenlib.config.tree.DataTree
- getActionBar() - Method in class me.bristermitten.mittenlib.lang.LangMessage
- getActualTypeArguments() - Method in class me.bristermitten.mittenlib.util.CompositeType
- getAllMethods(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.util.ElementsFinder
-
Get all the methods in a given
TypeElement
, including inherited ones. - getAnnotation(Element, Class<A>) - Method in class me.bristermitten.mittenlib.annotations.util.TypesUtil
-
Gets an
Annotation
present on anElement
, if present. - getApplicableVariableElements(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.util.ElementsFinder
-
Get all the
VariableElement
s in a givenTypeElement
that should be included in the generated config class. - getB() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getBoxedType(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.util.TypesUtil
-
Get a boxed version of a given type, if it is a primitive.
- getByName(String) - Method in class me.bristermitten.mittenlib.annotations.compile.GeneratedTypeCache
-
Gets all the known DTO classes which generate a configuration class with the given qualified name
- getC() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getCatching() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeSupplier
-
Get the result, catching any exceptions and wrapping them in a
Result
- getComponents() - Method in class me.bristermitten.mittenlib.lang.CompoundLangMessage
- getConcreteConfigClassName(AbstractConfigStructure) - Static method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the concrete class name for a config structure.
- getConfigClassName(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get a suitable configuration class name for the given type mirror.
- getConfigClassName(TypeMirror, Element) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get a suitable configuration class name for the given type mirror, performing edge case checks for primitives, unnamed packages, and generated config references.
- getConfigFieldName(Property) - Method in class me.bristermitten.mittenlib.annotations.compile.FieldNameGenerator
-
Get a suitable serialization key for a given property.
- getConfigPath(String) - Method in interface me.bristermitten.mittenlib.config.paths.ConfigPathResolver
-
Resolve a file name to a
Path
- getConfigPath(String) - Method in class me.bristermitten.mittenlib.config.paths.JarResourcesConfigPathResolver
- getConfigPath(String) - Method in class me.bristermitten.mittenlib.config.paths.PluginConfigPathResolver
- getConfigPropertyClassName(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the config property class name for a type mirror.
- getCustomDeserializer(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.parser.CustomDeserializers
- getD() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getData() - Method in class me.bristermitten.mittenlib.config.DeserializationContext
- getDelegate() - Method in class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
- getDeserializeFunction() - Method in class me.bristermitten.mittenlib.config.Configuration
- getDeserializeMethodName(TypeName) - Method in class me.bristermitten.mittenlib.annotations.compile.MethodNames
-
Deprecated.
- getDeserializeMethodName(AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.compile.MethodNames
-
Gets the name of the deserialization method for a configuration structure.
- getE() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getF() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getFailures() - Method in exception class me.bristermitten.mittenlib.util.MultipleFailuresException
- getFileName() - Method in class me.bristermitten.mittenlib.config.Configuration
- getG() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getH() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getI() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getJ() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getK() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getL() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getM() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getMajor() - Method in class me.bristermitten.mittenlib.util.Version
- getMapper() - Method in class me.bristermitten.mittenlib.config.DeserializationContext
- getMessage() - Method in exception class me.bristermitten.mittenlib.annotations.exception.DTOReferenceException
- getMessage() - Method in exception class me.bristermitten.mittenlib.config.exception.InvalidEnumValueException
- getMessage() - Method in exception class me.bristermitten.mittenlib.config.exception.PropertyNotFoundException
- getMessage() - Method in class me.bristermitten.mittenlib.lang.LangMessage
- getMessage() - Method in exception class me.bristermitten.mittenlib.util.MultipleFailuresException
- getMinor() - Method in class me.bristermitten.mittenlib.util.Version
- getN() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getName() - Method in class me.bristermitten.mittenlib.MittenLibConsumer
- getO() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- getOnModify() - Method in class me.bristermitten.mittenlib.watcher.FileWatcher
- getOrDefault(String, Object) - Method in class me.bristermitten.mittenlib.config.tree.DataTree
- getOrThrow() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- getOrThrow() - Method in interface me.bristermitten.mittenlib.util.Result
- getOrThrow() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- getOwnerType() - Method in class me.bristermitten.mittenlib.util.CompositeType
- getP() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson.LGson
- getPatch() - Method in class me.bristermitten.mittenlib.util.Version
- getPitch() - Method in class me.bristermitten.mittenlib.lang.LangMessage.SoundConfig
- getPropertyMethods(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.util.ElementsFinder
- getPublicClassName(AbstractConfigStructure) - Static method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the public class name for a config structure.
- getQ() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson.LGson
- getRawType() - Method in class me.bristermitten.mittenlib.util.CompositeType
- getSafeType(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.util.TypesUtil
-
Get a "safe" version of a type, where "safe" refers to being able to use it as the target of a
instanceof
check without compilation errors This is defined as the boxed type for primitives, the erasure for parameterized types, otherwise simply the type itself Examples:int -> Integer
Map<String, Integer> -> Map
String -> String
- getServerVersion() - Static method in class me.bristermitten.mittenlib.util.Version
- getSound() - Method in class me.bristermitten.mittenlib.lang.LangMessage
- getSound() - Method in class me.bristermitten.mittenlib.lang.LangMessage.SoundConfig
- getSubtitle() - Method in class me.bristermitten.mittenlib.lang.LangMessage
- getTitle() - Method in class me.bristermitten.mittenlib.lang.LangMessage
- getType() - Method in class me.bristermitten.mittenlib.config.Configuration
- getTypeName() - Method in class me.bristermitten.mittenlib.util.CompositeType
- getTypes() - Method in class me.bristermitten.mittenlib.files.FileTypes
- getValues() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- getVolume() - Method in class me.bristermitten.mittenlib.lang.LangMessage.SoundConfig
- getWatching() - Method in class me.bristermitten.mittenlib.watcher.FileWatcher
- getWrapped() - Method in class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
- getWrapped() - Method in class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
- getWrapped() - Method in class me.bristermitten.mittenlib.config.provider.FileWatchingConfigProvider
- getWrapped() - Method in interface me.bristermitten.mittenlib.config.provider.WrappingConfigProvider
- GsonObjectLoader - Class in me.bristermitten.mittenlib.files.json
-
An
ObjectLoader
that uses Gson to parse a JSON string - GsonObjectMapper - Class in me.bristermitten.mittenlib.files.json
-
An
ObjectMapper
implementation usingGson
. - GsonProvider - Class in me.bristermitten.mittenlib.files.json
-
Standard provider for
Gson
instances.
H
- handle(Function<T, R>, Function<Exception, R>) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- handle(Function<T, R>, Function<Exception, R>) - Method in interface me.bristermitten.mittenlib.util.Result
- handle(Function<T, R>, Function<Exception, R>) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- hasDefaultValue() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns the value of the
hasDefaultValue
record component. - hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.FieldSource
-
Returns a hash code value for this object.
- hashCode() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.MethodSource
-
Returns a hash code value for this object.
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralBoolean
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralFloat
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralInt
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralString
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- hashCode() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeNull
- hashCode() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- hashCode() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- hashCode() - Method in class me.bristermitten.mittenlib.util.Unit
- hashCode() - Method in class me.bristermitten.mittenlib.util.Version
- HexColorFixerHook - Class in me.bristermitten.mittenlib.lang.format.hook
-
This is a truly outrageous hack Essentially, when a papi expansion returns a hex color, it doesn't get parsed properly by MiniMessage and instead it just takes it to the nearest legacy color This class tries to parse the §x§a...
- HexColorFixerHook() - Constructor for class me.bristermitten.mittenlib.lang.format.hook.HexColorFixerHook
- HookModule - Class in me.bristermitten.mittenlib.lang.format.hook
-
Guice module for registering common
FormattingHook
s - HookModule() - Constructor for class me.bristermitten.mittenlib.lang.format.hook.HookModule
- hooks - Variable in class me.bristermitten.mittenlib.lang.format.AbstractMessageFormatter
-
The set of
FormattingHook
s to use.
I
- id() - Method in interface me.bristermitten.mittenlib.commands.handlers.ArgumentCondition
-
The id of this condition.
- id() - Method in interface me.bristermitten.mittenlib.commands.handlers.NamedCondition
- id() - Method in interface me.bristermitten.mittenlib.commands.handlers.TabCompleter
- ifOk(SafeConsumer<T>) - Method in interface me.bristermitten.mittenlib.util.Result
- improve(ConfigProvider<T>) - Method in interface me.bristermitten.mittenlib.config.provider.construct.ConfigProviderImprover
-
Improve a
ConfigProvider
by wrapping it with (possible) extra functionality. - improve(ConfigProvider<T>) - Method in class me.bristermitten.mittenlib.config.provider.construct.NoOpConfigProviderImprover
- improve(ConfigProvider<T>) - Method in class me.bristermitten.mittenlib.config.provider.construct.SimpleConfigProviderImprover
- initializeConfig(String) - Method in interface me.bristermitten.mittenlib.config.paths.ConfigInitializationStrategy
-
Attempt to initialize the config
- initializeConfig(String) - Method in class me.bristermitten.mittenlib.config.paths.NoOpConfigInitializationStrategy
- initializeConfig(String) - Method in class me.bristermitten.mittenlib.config.paths.PluginConfigInitializationStrategy
- INSTANCE - Static variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeNull
- InterfaceConfigTypeSource(TypeElement, List<TypeMirror>) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Creates an instance of a
InterfaceConfigTypeSource
record class. - Intersection(ClassName, ConfigTypeSource, ASTSettings.ConfigASTSettings, ASTParentReference, List<AbstractConfigStructure>, List<ClassName>, List<Property>) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Creates an instance of a
Intersection
record class. - invalidate() - Method in class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
-
Invalidate the cached config, causing it to be recomputed on the next call to
CachingConfigProvider.get()
. - invalidate() - Method in class me.bristermitten.mittenlib.util.Cached
-
Invalidate the cached value, causing it to be recomputed on the next call to
Cached.get()
. - invalidEnumException(Class<? extends Enum<?>>, String, Object) - Static method in class me.bristermitten.mittenlib.config.exception.ConfigLoadingErrors
- InvalidEnumValueException - Exception Class in me.bristermitten.mittenlib.config.exception
- InvalidEnumValueException(Class<? extends Enum<?>>, String, Object) - Constructor for exception class me.bristermitten.mittenlib.config.exception.InvalidEnumValueException
- invalidPropertyTypeException(Class<?>, String, String, Object) - Static method in class me.bristermitten.mittenlib.config.exception.ConfigLoadingErrors
- IOFunction<T,
R> - Interface in me.bristermitten.mittenlib.util.lambda -
Like
SafeFunction
but only forIOException
- isA() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- isConfigType(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.util.TypesUtil
-
Checks if a type is a config type (annotated with @Config).
- isFailure() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- isFailure() - Method in interface me.bristermitten.mittenlib.util.Result
- isFailure() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- isFallback() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns the value of the
isFallback
record component. - isGlobal() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns the value of the
isGlobal
record component. - isNewerThan(Version) - Method in class me.bristermitten.mittenlib.util.Version
- isNullable() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns the value of the
isNullable
record component. - isNullable(Element) - Method in class me.bristermitten.mittenlib.annotations.util.TypesUtil
-
Return if a
VariableElement
should be considered nullable or not Everything is considered non-nullable unless it is specifically annotated as nullable. - isOlderThan(Version) - Method in class me.bristermitten.mittenlib.util.Version
- isPrivate(String) - Static method in class me.bristermitten.mittenlib.annotations.util.PrivateAnnotations
- isStatic() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns the value of the
isStatic
record component. - isSuccess() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- isSuccess() - Method in interface me.bristermitten.mittenlib.util.Result
- isSuccess() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- IssuerAwareArgumentContext<T> - Interface in me.bristermitten.mittenlib.commands.handlers
-
An
ArgumentContext
that is aware of the issuer of the command and the argument's value. - IssuerOnlyArgumentContext<T> - Interface in me.bristermitten.mittenlib.commands.handlers
-
An
ArgumentContext
that is only aware of the issuer of the command, and not the argument's value. - isWatching() - Method in class me.bristermitten.mittenlib.watcher.FileWatcherService
J
- JarResourcesConfigPathResolver - Class in me.bristermitten.mittenlib.config.paths
- JarResourcesConfigPathResolver() - Constructor for class me.bristermitten.mittenlib.config.paths.JarResourcesConfigPathResolver
- joinWith(Collection<T>, Function<T, Object>, String) - Static method in class me.bristermitten.mittenlib.util.Strings
-
Join a collection of elements to a String using a given separator and toString function.
- joinWith(T[], Function<T, Object>, String) - Static method in class me.bristermitten.mittenlib.util.Strings
-
Join a collection of elements to a String using a given separator and toString function.
- JSONFileType - Class in me.bristermitten.mittenlib.files.json
- JSONFileType(GsonObjectLoader) - Constructor for class me.bristermitten.mittenlib.files.json.JSONFileType
L
- LangMessage - Class in me.bristermitten.mittenlib.lang
- LangMessage(String, String, String, String, LangMessage.SoundConfig) - Constructor for class me.bristermitten.mittenlib.lang.LangMessage
- LangMessage.SoundConfig - Class in me.bristermitten.mittenlib.lang
- LangMessageBuilder - Class in me.bristermitten.mittenlib.lang
- LangMessageBuilder() - Constructor for class me.bristermitten.mittenlib.lang.LangMessageBuilder
- LangMessageTypeAdapterFactory - Class in me.bristermitten.mittenlib.lang
-
Creates a
TypeAdapter
that can serialize elements with just a message to plain Strings (i.e not complex objects), and vice versa - LangMessageTypeAdapterFactory() - Constructor for class me.bristermitten.mittenlib.lang.LangMessageTypeAdapterFactory
- LangModule - Class in me.bristermitten.mittenlib.lang
- LangModule() - Constructor for class me.bristermitten.mittenlib.lang.LangModule
- LangService - Class in me.bristermitten.mittenlib.lang
- LangService(MessageFormatter, BukkitAudiences) - Constructor for class me.bristermitten.mittenlib.lang.LangService
- LegacyCodeUpdaterHook - Class in me.bristermitten.mittenlib.lang.format.hook
-
A
FormattingHook
that replaces legacy color codes with their MiniMessage equivalent. - LegacyCodeUpdaterHook() - Constructor for class me.bristermitten.mittenlib.lang.format.hook.LegacyCodeUpdaterHook
- LGson() - Constructor for class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson.LGson
- load(Reader) - Method in interface me.bristermitten.mittenlib.config.reader.ObjectLoader
-
Loads an object from the given source.
- load(Reader) - Method in class me.bristermitten.mittenlib.config.reader.SearchingObjectLoader
- load(Reader) - Method in class me.bristermitten.mittenlib.files.json.GsonObjectLoader
- load(Reader) - Method in class me.bristermitten.mittenlib.files.yaml.YamlObjectLoader
- load(String) - Method in interface me.bristermitten.mittenlib.config.reader.ObjectLoader
- load(String) - Method in class me.bristermitten.mittenlib.config.reader.SearchingObjectLoader
- load(Class<T>, Reader, DeserializationFunction<T>) - Method in class me.bristermitten.mittenlib.config.reader.ConfigReader
-
Read the data from the given reader, and map it to the given type
- load(Class<T>, String, DeserializationFunction<T>) - Method in class me.bristermitten.mittenlib.config.reader.ConfigReader
-
Read the data from the given string, and map it to the given type
- load(Class<T>, Path, DeserializationFunction<T>) - Method in class me.bristermitten.mittenlib.config.reader.ConfigReader
-
Read the data from the given path, and map it to the given type
- load(Path) - Method in interface me.bristermitten.mittenlib.config.reader.ObjectLoader
-
Loads an object from the given
Path
. - load(Path) - Method in class me.bristermitten.mittenlib.config.reader.SearchingObjectLoader
- load(Map<String, Object>, String, Class<T>, T, Function<Map<String, Object>, T>) - Static method in class me.bristermitten.mittenlib.config.ConfigMapLoader
-
Get a value from a map, or return an empty optional if the value is null This tries a few different ways to load the value: Cast if it is an instance of
type
If it is aMap
, usefromMap
Use the default value, if present If all of them fail, anIllegalArgumentException
is thrown - loader() - Method in interface me.bristermitten.mittenlib.files.FileType
- loader() - Method in class me.bristermitten.mittenlib.files.json.JSONFileType
- loader() - Method in class me.bristermitten.mittenlib.files.yaml.YamlFileType
- loadFrom(Object) - Static method in class me.bristermitten.mittenlib.config.tree.DataTreeTransforms
- lookupAST(ClassName) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigNameCache
-
Looks up an AbstractConfigStructure by its ClassName.
- lookupAST(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigNameCache
-
Looks up an AbstractConfigStructure by its TypeMirror.
- LOWER_CAMEL_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
lowerCamelCase.
- LOWER_KEBAB_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
lower-kebab-case
- LOWER_SNAKE_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
lower_snake_case
M
- map(A, Function<A, B>) - Static method in class me.bristermitten.mittenlib.util.Null
-
Applies the given function to the given value if it is not null, or returns null if it is.
- map(Object) - Method in interface me.bristermitten.mittenlib.config.reader.ObjectMapper
-
Turn a given object into a mapped object
- map(Object) - Method in class me.bristermitten.mittenlib.files.json.GsonObjectMapper
- map(Object, TypeToken<T>) - Method in interface me.bristermitten.mittenlib.config.reader.ObjectMapper
-
Map a given object and type to an object of the Type
- map(Object, TypeToken<T>) - Method in class me.bristermitten.mittenlib.files.json.GsonObjectMapper
- map(SafeFunction<T, R>) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- map(SafeFunction<T, R>) - Method in interface me.bristermitten.mittenlib.util.Result
-
Applies a given function to the
Result
, threading through the exception if theResult
isResult.Fail
. - map(SafeFunction<T, R>) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- MAP_STRING_OBJ_NAME - Static variable in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
- MapImpls - Class in me.bristermitten.mittenlib.collections
-
Implementations for immutable Maps used in
Maps
- Maps - Class in me.bristermitten.mittenlib.collections
-
Utility functions for creating immutable maps Unnecessary in Java 9+
- matches(Path) - Method in interface me.bristermitten.mittenlib.files.FileType
-
If the given path matches this file type.
- matches(Path) - Method in class me.bristermitten.mittenlib.files.json.JSONFileType
- matches(Path) - Method in class me.bristermitten.mittenlib.files.yaml.YamlFileType
- me.bristermitten.mittenlib - package me.bristermitten.mittenlib
- me.bristermitten.mittenlib.annotation.benchmark - package me.bristermitten.mittenlib.annotation.benchmark
- me.bristermitten.mittenlib.annotations.ast - package me.bristermitten.mittenlib.annotations.ast
-
The structure of a config's data in a more abstract form than a class hierarchy.
- me.bristermitten.mittenlib.annotations.compile - package me.bristermitten.mittenlib.annotations.compile
- me.bristermitten.mittenlib.annotations.config - package me.bristermitten.mittenlib.annotations.config
- me.bristermitten.mittenlib.annotations.exception - package me.bristermitten.mittenlib.annotations.exception
- me.bristermitten.mittenlib.annotations.parser - package me.bristermitten.mittenlib.annotations.parser
-
"Parser" of Java elements annotated with MittenLib annotations, to be turned into config ASTs (
me.bristermitten.mittenlib.annotations.ast
) - me.bristermitten.mittenlib.annotations.util - package me.bristermitten.mittenlib.annotations.util
- me.bristermitten.mittenlib.collections - package me.bristermitten.mittenlib.collections
- me.bristermitten.mittenlib.commands - package me.bristermitten.mittenlib.commands
- me.bristermitten.mittenlib.commands.handlers - package me.bristermitten.mittenlib.commands.handlers
-
Nice helper interfaces making ACF's usage a little more flexible and intuitive
- me.bristermitten.mittenlib.config - package me.bristermitten.mittenlib.config
- me.bristermitten.mittenlib.config.exception - package me.bristermitten.mittenlib.config.exception
- me.bristermitten.mittenlib.config.extension - package me.bristermitten.mittenlib.config.extension
- me.bristermitten.mittenlib.config.generate - package me.bristermitten.mittenlib.config.generate
- me.bristermitten.mittenlib.config.names - package me.bristermitten.mittenlib.config.names
- me.bristermitten.mittenlib.config.paths - package me.bristermitten.mittenlib.config.paths
- me.bristermitten.mittenlib.config.provider - package me.bristermitten.mittenlib.config.provider
- me.bristermitten.mittenlib.config.provider.construct - package me.bristermitten.mittenlib.config.provider.construct
- me.bristermitten.mittenlib.config.reader - package me.bristermitten.mittenlib.config.reader
- me.bristermitten.mittenlib.config.tree - package me.bristermitten.mittenlib.config.tree
- me.bristermitten.mittenlib.files - package me.bristermitten.mittenlib.files
- me.bristermitten.mittenlib.files.json - package me.bristermitten.mittenlib.files.json
- me.bristermitten.mittenlib.files.yaml - package me.bristermitten.mittenlib.files.yaml
- me.bristermitten.mittenlib.lang - package me.bristermitten.mittenlib.lang
- me.bristermitten.mittenlib.lang.format - package me.bristermitten.mittenlib.lang.format
- me.bristermitten.mittenlib.lang.format.hook - package me.bristermitten.mittenlib.lang.format.hook
- me.bristermitten.mittenlib.lang.hook - package me.bristermitten.mittenlib.lang.hook
- me.bristermitten.mittenlib.minimessage - package me.bristermitten.mittenlib.minimessage
- me.bristermitten.mittenlib.papi - package me.bristermitten.mittenlib.papi
- me.bristermitten.mittenlib.util - package me.bristermitten.mittenlib.util
- me.bristermitten.mittenlib.util.lambda - package me.bristermitten.mittenlib.util.lambda
- me.bristermitten.mittenlib.watcher - package me.bristermitten.mittenlib.watcher
- MessageFormatter - Interface in me.bristermitten.mittenlib.lang.format
-
A MessageFormatter is responsible for formatting a String into a
Component
, applying someFormattingHook
s to the String. - methodAddAnnotation(MethodSpec.Builder, Class<?>) - Static method in class me.bristermitten.mittenlib.annotations.util.TypeSpecUtil
- methodAddAnnotation(MethodSpec.Builder, Class<?>, Consumer<AnnotationSpec.Builder>) - Static method in class me.bristermitten.mittenlib.annotations.util.TypeSpecUtil
- MethodNames - Class in me.bristermitten.mittenlib.annotations.compile
-
Manages method names for configuration classes to ensure they don't conflict with existing methods.
- MethodSource(ExecutableElement) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.MethodSource
-
Creates an instance of a
MethodSource
record class. - MiniMessageFormatter - Class in me.bristermitten.mittenlib.lang.format
-
An
AbstractMessageFormatter
that uses MiniMessage to create aComponent
from a String - MiniMessageModule - Class in me.bristermitten.mittenlib.minimessage
-
An extension of
LangModule
that adds support for MiniMessage. - MiniMessageModule() - Constructor for class me.bristermitten.mittenlib.minimessage.MiniMessageModule
- MittenLib<T> - Class in me.bristermitten.mittenlib
- MittenLib(T) - Constructor for class me.bristermitten.mittenlib.MittenLib
- MittenLibConsumer - Class in me.bristermitten.mittenlib
-
Stores the name of the consumer of MittenLib (usually the plugin name).
- MittenLibConsumer(String) - Constructor for class me.bristermitten.mittenlib.MittenLibConsumer
-
Create a new MittenLibConsumer
- MittenLibModule<T> - Class in me.bristermitten.mittenlib
-
Main Guice Module for MittenLib.
- MittenLibModule(T, Set<Module>) - Constructor for class me.bristermitten.mittenlib.MittenLibModule
-
Create a new MittenLibModule
- MultipleFailuresException - Exception Class in me.bristermitten.mittenlib.util
-
Exception representing multiple failures that occur simultaneously.
- MultipleFailuresException(String, List<Throwable>) - Constructor for exception class me.bristermitten.mittenlib.util.MultipleFailuresException
- MultipleFailuresException(List<Throwable>) - Constructor for exception class me.bristermitten.mittenlib.util.MultipleFailuresException
N
- name() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
name
record component. - name() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
name
record component. - name() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- name() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
name
record component. - name() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns the value of the
name
record component. - NamedCondition - Interface in me.bristermitten.mittenlib.commands.handlers
-
A command condition that is referenced by name on the full command rather than an argument.
- namingPattern() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Returns the value of the
namingPattern
record component. - namingPattern() - Method in interface me.bristermitten.mittenlib.annotations.ast.ASTSettings
- namingPattern() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns the value of the
namingPattern
record component. - NamingPattern - Annotation Interface in me.bristermitten.mittenlib.config.names
-
Defines a naming pattern for a class or field.
- NamingPatterns - Enum Class in me.bristermitten.mittenlib.config.names
-
Patterns for naming fields in a config.
- NamingPatternTransformer - Class in me.bristermitten.mittenlib.config.names
-
Transforms strings into different formats based on a
NamingPatterns
- NoOpConfigInitializationStrategy - Class in me.bristermitten.mittenlib.config.paths
- NoOpConfigInitializationStrategy() - Constructor for class me.bristermitten.mittenlib.config.paths.NoOpConfigInitializationStrategy
- NoOpConfigProviderImprover - Class in me.bristermitten.mittenlib.config.provider.construct
-
A
ConfigProviderImprover
that does nothing. - NoOpConfigProviderImprover() - Constructor for class me.bristermitten.mittenlib.config.provider.construct.NoOpConfigProviderImprover
- notFoundException(String, String, Class<?>, String) - Static method in class me.bristermitten.mittenlib.config.exception.ConfigLoadingErrors
-
Creates an exception to use when a value cannot be deserialized as it is not found (i.e.
- noUnionMatch() - Static method in class me.bristermitten.mittenlib.config.exception.ConfigLoadingErrors
- Null - Class in me.bristermitten.mittenlib.util
-
Utility class for working with nullable values without having to use
Optional
.
O
- ObjectLoader - Interface in me.bristermitten.mittenlib.config.reader
- ObjectMapper - Interface in me.bristermitten.mittenlib.config.reader
-
Interface for mapping objects It should hold that
map(map(t), T.class).getOrThrow().equals(t)
, i.e both map functions are inverses - of() - Static method in class me.bristermitten.mittenlib.collections.Sets
- of(E) - Static method in class me.bristermitten.mittenlib.collections.Sets
- of(E, E) - Static method in class me.bristermitten.mittenlib.collections.Sets
- of(Type, TypeAdapter<T>) - Static method in class me.bristermitten.mittenlib.files.json.ExtraTypeAdapter
-
Creates an
ExtraTypeAdapter
from an existingTypeAdapter
. - of(Function<T, R>) - Static method in interface me.bristermitten.mittenlib.util.lambda.IOFunction
-
Wrap a
Function
in aIOFunction
- of(Function<T, R>) - Static method in interface me.bristermitten.mittenlib.util.lambda.SafeFunction
-
Wrap a
Function
in aSafeFunction
- of(K, V) - Static method in class me.bristermitten.mittenlib.collections.Maps
- of(K, V, K, V) - Static method in class me.bristermitten.mittenlib.collections.Maps
- ofAll(Collection<E>) - Static method in class me.bristermitten.mittenlib.collections.Sets
- ok(T) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Create a
Result
from a given value. - orElse(Supplier<Result<T>>) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- orElse(Supplier<Result<T>>) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- orElse(Supplier<Result<T>>) - Method in interface me.bristermitten.mittenlib.util.Result
-
Applies an "or" operation to the
Result
. - orElse(T, Supplier<T>) - Static method in class me.bristermitten.mittenlib.util.Null
-
Returns the given value if it is not null, or the value returned by the given
Supplier
if it is. - orElse(T, T) - Static method in class me.bristermitten.mittenlib.util.Null
-
Returns the given value if it is not null, or the given other value if it is.
P
- PAPIFormattingHook - Class in me.bristermitten.mittenlib.lang.hook
-
A
FormattingHook
which applies PlaceholderAPI placeholders to the message. - PAPIFormattingHook() - Constructor for class me.bristermitten.mittenlib.lang.hook.PAPIFormattingHook
- PAPIModule - Class in me.bristermitten.mittenlib.papi
-
Binds PAPI related classes
- PAPIModule() - Constructor for class me.bristermitten.mittenlib.papi.PAPIModule
- parent() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Returns the value of the
parent
record component. - parent() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Returns the value of the
parent
record component. - parentClassName() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Returns the value of the
parentClassName
record component. - parents() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
parents
record component. - parents() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
- parents() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Returns the value of the
parents
record component. - parents() - Method in interface me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource
- parseAbstract(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.parser.ConfigClassParser
- path() - Method in class me.bristermitten.mittenlib.config.provider.CachingConfigProvider
- path() - Method in interface me.bristermitten.mittenlib.config.provider.ConfigProvider
-
The path of the source for the config, if available
- path() - Method in class me.bristermitten.mittenlib.config.provider.DelegatingConfigProvider
- path() - Method in class me.bristermitten.mittenlib.config.provider.FileWatchingConfigProvider
- path() - Method in class me.bristermitten.mittenlib.config.provider.ReadingConfigProvider
- path() - Method in class me.bristermitten.mittenlib.config.provider.StringReadingConfigProvider
-
Always empty, as this provider does not have a path.
- PathUtil - Class in me.bristermitten.mittenlib.util
-
Utility class for working with
Path
s - PluginConfigInitializationStrategy - Class in me.bristermitten.mittenlib.config.paths
-
A
ConfigInitializationStrategy
that copies a resource from a plugin's jar to its data folder if it does not exist - PluginConfigInitializationStrategy(Plugin) - Constructor for class me.bristermitten.mittenlib.config.paths.PluginConfigInitializationStrategy
- PluginConfigInitializationStrategy.UnknownResourceException - Exception Class in me.bristermitten.mittenlib.config.paths
-
Thrown when a resource could not be found in a plugin
- PluginConfigModule - Class in me.bristermitten.mittenlib.config
- PluginConfigModule() - Constructor for class me.bristermitten.mittenlib.config.PluginConfigModule
- PluginConfigPathResolver - Class in me.bristermitten.mittenlib.config.paths
-
A
ConfigPathResolver
that resolves paths relative to aPlugin
's data folder - PluginConfigPathResolver(Plugin) - Constructor for class me.bristermitten.mittenlib.config.paths.PluginConfigPathResolver
- preFormat(String, OfflinePlayer) - Method in class me.bristermitten.mittenlib.lang.format.AbstractMessageFormatter
- preFormat(String, OfflinePlayer) - Method in interface me.bristermitten.mittenlib.lang.format.MessageFormatter
-
Apply all
FormattingHook
s to a String, returning the formatted String. - prettyName(E) - Static method in class me.bristermitten.mittenlib.util.Enums
-
Creates a "prettified" name of an enum.
- prettyStringify(Element) - Static method in class me.bristermitten.mittenlib.annotations.util.Stringify
-
Returns a generic pretty string representation of the given
Element
object. - printStackTrace() - Method in exception class me.bristermitten.mittenlib.util.MultipleFailuresException
- PrivateAnnotations - Class in me.bristermitten.mittenlib.annotations.util
- PrivateAnnotations() - Constructor for class me.bristermitten.mittenlib.annotations.util.PrivateAnnotations
- processAnnotations(Set<? extends TypeElement>, RoundEnvironment) - Method in class me.bristermitten.mittenlib.annotations.config.ConfigProcessor
-
Processes annotations and generates configuration implementation classes.
- properties() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
properties
record component. - properties() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
properties
record component. - properties() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- properties() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
properties
record component. - Property - Record Class in me.bristermitten.mittenlib.annotations.ast
-
A representation of a property in a configuration type.
- Property(String, TypeMirror, Property.PropertySource, ASTSettings.PropertyASTSettings) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.Property
-
Creates an instance of a
Property
record class. - Property.PropertySource - Interface in me.bristermitten.mittenlib.annotations.ast
- Property.PropertySource.FieldSource - Record Class in me.bristermitten.mittenlib.annotations.ast
- Property.PropertySource.MethodSource - Record Class in me.bristermitten.mittenlib.annotations.ast
- PropertyASTSettings(NamingPattern, ConfigName, EnumParsingSchemes, boolean, boolean) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Creates an instance of a
PropertyASTSettings
record class. - PropertyNotFoundException - Exception Class in me.bristermitten.mittenlib.config.exception
- PropertyNotFoundException(Class<?>, String, String, String) - Constructor for exception class me.bristermitten.mittenlib.config.exception.PropertyNotFoundException
- propertyType() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns the value of the
propertyType
record component. - publicPropertyClassName(TypeMirror) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the public property class name for a type mirror.
- publicPropertyClassName(Property) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigurationClassNameGenerator
-
Get the public property class name for a property.
- put(AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.compile.ConfigNameCache
-
Adds an AbstractConfigStructure to the cache, indexed by its name.
R
- read(JsonReader) - Method in class me.bristermitten.mittenlib.config.tree.DataTreeTypeAdapter
- ReadingConfigProvider<T> - Class in me.bristermitten.mittenlib.config.provider
-
A
ConfigProvider
that reads from a file, using aConfigReader
- ReadingConfigProvider(Path, Configuration<T>, ConfigReader) - Constructor for class me.bristermitten.mittenlib.config.provider.ReadingConfigProvider
-
Create a new ReadingConfigProvider
- recover(Function<Exception, T>) - Method in class me.bristermitten.mittenlib.util.Result.Fail
- recover(Function<Exception, T>) - Method in class me.bristermitten.mittenlib.util.Result.Ok
- recover(Function<Exception, T>) - Method in interface me.bristermitten.mittenlib.util.Result
-
Handles the exception case of the
Result
with a function. - register(TypeName, CustomDeserializerInfo) - Method in class me.bristermitten.mittenlib.annotations.parser.CustomDeserializers
- registerCustomDeserializer(TypeElement) - Method in class me.bristermitten.mittenlib.annotations.parser.CustomDeserializers
- removeWatcher(FileWatcher) - Method in class me.bristermitten.mittenlib.watcher.FileWatcherService
-
Removes a watcher from the service.
- replace(R) - Method in interface me.bristermitten.mittenlib.util.Result
-
Replaces the value of the
Result
with a new value. - resourceToPath(URL) - Static method in class me.bristermitten.mittenlib.util.PathUtil
-
Deprecated.Resource leak, use
PathUtil.resourceToPath(URL, IOFunction)
instead - resourceToPath(URL, IOFunction<Path, T>) - Static method in class me.bristermitten.mittenlib.util.PathUtil
- Result<T> - Interface in me.bristermitten.mittenlib.util
-
A
Result
encapsulates a computation that may fail, throwing an exception. - RESULT_CLASS_NAME - Static variable in class me.bristermitten.mittenlib.annotations.compile.DeserializationCodeGenerator
- Result.Fail<T,
E> - Class in me.bristermitten.mittenlib.util - Result.Ok<T> - Class in me.bristermitten.mittenlib.util
- roots() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
roots
record component. - run() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeRunnable
-
Run the code, possibly throwing an exception.
- runCatching() - Method in interface me.bristermitten.mittenlib.util.lambda.SafeRunnable
-
Run the code, catching any exceptions and wrapping them in a
Result
- runCatching(SafeSupplier<T>) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Safely runs a
SafeSupplier
, encapsulating the returned value or any thrown exception in aResult
S
- SafeBiConsumer<T,
T2> - Interface in me.bristermitten.mittenlib.util.lambda -
A
BiConsumer
that can throw a checked exception. - safeCast(Object, Class<T>) - Static method in class me.bristermitten.mittenlib.util.Cast
-
Safely cast an object to a type, returning null if the cast fails or the object is null
- SafeConsumer<T> - Interface in me.bristermitten.mittenlib.util.lambda
-
A
Consumer
that can throw a checked exception. - SafeFunction<T,
R> - Interface in me.bristermitten.mittenlib.util.lambda -
A
Function
that can throw a checked exception. - SafeFunction2<T,
R1, - Interface in me.bristermitten.mittenlib.util.lambdaR2> -
A
BiFunction
that can throw a checked exception. - safeMethodName(VariableElement, TypeElement) - Method in class me.bristermitten.mittenlib.annotations.compile.MethodNames
-
Gets a safe method name for a variable element that doesn't conflict with existing methods.
- safeMethodName(Property) - Method in class me.bristermitten.mittenlib.annotations.compile.MethodNames
-
Gets a safe method name for a property that doesn't conflict with existing methods.
- SafeRunnable - Interface in me.bristermitten.mittenlib.util.lambda
-
A
Runnable
that can throw a checked exception. - SafeSupplier<T> - Interface in me.bristermitten.mittenlib.util.lambda
-
A
Supplier
that can throw a checked exception. - SearchingObjectLoader - Class in me.bristermitten.mittenlib.config.reader
- SearchingObjectLoader(Set<FileType>, Logger) - Constructor for class me.bristermitten.mittenlib.config.reader.SearchingObjectLoader
- send(CommandSender, LangMessage) - Method in class me.bristermitten.mittenlib.lang.LangService
- send(CommandSender, LangMessage, String) - Method in class me.bristermitten.mittenlib.lang.LangService
- send(CommandSender, LangMessage, Map<String, Object>) - Method in class me.bristermitten.mittenlib.lang.LangService
- send(CommandSender, LangMessage, Map<String, Object>, String) - Method in class me.bristermitten.mittenlib.lang.LangService
- sendActionBar(CommandSender, String) - Method in class me.bristermitten.mittenlib.lang.LangService
- sendMessage(CommandSender, String) - Method in class me.bristermitten.mittenlib.lang.LangService
- sendTitle(CommandSender, String, String) - Method in class me.bristermitten.mittenlib.lang.LangService
- sequence(Iterable<CompletableFuture<T>>) - Static method in class me.bristermitten.mittenlib.util.Futures
- sequence(Collection<Result<T>>) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Turns a collection of
Result
s into aResult
of a collection of the same type If any of the results areResult.Fail
s, the whole result will beResult.Fail
Otherwise, the result will beResult.Ok
with the collection of values The returned collection is not guaranteed to be the same type as the input collection - sequence(Collection<CompletableFuture<T>>) - Static method in class me.bristermitten.mittenlib.util.Futures
-
Transform a collection of
CompletableFuture
s into a singleCompletableFuture
holding aCollection<T>
- sequence(CompletableFuture<T>...) - Static method in class me.bristermitten.mittenlib.util.Futures
-
Transform an array of
CompletableFuture
s into a singleCompletableFuture
holding aCollection<T>
This is similar to (Haskell's sequence function), but specialised for CompletableFutures because we don't have higher kinded types in Java :( - setA(boolean) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setActionBar(String) - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- setB(Material) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setC(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setD(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setE(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setF(Map<Integer, Material>) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setG(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setH(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setI(Material) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- SetImpls - Class in me.bristermitten.mittenlib.collections
-
Implementations for immutable sets used in
Sets
- setJ(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setK(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setL(TestDataGson.LGson) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setM(Material) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setMessage(String) - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- setN(Material) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setO(Material) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- setP(String) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson.LGson
- setQ(int) - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson.LGson
- Sets - Class in me.bristermitten.mittenlib.collections
-
Utility functions for creating immutable sets
- setSound(LangMessage.SoundConfig) - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- setSubtitle(String) - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- settings() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
settings
record component. - settings() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
settings
record component. - settings() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- settings() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
settings
record component. - settings() - Method in interface me.bristermitten.mittenlib.annotations.ast.ASTNode
- settings() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns the value of the
settings
record component. - setTitle(String) - Method in class me.bristermitten.mittenlib.lang.LangMessageBuilder
- shouldRegister() - Method in interface me.bristermitten.mittenlib.lang.format.hook.FormattingHook
-
If the hook should be used.
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.format.hook.HexColorFixerHook
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.format.hook.LegacyCodeUpdaterHook
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.format.hook.SimpleColorCodeHook
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.format.hook.SimpleFormattingHook
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.format.hook.StringReplacingHook
- shouldRegister() - Method in class me.bristermitten.mittenlib.lang.hook.PAPIFormattingHook
- SimpleColorCodeHook - Class in me.bristermitten.mittenlib.lang.format.hook
- SimpleColorCodeHook() - Constructor for class me.bristermitten.mittenlib.lang.format.hook.SimpleColorCodeHook
- SimpleConfigProviderFactory - Class in me.bristermitten.mittenlib.config.provider.construct
- SimpleConfigProviderFactory(ConfigReader, ConfigInitializationStrategy, ConfigPathResolver) - Constructor for class me.bristermitten.mittenlib.config.provider.construct.SimpleConfigProviderFactory
- SimpleConfigProviderImprover - Class in me.bristermitten.mittenlib.config.provider.construct
- SimpleFormattingHook - Class in me.bristermitten.mittenlib.lang.format.hook
-
A formatting hook that is always applied, and uses a lambda to format the string.
- SimpleFormattingHook(BiFunction<String, OfflinePlayer, String>) - Constructor for class me.bristermitten.mittenlib.lang.format.hook.SimpleFormattingHook
-
Creates a SimpleFormattingHook configured with supplied BiFunction.
- SimpleMessageFormatter - Class in me.bristermitten.mittenlib.lang.format
-
Default implementation of
MessageFormatter
that usesLegacyComponentSerializer
to createComponent
s. - sneakyThrow(Throwable) - Static method in class me.bristermitten.mittenlib.util.Errors
-
Sneakily throw a checked exception as an unchecked exception
- SoundConfig(Sound, float, float) - Constructor for class me.bristermitten.mittenlib.lang.LangMessage.SoundConfig
- source() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns the value of the
source
record component. - source() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns the value of the
source
record component. - source() - Method in interface me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure
- source() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns the value of the
source
record component. - source() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Returns the value of the
source
record component. - source() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns the value of the
source
record component. - source() - Element in annotation interface me.bristermitten.mittenlib.config.GeneratedConfig
- Source - Annotation Interface in me.bristermitten.mittenlib.config
-
Marks a
Config
class as being loaded from a file. - startWatching() - Method in class me.bristermitten.mittenlib.watcher.FileWatcherService
-
Start watching for file changes.
- stopWatching() - Method in class me.bristermitten.mittenlib.watcher.FileWatcherService
-
Stop watching for file changes.
- Stringify - Class in me.bristermitten.mittenlib.annotations.util
-
Generic utilities for converting objects to strings.
- StringReadingConfigProvider<T> - Class in me.bristermitten.mittenlib.config.provider
-
A
ConfigProvider
that reads a String to load a config - StringReadingConfigProvider(String, Configuration<T>, ConfigReader) - Constructor for class me.bristermitten.mittenlib.config.provider.StringReadingConfigProvider
- StringReplacingHook - Class in me.bristermitten.mittenlib.lang.format.hook
-
A formatting hook that applies string replacements
- StringReplacingHook(Object...) - Constructor for class me.bristermitten.mittenlib.lang.format.hook.StringReplacingHook
-
Create a new StringReplacingHook
- Strings - Class in me.bristermitten.mittenlib.util
T
- TabCompleter - Interface in me.bristermitten.mittenlib.commands.handlers
-
A tab completer for a command argument.
- TestDataDTO - Class in me.bristermitten.mittenlib.annotation.benchmark
- TestDataDTO() - Constructor for class me.bristermitten.mittenlib.annotation.benchmark.TestDataDTO
- TestDataGson - Class in me.bristermitten.mittenlib.annotation.benchmark
- TestDataGson() - Constructor for class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- TestDataGson.LGson - Class in me.bristermitten.mittenlib.annotation.benchmark
- throwNotFound(String, String, Class<?>, String) - Static method in class me.bristermitten.mittenlib.config.ConfigMapLoader
- toOptional() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- toOptional() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- toOptional() - Method in interface me.bristermitten.mittenlib.util.Result
- toPOJO(DataTree) - Static method in class me.bristermitten.mittenlib.config.tree.DataTreeTransforms
- toString() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataDTO
- toString() - Method in class me.bristermitten.mittenlib.annotation.benchmark.TestDataGson
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Atomic
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Intersection
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTParentReference
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.ConfigASTSettings
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ASTSettings.PropertyASTSettings
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.ClassConfigTypeSource
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.ConfigTypeSource.InterfaceConfigTypeSource
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.CustomDeserializerInfo
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.FieldSource
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property.PropertySource.MethodSource
-
Returns a string representation of this record class.
- toString() - Method in record class me.bristermitten.mittenlib.annotations.ast.Property
-
Returns a string representation of this record class.
- toString() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeNull
- toString() - Method in class me.bristermitten.mittenlib.util.Result.Fail
- toString() - Method in class me.bristermitten.mittenlib.util.Result.Ok
- toString() - Method in class me.bristermitten.mittenlib.util.Unit
- ToStringGenerator - Class in me.bristermitten.mittenlib.annotations.config
-
Generates toString methods for configuration classes.
- ToStringGenerator() - Constructor for class me.bristermitten.mittenlib.annotations.config.ToStringGenerator
- tryWithResources(SafeSupplier<R>, SafeFunction<R, Result<T>>) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Executes a function with a lazily generated resource, closing the resource afterwards, and handling any exceptions.
- tryWithResources(R, SafeFunction<R, Result<T>>) - Static method in interface me.bristermitten.mittenlib.util.Result
-
Executes a function with a resource, closing the resource afterwards, and handling any exceptions
- type() - Method in interface me.bristermitten.mittenlib.commands.handlers.ArgumentCondition
- type() - Method in interface me.bristermitten.mittenlib.commands.handlers.ArgumentContext
- type() - Method in class me.bristermitten.mittenlib.config.tree.DataTreeTypeAdapter
- type() - Method in class me.bristermitten.mittenlib.files.json.ExtraTypeAdapter
- TypeSpecUtil - Class in me.bristermitten.mittenlib.annotations.util
- TypeSpecUtil() - Constructor for class me.bristermitten.mittenlib.annotations.util.TypeSpecUtil
- TypesUtil - Class in me.bristermitten.mittenlib.annotations.util
-
Helper class for working with
TypeMirror
s
U
- uncapitalize(String) - Static method in class me.bristermitten.mittenlib.util.Strings
-
Uncapitalize the first letter of a given String "" → "" "Hello" → "hello" "HEllo" → "hEllo"
- union(Set<E>, Set<E>) - Static method in class me.bristermitten.mittenlib.collections.Sets
-
Returns a new set containing the elements of 2 given sets The returned set is immutable.
- Union(ClassName, ConfigTypeSource, ASTSettings.ConfigASTSettings, ASTParentReference, List<ClassName>, List<AbstractConfigStructure>, List<Property>) - Constructor for record class me.bristermitten.mittenlib.annotations.ast.AbstractConfigStructure.Union
-
Creates an instance of a
Union
record class. - UNION_ALTERNATIVE_NOT_EXTENDING_UNION - Static variable in class me.bristermitten.mittenlib.annotations.parser.ConfigVerificationErrors
- Unit - Class in me.bristermitten.mittenlib.util
-
Unit value
- UNIT - Static variable in class me.bristermitten.mittenlib.util.Unit
- unitFuture() - Static method in class me.bristermitten.mittenlib.util.Unit
- unitResult() - Static method in class me.bristermitten.mittenlib.util.Unit
- UNKNOWN - Static variable in class me.bristermitten.mittenlib.util.Version
-
Unknown version, probably something very old
- UnknownResourceException(String) - Constructor for exception class me.bristermitten.mittenlib.config.paths.PluginConfigInitializationStrategy.UnknownResourceException
- UPPER_CAMEL_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
UpperCamelCase / PascalCase
- UPPER_KEBAB_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
Upper-Kebab-Case
- UPPER_SNAKE_CASE - Enum constant in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
Upper_Snake_Case
V
- value - Variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralBoolean
- value - Variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralFloat
- value - Variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralInt
- value - Variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralString
- value() - Element in annotation interface me.bristermitten.mittenlib.config.EnumParsingScheme
- value() - Element in annotation interface me.bristermitten.mittenlib.config.extension.CustomDeserializerFor
- value() - Element in annotation interface me.bristermitten.mittenlib.config.names.ConfigName
- value() - Element in annotation interface me.bristermitten.mittenlib.config.names.NamingPattern
- value() - Element in annotation interface me.bristermitten.mittenlib.config.Source
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralBoolean
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralFloat
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralInt
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral.DataTreeLiteralString
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeLiteral
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeNull
- value() - Method in class me.bristermitten.mittenlib.config.tree.DataTree
- value() - Method in interface me.bristermitten.mittenlib.util.Result
-
Retrieves the value wrapped in an
Optional
, if present. - valueOf(String) - Static method in enum class me.bristermitten.mittenlib.config.EnumParsingSchemes
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
Returns the enum constant of this class with the specified name.
- valueOfIgnoreCase(String, Class<E>) - Static method in class me.bristermitten.mittenlib.util.Enums
-
Retrieves an enum constant from the specified
enumClass
whose name matches the specifiedname
, ignoring case sensitivity. - valueOfOrNull(String, Class<E>) - Static method in class me.bristermitten.mittenlib.util.Enums
-
Retrieves an enum constant from the specified
enumClass
whose name matches the givenname
. - values - Variable in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeArray
- values() - Static method in enum class me.bristermitten.mittenlib.config.EnumParsingSchemes
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class me.bristermitten.mittenlib.config.names.NamingPatterns
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class me.bristermitten.mittenlib.config.tree.DataTree.DataTreeMap
- VER_1_10 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.10
- VER_1_10_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.10.1
- VER_1_10_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.10.2
- VER_1_11 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.11
- VER_1_11_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.11.1
- VER_1_11_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.11.2
- VER_1_12 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.12
- VER_1_12_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.12.1
- VER_1_12_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.12.2
- VER_1_13 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.13
- VER_1_13_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.13.1
- VER_1_13_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.13.2
- VER_1_14 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.14
- VER_1_14_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.14.1
- VER_1_14_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.14.2
- VER_1_14_3 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.14.3
- VER_1_14_4 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.14.4
- VER_1_15 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.15
- VER_1_15_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.15.1
- VER_1_15_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.15.2
- VER_1_16 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16
- VER_1_16_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16.1
- VER_1_16_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16.2
- VER_1_16_3 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16.3
- VER_1_16_4 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16.4
- VER_1_16_5 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.16.5
- VER_1_17 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.17
- VER_1_17_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.17.1
- VER_1_18 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.18
- VER_1_18_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.18.1
- VER_1_18_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.18.2
- VER_1_19 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.19
- VER_1_19_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.19.1
- VER_1_19_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.19.2
- VER_1_19_3 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.19.3
- VER_1_19_4 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.19.4
- VER_1_20 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.20
- VER_1_20_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.20.1
- VER_1_8_8 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.8.8
- VER_1_8_9 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.8.9
- VER_1_9 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.9
- VER_1_9_1 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.9.1
- VER_1_9_2 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.9.2
- VER_1_9_3 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.9.3
- VER_1_9_4 - Static variable in class me.bristermitten.mittenlib.util.Version
-
Version 1.9.4
- verify(AbstractConfigStructure) - Method in class me.bristermitten.mittenlib.annotations.parser.ASTVerifier
- Version - Class in me.bristermitten.mittenlib.util
-
Minecraft versions "enum"
- Version(int, int, int) - Constructor for class me.bristermitten.mittenlib.util.Version
- void_() - Method in interface me.bristermitten.mittenlib.util.Result
W
- WatchServiceProvider - Class in me.bristermitten.mittenlib.watcher
- WatchServiceProvider() - Constructor for class me.bristermitten.mittenlib.watcher.WatchServiceProvider
- withData(DataTree) - Method in class me.bristermitten.mittenlib.config.DeserializationContext
- withDefaults(T) - Static method in class me.bristermitten.mittenlib.MittenLib
- withExtraHooks(FormattingHook...) - Method in interface me.bristermitten.mittenlib.lang.format.MessageFormatter
-
Creates a new
MessageFormatter
that applies the givenFormattingHook
s to the String, alongside the existing hooks. - withExtraHooks(FormattingHook...) - Method in class me.bristermitten.mittenlib.lang.format.MiniMessageFormatter
- withExtraHooks(FormattingHook...) - Method in class me.bristermitten.mittenlib.lang.format.SimpleMessageFormatter
- withLoader(ObjectLoader) - Method in class me.bristermitten.mittenlib.config.reader.ConfigReader
-
Create a new
ConfigReader
with the givenObjectLoader
instead of the existing one - WrappingConfigProvider<T> - Interface in me.bristermitten.mittenlib.config.provider
-
Generic interface for a
ConfigProvider
that wraps anotherConfigProvider
. - write(JsonWriter, DataTree) - Method in class me.bristermitten.mittenlib.config.tree.DataTreeTypeAdapter
Y
- YamlFileType - Class in me.bristermitten.mittenlib.files.yaml
- YamlFileType(YamlObjectLoader) - Constructor for class me.bristermitten.mittenlib.files.yaml.YamlFileType
- YamlObjectLoader - Class in me.bristermitten.mittenlib.files.yaml
- YamlObjectLoader(Yaml) - Constructor for class me.bristermitten.mittenlib.files.yaml.YamlObjectLoader
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Sets.union(Set, Set)