Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractBucket<E> - Class in dev.demeng.pluginbase.bucket
-
An abstract implementation of
Bucket. - AbstractBucket(int, PartitioningStrategy<E>) - Constructor for class dev.demeng.pluginbase.bucket.AbstractBucket
- AbstractCompositeTerminable - Class in dev.demeng.pluginbase.terminable.composite
- AbstractCompositeTerminable() - Constructor for class dev.demeng.pluginbase.terminable.composite.AbstractCompositeTerminable
- AbstractWeakCompositeTerminable - Class in dev.demeng.pluginbase.terminable.composite
- AbstractWeakCompositeTerminable() - Constructor for class dev.demeng.pluginbase.terminable.composite.AbstractWeakCompositeTerminable
- accept(JsonElement) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
- accept(String, JsonElement) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
- accept(Map.Entry<String, JsonElement>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
- acceptValidatedInput(ConversationContext, String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
- add(LocaleReader) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given locale reader to this translator.
- add(ResourceBundle) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Registers the given resource bundle
- add(JsonElement) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends an element to the array without copying.
- add(JsonElement, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends an element to the array.
- add(E) - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- add(E) - Method in interface dev.demeng.pluginbase.bucket.BucketPartition
-
Deprecated.as partitions do not support this method.
- add(Boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends a boolean element, wrapping the value via
JsonBuilder.primitive(Boolean). - add(Character) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends a character element, wrapping the value via
JsonBuilder.primitive(Character). - add(Number) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends a number element, wrapping the value via
JsonBuilder.primitive(Number). - add(String) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends a string element, wrapping the value via
JsonBuilder.primitive(String). - add(String, JsonElement) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a property with the given name and value without copying.
- add(String, JsonElement, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a property with the given name and value.
- add(String, Boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a boolean property, wrapping the value via
JsonBuilder.primitive(Boolean). - add(String, Character) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a character property, wrapping the value via
JsonBuilder.primitive(Character). - add(String, Number) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a number property, wrapping the value via
JsonBuilder.primitive(Number). - add(String, String) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a string property, wrapping the value via
JsonBuilder.primitive(String). - addAll(JsonObject) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from another
JsonObjectwithout copying. - addAll(JsonObject, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from another
JsonObject. - addAll(Iterable<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the iterable without copying.
- addAll(Iterable<Map.Entry<String, T>>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the iterable.
- addAll(Iterable<T>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all elements from the iterable without copying.
- addAll(Iterable<T>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all elements from the iterable.
- addAll(Collection<? extends E>) - Method in interface dev.demeng.pluginbase.bucket.BucketPartition
-
Deprecated.as partitions do not support this method.
- addAll(Stream<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the stream without copying.
- addAll(Stream<Map.Entry<String, T>>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the stream.
- addAll(Stream<T>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all elements from the stream without copying.
- addAll(Stream<T>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all elements from the stream.
- addAllBooleans(Iterable<Map.Entry<String, Boolean>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all boolean entries from the iterable, wrapping each value via
JsonBuilder.primitive(Boolean). - addAllBooleansIfAbsent(Iterable<Map.Entry<String, Boolean>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all boolean entries from the iterable, skipping any whose key is already present.
- addAllCharacters(Iterable<Map.Entry<String, Character>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all character entries from the iterable, wrapping each value via
JsonBuilder.primitive(Character). - addAllCharactersIfAbsent(Iterable<Map.Entry<String, Character>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all character entries from the iterable, skipping any whose key is already present.
- addAllIfAbsent(JsonObject) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from another
JsonObjectwithout copying, skipping any whose key is already present. - addAllIfAbsent(JsonObject, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from another
JsonObject, skipping any whose key is already present. - addAllIfAbsent(Iterable<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the iterable without copying, skipping any whose key is already present.
- addAllIfAbsent(Iterable<Map.Entry<String, T>>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the iterable, skipping any whose key is already present.
- addAllIfAbsent(Stream<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the stream without copying, skipping any whose key is already present.
- addAllIfAbsent(Stream<Map.Entry<String, T>>, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all entries from the stream, skipping any whose key is already present.
- addAllNumbers(Iterable<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all number entries from the iterable, wrapping each value via
JsonBuilder.primitive(Number). - addAllNumbersIfAbsent(Iterable<Map.Entry<String, T>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all number entries from the iterable, skipping any whose key is already present.
- addAllStrings(Iterable<Map.Entry<String, String>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all string entries from the iterable, wrapping each value via
JsonBuilder.primitive(String). - addAllStringsIfAbsent(Iterable<Map.Entry<String, String>>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds all string entries from the iterable, skipping any whose key is already present.
- addBooleans(Iterable<Boolean>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all booleans from the iterable, wrapping each value via
JsonBuilder.primitive(Boolean). - addButton(int, ItemStack, Consumer<InventoryClickEvent>) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Creates and adds a new button to the menu.
- addButton(int, ItemStack, Consumer<InventoryClickEvent>) - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
-
Creates and adds a static item that will be displayed on all pages.
- addButton(ItemStack, Consumer<InventoryClickEvent>) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Creates and adds a new button to the menu.
- addButton(MenuButton) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Adds a new button to the menu.
- addCharacters(Iterable<Character>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all characters from the iterable, wrapping each value via
JsonBuilder.primitive(Character). - addIfAbsent(String, JsonElement) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a property only if no property with the same name is already present, without copying.
- addIfAbsent(String, JsonElement, boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a property only if no property with the same name is already present.
- addIfAbsent(String, Boolean) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a boolean property only if no property with the same name is already present.
- addIfAbsent(String, Character) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a character property only if no property with the same name is already present.
- addIfAbsent(String, Number) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a number property only if no property with the same name is already present.
- addIfAbsent(String, String) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Adds a string property only if no property with the same name is already present.
- addLore(String) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Adds a single line of lore on top of the current lore.
- addNumbers(Iterable<T>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all numbers from the iterable, wrapping each value via
JsonBuilder.primitive(Number). - addResourceBundle(ClassLoader, String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given resource bundle.
- addResourceBundle(ClassLoader, String, Locale...) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given resource bundle.
- addResourceBundle(String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given resource bundle from the current class loader.
- addResourceBundle(String, Locale...) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given resource bundle from the current class loader.
- addResourceBundleFromFolder(String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Adds the given resource bundle from "/locales" in the plugin data folder.
- addStaticButton(MenuButton) - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
-
Adds a static item that will be displayed on all pages.
- addStrings(Iterable<String>) - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Appends all strings from the iterable, wrapping each value via
JsonBuilder.primitive(String). - AFRIKAANS - Static variable in class dev.demeng.pluginbase.locale.Locales
- after(long) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should run after the specified delay, and returns the next builder in the chain.
- after(long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should run after the specified delay, and returns the next builder in the chain.
- afterAndEvery(long) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should run after the specified delay, then repeat on the specified interval, and returns the next builder in the chain.
- afterAndEvery(long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should run after the specified delay, then repeat on the specified interval, and returns the next builder in the chain.
- all() - Static method in class dev.demeng.pluginbase.Players
-
Gets all players on the server.
- allocate(Bucket<?>) - Method in interface dev.demeng.pluginbase.bucket.partitioning.GenericPartitioningStrategy
-
Calculates the index of the partition to use for any given object.
- allocate(Object, Bucket<Object>) - Method in interface dev.demeng.pluginbase.bucket.partitioning.GenericPartitioningStrategy
-
Deprecated.
- allocate(T, Bucket<T>) - Method in interface dev.demeng.pluginbase.bucket.partitioning.PartitioningStrategy
-
Calculates the index of the partition to use for the object.
- ALPHABET_LOWER - Static variable in class dev.demeng.pluginbase.random.RandomString
- ALPHABET_UPPER - Static variable in class dev.demeng.pluginbase.random.RandomString
- ALPHANUMERIC_LOWER - Static variable in class dev.demeng.pluginbase.random.RandomString
- ALPHANUMERIC_MIXED - Static variable in class dev.demeng.pluginbase.random.RandomString
- ALPHANUMERIC_UPPER - Static variable in class dev.demeng.pluginbase.random.RandomString
- amount(int) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Changes the amount of the item.
- applyFillersFromConfig(ConfigurationSection) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies all menu fillers that are declared in a configuration section.
- applyFillersFromConfig(ConfigurationSection, UnaryOperator<String>) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies all menu fillers that are declared in a configuration section.
- applyOperator(String, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.Common
- applyOperator(List<String>, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.Common
- applyOperator(ItemStack, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.Common
- ARABIC - Static variable in class dev.demeng.pluginbase.locale.Locales
- armorColor(Color) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the color of leather armor.
- array() - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new array builder, with no initial values
- array(JsonArray) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new array builder, without copying the passed array.
- array(JsonArray, boolean) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new array builder
- asCycle() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- asCycle() - Method in interface dev.demeng.pluginbase.bucket.Bucket
-
Returns a cycle instance unique to this bucket.
- async() - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder
-
Marks that the new task should run async, and returns the next builder in the chain.
- async() - Static method in class dev.demeng.pluginbase.Schedulers
-
Returns an "async" scheduler, which executes tasks asynchronously.
- ASYNC - Enum constant in enum class dev.demeng.pluginbase.promise.ThreadContext
- asyncBase() - Static method in class dev.demeng.pluginbase.scheduler.BaseExecutors
- asyncBukkit() - Static method in class dev.demeng.pluginbase.scheduler.BaseExecutors
B
- BaseException - Exception in dev.demeng.pluginbase.exceptions
-
A custom runtime exception, used for throwing runtime errors related to improper API usage.
- BaseException(String) - Constructor for exception dev.demeng.pluginbase.exceptions.BaseException
- BaseException(String, Throwable) - Constructor for exception dev.demeng.pluginbase.exceptions.BaseException
- BaseException(Throwable) - Constructor for exception dev.demeng.pluginbase.exceptions.BaseException
- BaseExceptionHandler - Class in dev.demeng.pluginbase.command
-
Comprehensive exception handler for Lamp command framework, providing localized error messages using PluginBase's utilities.
- BaseExceptionHandler() - Constructor for class dev.demeng.pluginbase.command.BaseExceptionHandler
- BaseExecutors - Class in dev.demeng.pluginbase.scheduler
-
Provides common
Executorinstances. - BaseExecutors() - Constructor for class dev.demeng.pluginbase.scheduler.BaseExecutors
- baseFailureHandler() - Static method in class dev.demeng.pluginbase.command.BaseFailureHandler
-
Returns the shared singleton instance of this handler.
- BaseFailureHandler<A extends revxrsal.commands.command.CommandActor> - Class in dev.demeng.pluginbase.command
-
Custom failure handler for Lamp, to be set in dispatcher settings.
- BaseFailureHandler() - Constructor for class dev.demeng.pluginbase.command.BaseFailureHandler
- BaseManager - Class in dev.demeng.pluginbase.plugin
-
A manager containing all other managers associated with the library, as well as the
JavaPluginthe library is working with. - BaseManager() - Constructor for class dev.demeng.pluginbase.plugin.BaseManager
- BasePlugin - Class in dev.demeng.pluginbase.plugin
-
An extended version of JavaPlugin.
- BasePlugin() - Constructor for class dev.demeng.pluginbase.plugin.BasePlugin
- BaseSettings - Interface in dev.demeng.pluginbase
-
Settings for the plugin base.
- BaseSettings.ColorScheme - Class in dev.demeng.pluginbase
-
A 3-color color scheme for messages or other text.
- biConsumer(BiConsumer<MergedSubscription<T>, ? super T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedHandlerList
- biConsumer(BiConsumer<SingleSubscription<T>, ? super T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleHandlerList
- biConsumer(BiConsumer<R, ? super T>) - Method in interface dev.demeng.pluginbase.event.functional.FunctionalHandlerList
-
Add a
BiConsumerhandler. - biHandler(BiConsumer<MergedSubscription<T>, ? super T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Builds and registers the Handler.
- biHandler(BiConsumer<SingleSubscription<T>, ? super T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Builds and registers the Handler.
- bind(T) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
- bind(T) - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
- bind(T) - Method in interface dev.demeng.pluginbase.terminable.TerminableConsumer
-
Binds with the given terminable.
- bindEvent(Class<E>, Function<E, T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Binds this handler to an event
- bindEvent(Class<E>, EventPriority, Function<E, T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Binds this handler to an event
- bindModule(T) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
- bindModule(T) - Method in interface dev.demeng.pluginbase.terminable.TerminableConsumer
-
Binds with the given terminable module.
- bindModuleWith(TerminableConsumer) - Method in interface dev.demeng.pluginbase.terminable.module.TerminableModule
-
Registers this terminable with a terminable consumer
- bindWith(TerminableConsumer) - Method in interface dev.demeng.pluginbase.terminable.Terminable
-
Binds this terminable with a terminable consumer
- BlockPosition - Class in dev.demeng.pluginbase.model
-
An immutable and serializable Location object with integer values and no yaw nor pitch.
- BlockPosition() - Constructor for class dev.demeng.pluginbase.model.BlockPosition
- broadcast(String, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Broadcasts the message after coloring and formatting it.
- broadcastRaw(String, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Broadcasts a colorized message without the prefix.
- Bucket<E> - Interface in dev.demeng.pluginbase.bucket
-
A bucket is an extension of
Set, which allows contained elements to be separated into parts by aPartitioningStrategy. - BucketFactory - Class in dev.demeng.pluginbase.bucket.factory
-
A set of methods for creating
Buckets. - BucketPartition<E> - Interface in dev.demeng.pluginbase.bucket
-
Represents a partition of elements within a
Bucket. - build() - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer.Builder
-
Builds and returns the configured dependency container.
- build() - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonArrayBuilder
-
Returns the built
JsonArray. - build() - Method in interface dev.demeng.pluginbase.gson.JsonBuilder.JsonObjectBuilder
-
Returns the built
JsonObject. - builder() - Static method in interface dev.demeng.pluginbase.di.container.DependencyContainer
-
Creates a new builder for configuring a dependency container.
- builder() - Static method in class dev.demeng.pluginbase.di.DependencyInjection
-
Creates a new dependency container builder.
- builder() - Static method in class dev.demeng.pluginbase.Schedulers
-
Gets a
TaskBuilderinstance - bukkit() - Static method in class dev.demeng.pluginbase.Schedulers
-
Gets Bukkit's scheduler.
- BULGARIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
C
- call(Callable<T>) - Method in interface dev.demeng.pluginbase.scheduler.builder.ContextualPromiseBuilder
- call(Callable<T>) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed callable.
- call(Event) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on the current thread
- callableToSupplier(Callable<T>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
- callAndReturn(T) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on the current thread
- callAsync(Event) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on a new async thread.
- callAsyncAndJoin(T) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on a new async thread.
- callLater(Callable<T>, long) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed callable at some point in the future
- callLater(Callable<T>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed callable at some point in the future
- callSync(Event) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on the main server thread.
- callSyncAndJoin(T) - Static method in class dev.demeng.pluginbase.Events
-
Submit the event on the main server thread.
- cancel() - Static method in class dev.demeng.pluginbase.event.filter.EventHandlers
-
Returns a consumer which cancels the event
- cancel() - Method in interface dev.demeng.pluginbase.promise.Promise
-
Attempts to cancel execution of this task.
- capitalizeFirst(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Makes the first character uppercase and the rest lowercase.
- cast() - Method in interface dev.demeng.pluginbase.bucket.partitioning.GenericPartitioningStrategy
-
Casts this
GenericPartitioningStrategyto aPartitioningStrategyof type T. - center(Location) - Static method in class dev.demeng.pluginbase.Locations
-
Rounds a location to the center of a block.
- CHAT_LINE - Static variable in class dev.demeng.pluginbase.text.Text
-
Separation line for players (in-game chat).
- ChatInputRequest<T> - Class in dev.demeng.pluginbase.input
-
Requests a chat input from players, with the ability to map the string input into the object you require and a retry system for invalid inputs.
- ChatInputRequest() - Constructor for class dev.demeng.pluginbase.input.ChatInputRequest
- checkClass(String) - Static method in class dev.demeng.pluginbase.Common
-
Simple method to check if a class exists.
- checkDouble(String) - Static method in class dev.demeng.pluginbase.Common
-
Attempts to parse a string into a double.
- checkFloat(String) - Static method in class dev.demeng.pluginbase.Common
-
Attempts to parse a string into a float.
- checkInt(String) - Static method in class dev.demeng.pluginbase.Common
-
Attempts to parse a string into an integer.
- checkLong(String) - Static method in class dev.demeng.pluginbase.Common
-
Attempts to parse a string into a long.
- CHINESE - Static variable in class dev.demeng.pluginbase.locale.Locales
- cleanup() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractCompositeTerminable
- cleanup() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractWeakCompositeTerminable
- cleanup() - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Removes instances which have already been terminated.
- clear() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- clear() - Method in interface dev.demeng.pluginbase.locale.Translator
-
Clears all currently registered locales.
- clearCache() - Static method in class dev.demeng.pluginbase.ServerProperties
-
Clears the properties cache.
- clearEnchants() - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Clears any enchantments that have been applied.
- clearFlags() - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Clears all current item flags.
- clearLore() - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Clears the item lore.
- clearTitle(Player) - Static method in class dev.demeng.pluginbase.text.Text
-
Clears the current title and subtitle of the player.
- close() - Method in interface dev.demeng.pluginbase.event.Subscription
- close() - Method in interface dev.demeng.pluginbase.scheduler.Task
-
Stopsthe task. - close() - Method in interface dev.demeng.pluginbase.scheduler.threadlock.ServerThreadLock
-
Closes the lock, and allows the main thread to continue
- close() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractCompositeTerminable
- close() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractWeakCompositeTerminable
- close() - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Closes this composite terminable.
- close() - Method in interface dev.demeng.pluginbase.terminable.Terminable
-
Closes this resource.
- closeAndReportException() - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
- closeAndReportException() - Method in interface dev.demeng.pluginbase.terminable.Terminable
-
Closes this resource, and prints the exception if one is thrown.
- closeSilently() - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
- closeSilently() - Method in interface dev.demeng.pluginbase.terminable.Terminable
-
Silently closes this resource, and returns the exception if one is thrown.
- collectToArray() - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Returns a collector which forms a JsonArray from JsonElements
- collectToArray(Function<? super T, JsonElement>) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Returns a collector which forms a JsonArray using the value mapper
- collectToObject(Function<? super T, String>, Function<? super T, JsonElement>) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Returns a collector which forms a JsonObject using the key and value mappers
- colorize(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Converts plain string with color codes into a colorized message.
- colorize(List<String>) - Static method in class dev.demeng.pluginbase.text.Text
-
Colorizes a list of plain strings.
- colorScheme() - Method in interface dev.demeng.pluginbase.BaseSettings
-
The color scheme of the plugin.
- ColorScheme() - Constructor for class dev.demeng.pluginbase.BaseSettings.ColorScheme
- Common - Class in dev.demeng.pluginbase
-
Commonly used methods and utilities.
- Common() - Constructor for class dev.demeng.pluginbase.Common
- completed(U) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a Promise which is already completed with the given value.
- Component - Annotation Interface in dev.demeng.pluginbase.di.annotation
-
Marks a class as a component that can be auto-created by the dependency injection container.
- CompositeClosingException - Exception in dev.demeng.pluginbase.terminable.composite
-
Exception thrown to propagate exceptions thrown by
CompositeTerminable.close(). - CompositeClosingException(List<? extends Throwable>) - Constructor for exception dev.demeng.pluginbase.terminable.composite.CompositeClosingException
- CompositeTerminable - Interface in dev.demeng.pluginbase.terminable.composite
-
Represents a
Terminablemade up of several otherTerminables. - CONCISE - Enum constant in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
The concise format: 3w 2d 1h.
- CONCISE_LOW_ACCURACY - Enum constant in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
The concise, but low accuracy (maximum 3 time units) format.
- ConfigLocaleReader - Class in dev.demeng.pluginbase.locale.reader
-
A locale reader that uses Bukkit config files (such as .yml) instead of standard resource bundles (.properties).
- ConfigLocaleReader() - Constructor for class dev.demeng.pluginbase.locale.reader.ConfigLocaleReader
- configureDependencies() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Configures dependencies for this plugin.
- console(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a formatted console message.
- CONSOLE_LINE - Static variable in class dev.demeng.pluginbase.text.Text
-
Separation line for console.
- consoleRaw(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a colorized console message without the prefix.
- consume(Consumer<Task>) - Method in interface dev.demeng.pluginbase.scheduler.builder.ContextualTaskBuilder
- consumer(Consumer<? super T>) - Method in interface dev.demeng.pluginbase.event.functional.FunctionalHandlerList
-
Add a
Consumerhandler. - consumer(Consumer<? super T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedHandlerList
- consumer(Consumer<? super T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleHandlerList
- consumerToBiConsumerFirst(Consumer<T>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
-
Wraps a
Consumeras aBiConsumerthat applies the consumer to the first argument, ignoring the second. - consumerToBiConsumerSecond(Consumer<U>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
-
Wraps a
Consumeras aBiConsumerthat applies the consumer to the second argument, ignoring the first. - consumerToFunction(Consumer<T>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
- contains(Object) - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- containsKey(String) - Method in interface dev.demeng.pluginbase.locale.LocaleReader
-
Returns whether this reader contains a mapping for the given key.
- containsKey(String) - Method in class dev.demeng.pluginbase.locale.reader.ConfigLocaleReader
- containsKey(String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns whether this translator contains a localized message for the given key, using the current
Translator.getLocale(). - containsKey(String, Locale) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns whether this translator contains a localized message for the given key.
- content - Variable in class dev.demeng.pluginbase.bucket.AbstractBucket
-
The content in the bucket
- ContextualPromiseBuilder - Interface in dev.demeng.pluginbase.scheduler.builder
-
Builds instances of
Promise, often combining parameters with variables already known by this instance. - ContextualTaskBuilder - Interface in dev.demeng.pluginbase.scheduler.builder
-
Queues execution of tasks using
Scheduler, often combining parameters with variables already known by this instance. - Cooldown - Class in dev.demeng.pluginbase.cooldown
-
A cooldown lasting a specified amount of time.
- CooldownMap<T> - Class in dev.demeng.pluginbase.cooldown
-
A self-populating map of cooldown instances.
- copy() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Creates a copy of this cycle.
- copy() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Copies the properties of this cooldown to a new instance
- copy() - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Clones this item builder.
- create() - Static method in class dev.demeng.pluginbase.di.DependencyInjection
-
Creates a new empty dependency container.
- create() - Static method in interface dev.demeng.pluginbase.locale.Translator
-
Creates a new
Translator - create() - Static method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Creates a new standalone
CompositeTerminable. - create(int, ConfigurationSection, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section, but overrides any slot values the configuration section may have.
- create(int, ConfigurationSection, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section, but overrides any slot values the configuration section may have.
- create(int, ItemStack, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button.
- create(Cooldown) - Static method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Creates a new collection with the cooldown properties defined by the base instance.
- create(Function<String, T>) - Static method in class dev.demeng.pluginbase.input.ChatInputRequest
-
Creates a new chat input request builder.
- create(ConfigurationSection, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section.
- create(ConfigurationSection, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section.
- create(ItemStack) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Creates a new builder from an existing item stack.
- create(Material) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Creates a new builder from a simple material.
- create(Material, int) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Creates a new builder from a material and an amount.
- create(Material, int, short) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Creates a new builder from a material, amount, and damage.
- createCommandHandler() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Creates a new Lamp command handler builder with PluginBase's settings pre-configured.
- createLocalized(int, ConfigurationSection, CommandSender, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, overriding the slot, using the sender's locale.
- createLocalized(int, ConfigurationSection, CommandSender, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, overriding the slot, using the sender's locale.
- createLocalized(int, ConfigurationSection, Locale, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, overriding the slot.
- createLocalized(int, ConfigurationSection, Locale, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, overriding the slot.
- createLocalized(ConfigurationSection, CommandSender, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, using the sender's locale.
- createLocalized(ConfigurationSection, CommandSender, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support, using the sender's locale.
- createLocalized(ConfigurationSection, Locale, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support.
- createLocalized(ConfigurationSection, Locale, UnaryOperator<String>, Consumer<InventoryClickEvent>) - Static method in class dev.demeng.pluginbase.menu.model.MenuButton
-
Creates a new menu button from a configuration section with localization support.
- createSet() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
-
Supplies the set instances to use for each partition in the bucket
- createWeak() - Static method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Creates a new standalone
CompositeTerminable, which wraps contained terminables inWeakReferences. - current() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Gets the current element
- cursor() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Gets the current position of the cursor, as as index relating to a position in the backing list.
- CUSTOM_PREFIX - Static variable in class dev.demeng.pluginbase.Sounds
-
The prefix that the util will search for, used to determine if the plugin should play a vanilla sound or a custom sound (such as one in a resource pack).
- Cycle<E> - Interface in dev.demeng.pluginbase.bucket
-
An infinite cycle of elements.
- CZECH - Static variable in class dev.demeng.pluginbase.locale.Locales
D
- DANISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- DATE_FORMAT - Static variable in class dev.demeng.pluginbase.Time
-
The date format used for dates.
- DATE_TIME_FORMAT - Static variable in class dev.demeng.pluginbase.Time
-
The date format used for dates and times combined.
- dateFormat() - Method in interface dev.demeng.pluginbase.BaseSettings
-
The format for dates.
- dateTimeFormat() - Method in interface dev.demeng.pluginbase.BaseSettings
-
The format for dates and times combined.
- DEFAULT_EXCEPTION_CONSUMER - Static variable in interface dev.demeng.pluginbase.event.functional.SubscriptionBuilder
- Delegate<T> - Interface in dev.demeng.pluginbase.delegate
-
Represents a class which delegates calls to a different object.
- Delegates - Class in dev.demeng.pluginbase.delegate
-
A collection of utility methods for delegating Java 8 functions.
- Delegates() - Constructor for class dev.demeng.pluginbase.delegate.Delegates
- DependencyContainer - Interface in dev.demeng.pluginbase.di.container
-
A dependency injection container that manages singleton instances with auto-injection.
- DependencyContainer.Builder - Interface in dev.demeng.pluginbase.di.container
-
Builder for creating and configuring a
DependencyContainer. - DependencyException - Exception in dev.demeng.pluginbase.di.exception
-
Base exception for all dependency injection related errors.
- DependencyException(String) - Constructor for exception dev.demeng.pluginbase.di.exception.DependencyException
- DependencyException(String, Throwable) - Constructor for exception dev.demeng.pluginbase.di.exception.DependencyException
- DependencyException(Throwable) - Constructor for exception dev.demeng.pluginbase.di.exception.DependencyException
- DependencyInjection - Class in dev.demeng.pluginbase.di
-
Utility class for creating and working with dependency injection containers.
- DependencyInjection() - Constructor for class dev.demeng.pluginbase.di.DependencyInjection
- deserialize(Class<T>, ConfigurationSection) - Static method in interface dev.demeng.pluginbase.serialize.YamlSerializable
-
Deserializes a ConfigurationSection to a YamlSerializable object.
- deserialize(ConfigurationSection) - Static method in class dev.demeng.pluginbase.model.BlockPosition
- deserialize(ConfigurationSection) - Static method in class dev.demeng.pluginbase.model.Point
- deserialize(ConfigurationSection) - Static method in class dev.demeng.pluginbase.model.Position
- deserialize(ConfigurationSection) - Static method in class dev.demeng.pluginbase.model.Vector3d
- deserialize(ConfigurationSection) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
-
Deserializes the configuration section into an item stack.
- deserialize(ConfigurationSection, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
-
Deserializes the configuration section into an item stack.
- deserializeLocalized(ConfigurationSection, CommandSender) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
- deserializeLocalized(ConfigurationSection, CommandSender, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
- deserializeLocalized(ConfigurationSection, Locale) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
- deserializeLocalized(ConfigurationSection, Locale, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
-
Deserializes the configuration section into an item stack with localization.
- deserializeLocalizedDef(ConfigurationSection) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
- deserializeLocalizedDef(ConfigurationSection, UnaryOperator<String>) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
- deserializeRaw(Class<?>, ConfigurationSection) - Static method in interface dev.demeng.pluginbase.serialize.YamlSerializable
-
Deserializes a ConfigurationSection to a YamlSerializable object.
- dev.demeng.pluginbase - package dev.demeng.pluginbase
- dev.demeng.pluginbase.bucket - package dev.demeng.pluginbase.bucket
- dev.demeng.pluginbase.bucket.factory - package dev.demeng.pluginbase.bucket.factory
- dev.demeng.pluginbase.bucket.partitioning - package dev.demeng.pluginbase.bucket.partitioning
- dev.demeng.pluginbase.command - package dev.demeng.pluginbase.command
- dev.demeng.pluginbase.cooldown - package dev.demeng.pluginbase.cooldown
- dev.demeng.pluginbase.delegate - package dev.demeng.pluginbase.delegate
- dev.demeng.pluginbase.di - package dev.demeng.pluginbase.di
- dev.demeng.pluginbase.di.annotation - package dev.demeng.pluginbase.di.annotation
- dev.demeng.pluginbase.di.container - package dev.demeng.pluginbase.di.container
- dev.demeng.pluginbase.di.exception - package dev.demeng.pluginbase.di.exception
- dev.demeng.pluginbase.event - package dev.demeng.pluginbase.event
- dev.demeng.pluginbase.event.filter - package dev.demeng.pluginbase.event.filter
- dev.demeng.pluginbase.event.functional - package dev.demeng.pluginbase.event.functional
- dev.demeng.pluginbase.event.functional.merged - package dev.demeng.pluginbase.event.functional.merged
- dev.demeng.pluginbase.event.functional.single - package dev.demeng.pluginbase.event.functional.single
- dev.demeng.pluginbase.exceptions - package dev.demeng.pluginbase.exceptions
- dev.demeng.pluginbase.gson - package dev.demeng.pluginbase.gson
- dev.demeng.pluginbase.input - package dev.demeng.pluginbase.input
- dev.demeng.pluginbase.interfaces - package dev.demeng.pluginbase.interfaces
- dev.demeng.pluginbase.item - package dev.demeng.pluginbase.item
- dev.demeng.pluginbase.locale - package dev.demeng.pluginbase.locale
- dev.demeng.pluginbase.locale.reader - package dev.demeng.pluginbase.locale.reader
- dev.demeng.pluginbase.menu - package dev.demeng.pluginbase.menu
- dev.demeng.pluginbase.menu.layout - package dev.demeng.pluginbase.menu.layout
- dev.demeng.pluginbase.menu.model - package dev.demeng.pluginbase.menu.model
- dev.demeng.pluginbase.model - package dev.demeng.pluginbase.model
- dev.demeng.pluginbase.plugin - package dev.demeng.pluginbase.plugin
- dev.demeng.pluginbase.promise - package dev.demeng.pluginbase.promise
- dev.demeng.pluginbase.random - package dev.demeng.pluginbase.random
- dev.demeng.pluginbase.scheduler - package dev.demeng.pluginbase.scheduler
- dev.demeng.pluginbase.scheduler.builder - package dev.demeng.pluginbase.scheduler.builder
- dev.demeng.pluginbase.scheduler.threadlock - package dev.demeng.pluginbase.scheduler.threadlock
- dev.demeng.pluginbase.serialize - package dev.demeng.pluginbase.serialize
- dev.demeng.pluginbase.terminable - package dev.demeng.pluginbase.terminable
- dev.demeng.pluginbase.terminable.composite - package dev.demeng.pluginbase.terminable.composite
- dev.demeng.pluginbase.terminable.module - package dev.demeng.pluginbase.terminable.module
- dev.demeng.pluginbase.text - package dev.demeng.pluginbase.text
- disable() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Executes on plugin disable.
- durability(short) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Changes the durability of the item.
- DUTCH - Static variable in class dev.demeng.pluginbase.locale.Locales
- DynamicPlaceholders - Interface in dev.demeng.pluginbase
-
An easy way to provides methods for setting placeholders in lists and item stacks, simply by defining how to set the placeholders in a string.
E
- elapsed() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Returns the elapsed time in milliseconds since the cooldown was last reset, or since creation time.
- elapsed(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Returns the number of milliseconds that have elapsed since the cooldown for the given key was last tested.
- empty() - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new empty Promise
- EMPTY - Static variable in interface dev.demeng.pluginbase.terminable.Terminable
- enable() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Executes on plugin enable.
- enchant(Map<Enchantment, Integer>) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Adds all the enchants specified in the map, with the key being the enchantment and the value being the level.
- enchant(Enchantment, int) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Adds a safe enchantment.
- enchant(Enchantment, int, boolean) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Adds an enchantment with customizable safety.
- ENGLISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- error(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Appends the prefix, a red chat color, and the message, and then colorizes.
- error(Throwable, String, boolean, CommandSender...) - Static method in class dev.demeng.pluginbase.Common
-
Reports an error in the plugin.
- ERROR - Enum constant in enum class dev.demeng.pluginbase.UpdateChecker.Result
-
There was an error whilst checking for updates.
- EventFilters - Class in dev.demeng.pluginbase.event.filter
-
Defines standard event predicates for use in functional event handlers.
- EventFilters() - Constructor for class dev.demeng.pluginbase.event.filter.EventFilters
- EventHandlerException - Exception in dev.demeng.pluginbase.exceptions
-
A general exception caused by an event handler.
- EventHandlerException(Throwable, Object) - Constructor for exception dev.demeng.pluginbase.exceptions.EventHandlerException
- EventHandlers - Class in dev.demeng.pluginbase.event.filter
-
Defines standard event predicates for use in functional event handlers.
- EventHandlers() - Constructor for class dev.demeng.pluginbase.event.filter.EventHandlers
- Events - Class in dev.demeng.pluginbase
-
A functional event listening utility.
- Events() - Constructor for class dev.demeng.pluginbase.Events
- every(long) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.DelayedTick
-
Marks that the new task should repeat on the specified interval, and returns the next builder in the chain.
- every(long) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should start running instantly, but repeat on the specified interval, and returns the next builder in the chain.
- every(long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should start running instantly, but repeat on the specified interval, and returns the next builder in the chain.
- every(long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.DelayedTime
-
Marks that the new task should repeat on the specified interval, and returns the next builder in the chain.
- exceptionally(ThreadContext, Function<Throwable, ? extends V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function.
- exceptionally(Throwable) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a Promise which is already completed with the given exception.
- exceptionallyAsync(Function<Throwable, ? extends V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function.
- exceptionallyDelayed(ThreadContext, Function<Throwable, ? extends V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallyDelayed(ThreadContext, Function<Throwable, ? extends V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallyDelayedAsync(Function<Throwable, ? extends V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallyDelayedAsync(Function<Throwable, ? extends V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallyDelayedSync(Function<Throwable, ? extends V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallyDelayedSync(Function<Throwable, ? extends V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function, after the delay has elapsed.
- exceptionallySync(Function<Throwable, ? extends V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's exception as the argument to the given function.
- exceptionConsumer(BiConsumer<? super T, Throwable>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Sets the exception consumer for the handler.
- exceptionConsumer(BiConsumer<Event, Throwable>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Sets the exception consumer for the handler.
- expireAfter(long) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
- expireAfter(long) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
- expireAfter(long) - Method in interface dev.demeng.pluginbase.event.functional.SubscriptionBuilder
-
Sets the number of calls until the handler will automatically be unregistered
- expireAfter(long, TimeUnit) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
- expireAfter(long, TimeUnit) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
- expireAfter(long, TimeUnit) - Method in interface dev.demeng.pluginbase.event.functional.SubscriptionBuilder
-
Sets the expiry time on the handler
- expireIf(BiPredicate<MergedSubscription<T>, T>, ExpiryTestStage...) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Add a expiry predicate.
- expireIf(BiPredicate<SingleSubscription<T>, T>, ExpiryTestStage...) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Add a expiry predicate.
- expireIf(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
- expireIf(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
- expireIf(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.SubscriptionBuilder
-
Add a expiry predicate.
- ExpiryTestStage - Enum Class in dev.demeng.pluginbase.event.functional
-
Represents when a expiry predicate should be tested relative to the handling of the event.
F
- fill(List<MenuButton>) - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
-
Fills the pages with the list of buttons.
- filter(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
- filter(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
- filter(Predicate<T>) - Method in interface dev.demeng.pluginbase.event.functional.SubscriptionBuilder
-
Adds a filter to the handler.
- FINNISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- flags(ItemFlag...) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the item flags.
- forCurrentThread() - Static method in enum class dev.demeng.pluginbase.promise.ThreadContext
-
Gets the thread context of the current thread.
- forEach(Consumer<Player>) - Static method in class dev.demeng.pluginbase.Players
-
Applies a given action to all players on the server.
- forEachInRange(Location, double, Consumer<Player>) - Static method in class dev.demeng.pluginbase.Players
-
Applies an action to all players within a given radius of a point.
- forEachInt(String, IntConsumer) - Static method in class dev.demeng.pluginbase.Common
-
Parses a string sequence of integers and accepts a consumer for each integer.
- format(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Appends the prefix, and then colorizes.
- format(Duration) - Method in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
Convenience method for accessing
Time.DurationFormatter.format(Duration, boolean, int)through existing enumeration implementations. - format(Duration, boolean) - Static method in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
Formats
durationas a string, either in aconcise(1 letter) or full length format, displaying all possible elements. - format(Duration, boolean, int) - Static method in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
Formats
durationas a string, either in aconcise(1 letter) or full length format, displaying up to the specified number ofelements. - formatDate(long) - Static method in class dev.demeng.pluginbase.Time
-
Formats the date using
Time.DATE_FORMAT. - formatDateTime(long) - Static method in class dev.demeng.pluginbase.Time
-
Formats the date and time using
Time.DATE_TIME_FORMAT. - formatDecimal(double) - Static method in class dev.demeng.pluginbase.Common
-
Formats a decimal into a human-friendly string that rounds the double to 2 decimal places.
- formatDuration(Time.DurationFormatter, long) - Static method in class dev.demeng.pluginbase.Time
-
Formats the duration using the selected formatter.
- forThread(Thread) - Static method in enum class dev.demeng.pluginbase.promise.ThreadContext
-
Gets the thread context of the specified thread.
- FRENCH - Static variable in class dev.demeng.pluginbase.locale.Locales
- from(long, TimeUnit) - Static method in class dev.demeng.pluginbase.scheduler.Ticks
-
Converts a duration in a certain unit of time to ticks.
- fromConfig(ConfigurationSection) - Static method in class dev.demeng.pluginbase.BaseSettings.ColorScheme
-
Gets the color scheme from a configuration section.
- fromConfig(ConfigurationSection) - Static method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
Gets the paged menu settings from a configuration section.
- fromSqlTimestamp(String) - Static method in class dev.demeng.pluginbase.Time
-
Converts the SQL timestamp into a long.
- fromString(String) - Static method in class dev.demeng.pluginbase.TrimmedUuids
-
Parses a UUID from a trimmed string.
- FunctionalHandlerList<T,
R> - Interface in dev.demeng.pluginbase.event.functional -
A functional builder which accumulates event handlers
G
- generate(int, char[]) - Static method in class dev.demeng.pluginbase.random.RandomString
-
Generates a new "unique" string identifier with the specified length.
- GenericPartitioningStrategy - Interface in dev.demeng.pluginbase.bucket.partitioning
-
A
PartitioningStrategywhich allocates partitions without reference to the object being added. - GERMAN - Static variable in class dev.demeng.pluginbase.locale.Locales
- get() - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Gets the current item stack.
- get(Class<T>) - Static method in class dev.demeng.pluginbase.Services
-
Loads a service instance
- get(String) - Method in interface dev.demeng.pluginbase.locale.LocaleReader
-
Returns the mapping value for this key.
- get(String) - Static method in class dev.demeng.pluginbase.locale.Locales
-
Returns the locale that matches the given language string.
- get(String) - Method in class dev.demeng.pluginbase.locale.reader.ConfigLocaleReader
- get(String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns the message that corresponds to the given key, using the current
Translator.getLocale(). - get(String, Locale) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns the message that corresponds to the given key, using the given locale.
- get(ThreadContext) - Static method in class dev.demeng.pluginbase.Schedulers
-
Gets a scheduler for the given context.
- get(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Gets the internal cooldown instance associated with the given key.
- getActions() - Method in class dev.demeng.pluginbase.menu.layout.Menu
- getAdventure() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets the BukkitAudiences instance to use for Adventure.
- getAll() - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Gets the cooldowns contained within this collection.
- getArray(String) - Method in interface dev.demeng.pluginbase.locale.LocaleReader
-
Returns the mapping value for this key.
- getArray(String) - Method in class dev.demeng.pluginbase.locale.reader.ConfigLocaleReader
- getArray(String) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns the message array that corresponds to the given key, using the current
Translator.getLocale(). - getArray(String, Locale) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Returns the message array that corresponds to the given key, using the given locale.
- getAvailableSlots() - Method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
The list of slots that buttons can use.
- getBacking() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Gets the list currently backing this cycle
- getBaseSettings() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets the settings the library should use.
- getBukkitId() - Method in interface dev.demeng.pluginbase.scheduler.Task
-
Gets the Bukkit ID for this task.
- getCallCounter() - Method in interface dev.demeng.pluginbase.event.Subscription
-
Gets the number of times the handler has been called
- getCauses() - Method in exception dev.demeng.pluginbase.terminable.composite.CompositeClosingException
- getContext() - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Gets the context this scheduler operates in.
- getDelegate() - Method in interface dev.demeng.pluginbase.delegate.Delegate
-
Gets the delegate object.
- getDependency(Class<T>) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets an instance from the DI container.
- getDependencyContainer() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets the dependency injection container.
- getDeserializeMethod(Class<?>) - Static method in interface dev.demeng.pluginbase.serialize.YamlSerializable
-
Gets the deserialization method for a given class.
- getDummyNextButton() - Method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
The next page button if there are no more pages to go to.
- getDummyPreviousButton() - Method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
The previous page button if there are no more pages to go back to.
- getEventClass() - Method in interface dev.demeng.pluginbase.event.SingleSubscription
-
Gets the class the handler is handling
- getEventClasses() - Method in interface dev.demeng.pluginbase.event.MergedSubscription
-
Gets a set of the individual event classes being listened to
- getFunctions() - Method in interface dev.demeng.pluginbase.event.Subscription
-
Deprecated.not API, subject to change or removal
- getHandledClass() - Method in interface dev.demeng.pluginbase.event.MergedSubscription
-
Gets the handled class
- getInstance(Class<T>) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer
-
Gets an instance of the specified type from the container.
- getLastTested() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Return the time in milliseconds when this cooldown was last
Cooldown.test()ed. - getLastTested(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Returns the timestamp at which the cooldown for the given key was last tested, as milliseconds since the epoch.
- getLocale() - Method in interface dev.demeng.pluginbase.locale.LocaleReader
-
Returns the locale of by this reader
- getLocale() - Method in interface dev.demeng.pluginbase.locale.Translator
-
Gets the current, default locale used by this translator
- getLocale(CommandSender) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets the locale for the specified console or player.
- getLocales() - Static method in class dev.demeng.pluginbase.locale.Locales
-
Returns all the locales in this class
- getMainThread() - Static method in class dev.demeng.pluginbase.plugin.BaseManager
-
Gets the main thread of the server that is using the plugin.
- getMaterial(String) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Gets a material from a string.
- getMaterialOrDef(String, ItemStack) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Attempts to get a material from a string, but returns the default item stack if the result of the provided material string is invalid or unsupported, instead of throwing an error and just returning stone like
ItemBuilder.getMaterial(String). - getMaterialSafe(String) - Static method in class dev.demeng.pluginbase.item.ItemBuilder
-
Gets a material from a string.
- getName() - Static method in class dev.demeng.pluginbase.Common
-
Gets the name of the plugin, as defined in plugin.yml.
- getNextButton() - Method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
The next page button.
- getNow(V) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns the result value (or throws any encountered exception) if completed, else returns the given valueIfAbsent.
- getOrDefault(T, T) - Static method in class dev.demeng.pluginbase.Common
-
Returns the nullable value if not null, or the default value if it is null.
- getOrError(T, String, boolean) - Static method in class dev.demeng.pluginbase.Common
-
Returns the nullable value if not null, or throws a runtime exception with error if it is null.
- getPages() - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
- getPartition(int) - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- getPartition(int) - Method in interface dev.demeng.pluginbase.bucket.Bucket
-
Gets the partition with the given index value
- getPartitionCount() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- getPartitionCount() - Method in interface dev.demeng.pluginbase.bucket.Bucket
-
Gets the number of partitions used to form this bucket.
- getPartitionIndex() - Method in interface dev.demeng.pluginbase.bucket.BucketPartition
-
Gets the index of this partition within the bucket
- getPartitions() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- getPartitions() - Method in interface dev.demeng.pluginbase.bucket.Bucket
-
Gets the partitions which form this bucket.
- getPlugin() - Static method in class dev.demeng.pluginbase.plugin.BaseManager
-
Gets a never-null instance of the
JavaPluginthe library is currently working with. - getPrefix() - Static method in class dev.demeng.pluginbase.text.Text
-
Convenience method to get the current prefix of the plugin.
- getPreviousButton() - Method in interface dev.demeng.pluginbase.menu.layout.PagedMenu.Settings
-
The previous page button.
- getPromptText(ConversationContext) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
- getProperty(String) - Static method in class dev.demeng.pluginbase.ServerProperties
-
Gets a property from server.properties.
- getServerMajorVersion() - Static method in class dev.demeng.pluginbase.Common
-
Gets the server's major Minecraft version.
- getService(Class<T>) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets a service provided by the ServiceManager.
- getTimesRan() - Method in interface dev.demeng.pluginbase.scheduler.Task
-
Gets the number of times this task ran.
- getTranslator() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets the translator.
- getType() - Method in interface dev.demeng.pluginbase.interfaces.TypeAware
- getVersion() - Static method in class dev.demeng.pluginbase.Common
-
Gets the version string, as defined in plugin.yml.
- glow(boolean) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets if the item should be given a durability enchantment to make it appear glowing and add a hide enchantment item flag.
- GREEK - Static variable in class dev.demeng.pluginbase.locale.Locales
- GsonProvider - Class in dev.demeng.pluginbase.gson
-
Provides static instances of
Gson. - GsonProvider() - Constructor for class dev.demeng.pluginbase.gson.GsonProvider
H
- handleFailedAttempts(A, List<Potential<A>>, StringStream) - Method in class dev.demeng.pluginbase.command.BaseFailureHandler
-
Resolves which error to surface when one or more command attempts fail.
- handler(Consumer<? super T>) - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Builds and registers the Handler.
- handler(Consumer<? super T>) - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Builds and registers the Handler.
- handlers() - Method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Return the handler list builder to append handlers for the event.
- handlers() - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Return the handler list builder to append handlers for the event.
- handleSubclasses() - Method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Sets that the handler should accept subclasses of the event type.
- hasInstance(Class<?>) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer
-
Checks if an instance is registered for the given type.
- hasPermission(CommandSender, String) - Static method in class dev.demeng.pluginbase.Common
-
Checks if the specified command sender has the permission node.
- HEBREW - Static variable in class dev.demeng.pluginbase.locale.Locales
- HEX_PATTERN - Static variable in class dev.demeng.pluginbase.text.Text
-
Pattern to match our HEX color format for MC 1.16+.
- HINDI - Static variable in class dev.demeng.pluginbase.locale.Locales
- HUNGARIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
I
- ignoreCancelled() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the event isn't cancelled
- ignoreDisallowedLogin() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the login is allowed
- ignoreDisallowedPreLogin() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the login is allowed
- ignoreNotCancelled() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the event is cancelled
- ignoreSameBlock() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the player has moved over a block
- ignoreSameBlockAndY() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the player has moved over a block, not including movement directly up and down.
- ignoreSameChunk() - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the player has moved over a chunk border
- IMenu - Interface in dev.demeng.pluginbase.menu
-
An interface containing common methods between the different menu layouts.
- includePrefixOnEachLine() - Method in interface dev.demeng.pluginbase.BaseSettings
-
Whether the prefix should be included on each line of chat messages.
- isActive() - Method in interface dev.demeng.pluginbase.event.Subscription
-
Gets whether the handler is active
- isClosed() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractCompositeTerminable
- isClosed() - Method in class dev.demeng.pluginbase.terminable.composite.AbstractWeakCompositeTerminable
- isClosed() - Method in interface dev.demeng.pluginbase.terminable.Terminable
-
Gets if the object represented by this instance is already permanently closed.
- isEmpty() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- isInputValid(ConversationContext, String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
- isOutdated(int) - Method in class dev.demeng.pluginbase.YamlConfig
-
Checks if the config version integer equals or is less than the current version.
- isPluginPresent(String) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Gets if a given plugin is enabled.
- isServerVersionAtLeast(int) - Static method in class dev.demeng.pluginbase.Common
-
Checks if the server's major version is at least the specified version.
- isSimilar(String, String, double) - Static method in class dev.demeng.pluginbase.text.StringSimilarity
-
Checks if two strings are similar enough based on a threshold.
- ITALIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
- ItemBuilder - Class in dev.demeng.pluginbase.item
-
A utility for quickly creating
ItemStacks. - ItemBuilder() - Constructor for class dev.demeng.pluginbase.item.ItemBuilder
- ItemSerializer - Class in dev.demeng.pluginbase.serialize
-
The YAML serializer for Bukkit
ItemStacks. - ItemSerializer() - Constructor for class dev.demeng.pluginbase.serialize.ItemSerializer
- iterator() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
J
- JAPANESE - Static variable in class dev.demeng.pluginbase.locale.Locales
- join() - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns the result value when complete, or throws an (unchecked) exception if completed exceptionally.
- JsonBuilder - Class in dev.demeng.pluginbase.gson
-
Builder utilities for creating GSON Objects/Arrays.
- JsonBuilder.JsonArrayBuilder - Interface in dev.demeng.pluginbase.gson
-
A
JsonArraybuilder utility - JsonBuilder.JsonObjectBuilder - Interface in dev.demeng.pluginbase.gson
-
A
JsonObjectbuilder utility
K
L
- LATIN - Static variable in class dev.demeng.pluginbase.locale.Locales
- legacyParseMini(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Parses the string using the MiniMessage library, and then uses the legacy Bukkit Component Serializer to return a String rather than a Component.
- legacySerialize(Component) - Static method in class dev.demeng.pluginbase.text.Text
-
Serializes an Adventure
Componentusing the legacy Bukkit Component Serializer, which can be useful for displaying components in areas other than the chat (ex. - levenshteinDistance(String, String) - Static method in class dev.demeng.pluginbase.text.StringSimilarity
-
Calculates the Levenshtein distance between two strings.
- line(CommandSender) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets either
Text.CHAT_LINEorText.CONSOLE_LINE, depending on if theCommandSenderis a player or console. - load() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Executes at early plugin startup.
- load(Class<T>) - Static method in class dev.demeng.pluginbase.Services
-
Loads a service instance, throwing a
IllegalStateExceptionif no registration is present. - LocaleReader - Interface in dev.demeng.pluginbase.locale
-
A locale reader is a source in which messages for a specific locale are fetched.
- Locales - Class in dev.demeng.pluginbase.locale
-
An enum-like class for packing all available locales supported by the framework.
- localized(String, Locale, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets the localized string with the given key using the provided locale.
- localized(String, CommandSender, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets the localized string with the given key using the provided sender's locale.
- LOCALIZED_PLACEHOLDER_PATTERN - Static variable in class dev.demeng.pluginbase.text.Text
-
Pattern to match our localized placeholders.
- localizedDef(String, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets the localized string with the given key using the default locale.
- localizedOrDefault(CommandSender, String, String, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Gets a localized error message with fallback to a default message.
- localizePlaceholders(String, Locale, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Localizes the placeholders in the string using the sender's locale.
- localizePlaceholders(String, CommandSender, Object...) - Static method in class dev.demeng.pluginbase.text.Text
- localizePlaceholdersDef(String, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Localizes the placeholders in the string using the default locale.
- Locations - Class in dev.demeng.pluginbase
-
Utilities for
Location. - Locations() - Constructor for class dev.demeng.pluginbase.Locations
- log(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Logs a plain message into the console.
- log(Level, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Logs a plain message into the console.
- LONG - Enum constant in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
The long format: 3 weeks 2 days 1 hour.
- lore(String...) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the lore to the specified string(s).
- lore(List<String>) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the lore to the specified list.
- lowestSize() - Static method in class dev.demeng.pluginbase.bucket.partitioning.PartitioningStrategies
M
- Menu - Class in dev.demeng.pluginbase.menu.layout
-
A GUI menu (custom inventory) that will be displayed to a player.
- Menu(int, String) - Constructor for class dev.demeng.pluginbase.menu.layout.Menu
-
Creates a new menu with the specified size and inventory title.
- MenuButton - Class in dev.demeng.pluginbase.menu.model
-
Represents a "button", or rather item stack, that will be put inside a
Menu. - MenuButton() - Constructor for class dev.demeng.pluginbase.menu.model.MenuButton
- MenuManager - Class in dev.demeng.pluginbase.menu
-
Internal listener for handling menu interactions.
- MenuManager() - Constructor for class dev.demeng.pluginbase.menu.MenuManager
- merge(TypeToken<T>) - Static method in class dev.demeng.pluginbase.Events
-
Makes a MergedSubscriptionBuilder for a given super type
- merge(Class<S>, Class<? extends S>...) - Static method in class dev.demeng.pluginbase.Events
-
Makes a MergedSubscriptionBuilder for a super event class
- merge(Class<S>, EventPriority, Class<? extends S>...) - Static method in class dev.demeng.pluginbase.Events
-
Makes a MergedSubscriptionBuilder for a super event class
- merge(Class<T>) - Static method in class dev.demeng.pluginbase.Events
-
Makes a MergedSubscriptionBuilder for a given super type
- MergedHandlerList<T> - Interface in dev.demeng.pluginbase.event.functional.merged
- MergedSubscription<T> - Interface in dev.demeng.pluginbase.event
-
Represents a subscription to a set of events.
- MergedSubscriptionBuilder<T> - Interface in dev.demeng.pluginbase.event.functional.merged
-
Functional builder for
MergedSubscriptions. - MILLISECONDS_PER_SECOND - Static variable in class dev.demeng.pluginbase.scheduler.Ticks
- MILLISECONDS_PER_TICK - Static variable in class dev.demeng.pluginbase.scheduler.Ticks
- MINI_MESSAGE - Static variable in class dev.demeng.pluginbase.text.Text
- MissingDependencyException - Exception in dev.demeng.pluginbase.di.exception
-
Thrown when a required dependency cannot be resolved.
- MissingDependencyException(Class<?>) - Constructor for exception dev.demeng.pluginbase.di.exception.MissingDependencyException
-
Creates a new missing dependency exception.
- MissingDependencyException(String) - Constructor for exception dev.demeng.pluginbase.di.exception.MissingDependencyException
-
Creates a new missing dependency exception with a custom message.
- modelData(Integer) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the custom model data of the item, which is only supported in 1.14+.
N
- name(String) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the display name of the item.
- newBucket(int, PartitioningStrategy<E>, Supplier<Set<E>>) - Static method in class dev.demeng.pluginbase.bucket.factory.BucketFactory
- newBuilder() - Static method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder
-
Gets a task builder instance
- newBuilder(TypeToken<T>) - Static method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Makes a MergedHandlerBuilder for a given super type
- newBuilder(Class<S>, Class<? extends S>...) - Static method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Makes a MergedHandlerBuilder for a super event class
- newBuilder(Class<S>, EventPriority, Class<? extends S>...) - Static method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Makes a MergedHandlerBuilder for a super event class
- newBuilder(Class<T>) - Static method in interface dev.demeng.pluginbase.event.functional.merged.MergedSubscriptionBuilder
-
Makes a MergedHandlerBuilder for a given super type
- newBuilder(Class<T>) - Static method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Makes a HandlerBuilder for a given event
- newBuilder(Class<T>, EventPriority) - Static method in interface dev.demeng.pluginbase.event.functional.single.SingleSubscriptionBuilder
-
Makes a HandlerBuilder for a given event
- newConcurrentBucket(int, PartitioningStrategy<E>) - Static method in class dev.demeng.pluginbase.bucket.factory.BucketFactory
- newHashSetBucket(int, PartitioningStrategy<E>) - Static method in class dev.demeng.pluginbase.bucket.factory.BucketFactory
- newSynchronizedHashSetBucket(int, PartitioningStrategy<E>) - Static method in class dev.demeng.pluginbase.bucket.factory.BucketFactory
- next() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Advances the cursor, and returns the next element.
- nextInCycle() - Static method in class dev.demeng.pluginbase.bucket.partitioning.PartitioningStrategies
- nextPosition() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Returns the index of the next position in the cycle.
- NORWEGIAN_BOKMAAL - Static variable in class dev.demeng.pluginbase.locale.Locales
- NORWEGIAN_NYNORSK - Static variable in class dev.demeng.pluginbase.locale.Locales
- notifyResult(CommandSender) - Method in class dev.demeng.pluginbase.UpdateChecker
-
Notifies the console or a player about a new update.
- now() - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder.ThreadContextual
-
Marks that the new task should execute immediately, and returns the next builder in the chain.
- nullValue() - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Returns an instance of
JsonNull. - NUMBERS - Static variable in class dev.demeng.pluginbase.random.RandomString
O
- object() - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new object builder, with no initial values
- object(JsonObject) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new object builder, without copying the passed object.
- object(JsonObject, boolean) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a new object builder
- obtain() - Static method in interface dev.demeng.pluginbase.scheduler.threadlock.ServerThreadLock
-
Blocks the current thread until a
ServerThreadLockcan be obtained. - of(long, TimeUnit) - Static method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Creates a cooldown lasting a specified amount of time.
- of(Location) - Static method in class dev.demeng.pluginbase.model.BlockPosition
- of(Location) - Static method in class dev.demeng.pluginbase.model.Point
- of(Location) - Static method in class dev.demeng.pluginbase.model.Position
- of(Location) - Static method in class dev.demeng.pluginbase.model.Vector3d
- of(Vector) - Static method in class dev.demeng.pluginbase.model.Vector3d
- of(Pair<A, B>) - Static method in class dev.demeng.pluginbase.model.Pair
- of(List<E>) - Static method in interface dev.demeng.pluginbase.bucket.Cycle
-
Creates a new cycle of elements.
- ofTicks(long) - Static method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Creates a cooldown lasting a number of game ticks.
- on(ThreadContext) - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder
-
Defines the thread context of the new task, and returns the next builder in the chain.
- onClose(InventoryCloseEvent) - Method in interface dev.demeng.pluginbase.menu.IMenu
-
Called when the menu is closed.
- onCommandInvocation(CommandInvocationException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized internal error message and logs the underlying cause when command execution throws an unexpected exception.
- onCooldown(CooldownException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a command is on cooldown, including the remaining wait time formatted with the concise duration formatter.
- onDisable() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
- onEmptyEntitySelector(EmptyEntitySelectorException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when an entity selector matches no entities.
- onEnable() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
- onEnumNotFound(EnumNotFoundException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when input does not match any enum constant.
- onExit(Runnable) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
The runnable ran on exit (conversation abandon).
- onExpectedLiteral(ExpectedLiteralException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a literal node received unexpected input.
- onFinish(Consumer<T>) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
The consumer that is accepted with the parsed input when a valid input has been provided.
- onInputParse(InputParseException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for input parsing failures.
- onInvalidBoolean(InvalidBooleanException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when input cannot be parsed as a boolean.
- onInvalidDecimal(InvalidDecimalException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when input cannot be parsed as a decimal number.
- onInvalidHelpPage(InvalidHelpPageException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for an out-of-range help page number.
- onInvalidInteger(InvalidIntegerException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when input cannot be parsed as an integer.
- onInvalidListSize(InvalidListSizeException, BukkitCommandActor, ParameterNode<BukkitCommandActor, ?>) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a list argument has too few or too many entries.
- onInvalidPlayer(InvalidPlayerException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for invalid player input.
- onInvalidStringSize(InvalidStringSizeException, BukkitCommandActor, ParameterNode<BukkitCommandActor, ?>) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a string argument is too short or too long.
- onInvalidUUID(InvalidUUIDException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when input cannot be parsed as a UUID.
- onInvalidWorld(InvalidWorldException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for an invalid world name.
- onInvalidWorld(MissingLocationParameterException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a required location axis parameter is missing.
- onLoad() - Method in class dev.demeng.pluginbase.plugin.BasePlugin
- onMalformedEntitySelector(MalformedEntitySelectorException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for a malformed entity selector.
- onMissingArgument(MissingArgumentException, BukkitCommandActor, ParameterNode<BukkitCommandActor, ?>) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a required command argument is missing.
- onMoreThanOneEntity(MoreThanOneEntityException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when an entity selector matches more than one entity but only one is allowed.
- onNonPlayerEntities(NonPlayerEntitiesException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when an entity selector targets non-player entities but only players are allowed.
- onNoPermission(NoPermissionException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when the sender lacks permission to run the command.
- onNumberNotInRange(NumberNotInRangeException, BukkitCommandActor, ParameterNode<BukkitCommandActor, Number>) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a numeric argument falls outside its allowed range.
- onSenderNotConsole(SenderNotConsoleException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a non-console sender runs a console-only command.
- onSenderNotPlayer(SenderNotPlayerException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when a non-player sender runs a player-only command.
- onUnknownCommand(UnknownCommandException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when the input does not match any known command.
- onUnknownParameter(UnknownParameterException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message for an unrecognized flag or shorthand parameter.
- onValueNotAllowed(ValueNotAllowedException, BukkitCommandActor) - Method in class dev.demeng.pluginbase.command.BaseExceptionHandler
-
Sends a localized error message when the provided value is not in the set of allowed values.
- open(int, Player...) - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
-
Opens a specific page of the menu to the players.
- open(Player...) - Method in interface dev.demeng.pluginbase.menu.IMenu
-
Opens the menu for the provided player(s).
- open(Player...) - Method in class dev.demeng.pluginbase.menu.layout.Menu
- open(Player...) - Method in class dev.demeng.pluginbase.menu.layout.PagedMenu
- OUTDATED - Enum constant in enum class dev.demeng.pluginbase.UpdateChecker.Result
-
The plugin version does not match the one on the resource.
P
- PagedMenu - Class in dev.demeng.pluginbase.menu.layout
-
A paginated GUI menu that will be displayed to a player.
- PagedMenu(int, String, PagedMenu.Settings) - Constructor for class dev.demeng.pluginbase.menu.layout.PagedMenu
-
Creates a new paged menu with the specified size per page and inventory title.
- PagedMenu.Settings - Interface in dev.demeng.pluginbase.menu.layout
-
Settings for the paged menu.
- Pair<A,
B> - Class in dev.demeng.pluginbase.model -
A simple pair of objects.
- Pair() - Constructor for class dev.demeng.pluginbase.model.Pair
- parse(String) - Static method in class dev.demeng.pluginbase.Time
-
Converts the given duration string into milliseconds and wraps it inside an Optional.
- parseMini(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Parses the string using the MiniMessage library.
- parser() - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Returns the shared
JsonParserinstance. - parseSafely(String) - Static method in class dev.demeng.pluginbase.Time
- PartitioningStrategies - Class in dev.demeng.pluginbase.bucket.partitioning
-
Some standard partitioning strategies for use in
Buckets. - PartitioningStrategy<T> - Interface in dev.demeng.pluginbase.bucket.partitioning
-
A function which determines the position of an object within a
Bucket. - partitions - Variable in class dev.demeng.pluginbase.bucket.AbstractBucket
-
The partitions in the bucket
- partitionView - Variable in class dev.demeng.pluginbase.bucket.AbstractBucket
-
A view of the
AbstractBucket.partitionslist - with all contained values wrapped byAbstractBucket<E>.dev.demeng.pluginbase.bucket.AbstractBucket.SetView. - peekNext() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Returns the next element without advancing the cursor.
- peekPrevious() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Returns the previous element without retreating the cursor.
- Placeholders - Class in dev.demeng.pluginbase.model
-
A shorthand version of
DynamicPlaceholders, allowing for string placeholders to be easily applied on strings, lists, and item stacks. - Placeholders() - Constructor for class dev.demeng.pluginbase.model.Placeholders
- playCustomToLocation(Location, String, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays a custom sound to a location.
- playCustomToPlayer(Player, String, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays a custom sound to a player.
- playerHasPermission(String) - Static method in class dev.demeng.pluginbase.event.filter.EventFilters
-
Returns a predicate which only returns true if the player has the given permission
- Players - Class in dev.demeng.pluginbase
-
Utility for operations involving multiple players.
- Players() - Constructor for class dev.demeng.pluginbase.Players
- PLAYERS_ERROR_MESSAGE - Static variable in class dev.demeng.pluginbase.Common
-
The error message for players when an internal error occurs.
- playToLocation(Location, ConfigurationSection) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays the sound in the configuration section to the location.
- playToLocation(Location, String, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Play a sound to a location.
- playToPlayer(Player, ConfigurationSection) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays the sound in the configuration section to the player.
- playToPlayer(Player, String, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Play a sound to a player.
- playVanillaToLocation(Location, Sound, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays a vanilla sound to a location.
- playVanillaToPlayer(Player, Sound, float, float) - Static method in class dev.demeng.pluginbase.Sounds
-
Plays a vanilla sound to a player.
- PluginErrorException - Exception in dev.demeng.pluginbase.exceptions
-
An extension of RuntimeException that calls
Common.error(Throwable, String, boolean, CommandSender...). - PluginErrorException(String, boolean, Player...) - Constructor for exception dev.demeng.pluginbase.exceptions.PluginErrorException
- PluginErrorException(Throwable, String, boolean, Player...) - Constructor for exception dev.demeng.pluginbase.exceptions.PluginErrorException
- Point - Class in dev.demeng.pluginbase.model
-
An immutable and serializable Location object, including the yaw and pitch.
- Point() - Constructor for class dev.demeng.pluginbase.model.Point
- POLISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- PORTUGUESE - Static variable in class dev.demeng.pluginbase.locale.Locales
- Position - Class in dev.demeng.pluginbase.model
-
An immutable and serializable Location object without the yaw or pitch.
- Position() - Constructor for class dev.demeng.pluginbase.model.Position
- POST_FILTER - Enum constant in enum class dev.demeng.pluginbase.event.functional.ExpiryTestStage
-
The expiry predicate should be tested after the subscriptions filters have been evaluated
- POST_HANDLE - Enum constant in enum class dev.demeng.pluginbase.event.functional.ExpiryTestStage
-
The expiry predicate should be tested after the event has been handled
- PRE - Enum constant in enum class dev.demeng.pluginbase.event.functional.ExpiryTestStage
-
The expiry predicate should be tested before the event is filtered or handled
- predicateToBiPredicateFirst(Predicate<T>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
-
Wraps a
Predicateas aBiPredicatethat tests the first argument, ignoring the second. - predicateToBiPredicateSecond(Predicate<U>) - Static method in class dev.demeng.pluginbase.delegate.Delegates
-
Wraps a
Predicateas aBiPredicatethat tests the second argument, ignoring the first. - prefix() - Method in interface dev.demeng.pluginbase.BaseSettings
-
The prefix for chat and console messages.
- prettyPrinting() - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Returns a
Gsoninstance configured with pretty printing, null serialization, and HTML escaping disabled. - previous() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Retreats the counter, and returns the previous element.
- previousInCycle() - Static method in class dev.demeng.pluginbase.bucket.partitioning.PartitioningStrategies
- previousPosition() - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Returns the index of the previous position in the cycle.
- primitive(Boolean) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitive(Character) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitive(Number) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitive(String) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitiveNonNull(Boolean) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitiveNonNull(Character) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitiveNonNull(Number) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- primitiveNonNull(String) - Static method in class dev.demeng.pluginbase.gson.JsonBuilder
-
Creates a JsonPrimitive from the given value.
- printAllStackTraces() - Method in exception dev.demeng.pluginbase.terminable.composite.CompositeClosingException
- Promise<V> - Interface in dev.demeng.pluginbase.promise
-
An object that acts as a proxy for a result that is initially unknown, usually because the computation of its value is yet incomplete.
- PromiseChainException - Exception in dev.demeng.pluginbase.exceptions
-
A general exception caused by a
Promisechain. - PromiseChainException(Throwable) - Constructor for exception dev.demeng.pluginbase.exceptions.PromiseChainException
- provide(Class<T>, T) - Static method in class dev.demeng.pluginbase.Services
-
Provides a service.
- provide(Class<T>, T, Plugin, ServicePriority) - Static method in class dev.demeng.pluginbase.Services
-
Provides a service.
- provide(Class<T>, T, ServicePriority) - Static method in class dev.demeng.pluginbase.Services
-
Provides a service.
- provideService(Class<T>, T) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Provides a service to the ServiceManager, bound to this plugin at
ServicePriority.Normal. - provideService(Class<T>, T, ServicePriority) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Provides a service to the ServiceManager, bound to this plugin.
- put(T, Cooldown) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Stores a custom cooldown instance for the given key, replacing any existing entry.
R
- random() - Static method in class dev.demeng.pluginbase.bucket.partitioning.PartitioningStrategies
- RandomString - Class in dev.demeng.pluginbase.random
-
Utility for generating random strings with customizable length.
- RandomString() - Constructor for class dev.demeng.pluginbase.random.RandomString
- readObject(Reader) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Parses the content of the given
Readerinto aJsonObject. - readObject(String) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Parses a JSON string into a
JsonObject. - register() - Method in interface dev.demeng.pluginbase.event.functional.FunctionalHandlerList
-
Builds and registers the Handler.
- register(Class<T>, T) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer.Builder
-
Registers an instance in the container with an explicit type.
- register(Class<T>, T) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer
-
Registers an instance in the container with an explicit type.
- register(Object) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer.Builder
-
Registers an instance in the container.
- register(T) - Method in interface dev.demeng.pluginbase.di.container.DependencyContainer
-
Registers an instance in the container.
- registerListener(T) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Register a listener with the server.
- reload() - Method in class dev.demeng.pluginbase.YamlConfig
-
Reloads the configuration file.
- remainingMillis() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Gets the time in milliseconds until the cooldown will become inactive.
- remainingMillis(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Returns the number of milliseconds remaining on the cooldown for the given key.
- remainingTime(TimeUnit) - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Gets the time until the cooldown will become inactive.
- remainingTime(T, TimeUnit) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Returns the remaining cooldown time for the given key expressed in the specified time unit.
- remove(Object) - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- replace(String) - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Sets the placeholders in the string.
- replace(List<String>) - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Sets the placeholders in a string list.
- replace(ItemStack) - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Sets the placeholders in an item stack.
- reset() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Resets the cooldown.
- reset(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Resets the cooldown for the given key so that it behaves as if it was never tested.
- resolve(Object) - Static method in interface dev.demeng.pluginbase.delegate.Delegate
-
Resolves for the provided object.
- ROMANIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
- run(Runnable) - Method in interface dev.demeng.pluginbase.scheduler.builder.ContextualPromiseBuilder
- run(Runnable) - Method in interface dev.demeng.pluginbase.scheduler.builder.ContextualTaskBuilder
- run(Runnable) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Execute the passed runnable
- runLater(Runnable, long) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Execute the passed runnable at some point in the future
- runLater(Runnable, long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Execute the passed runnable at some point in the future
- runnableToConsumer(Runnable) - Static method in class dev.demeng.pluginbase.delegate.Delegates
- runnableToFunction(Runnable) - Static method in class dev.demeng.pluginbase.delegate.Delegates
- runnableToSupplier(Runnable) - Static method in class dev.demeng.pluginbase.delegate.Delegates
-
Wraps a
Runnableas aSupplier<Void>. - runRepeating(Runnable, long, long) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Schedule a repeating task to run
- runRepeating(Runnable, long, TimeUnit, long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Schedule a repeating task to run
- runRepeating(Consumer<Task>, long, long) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Schedule a repeating task to run
- runRepeating(Consumer<Task>, long, TimeUnit, long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Schedule a repeating task to run
- RUSSIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
S
- save() - Method in class dev.demeng.pluginbase.YamlConfig
-
Saves the configuration file (after making edits).
- Scheduler - Interface in dev.demeng.pluginbase.scheduler
-
Utility for scheduling tasks
- Schedulers - Class in dev.demeng.pluginbase
-
Provides common instances of
Scheduler. - Schedulers() - Constructor for class dev.demeng.pluginbase.Schedulers
- SchedulerTaskException - Exception in dev.demeng.pluginbase.exceptions
-
A general exception caused by a scheduler task.
- SchedulerTaskException(Throwable) - Constructor for exception dev.demeng.pluginbase.exceptions.SchedulerTaskException
- sendTitle(Player, String, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends the title to the player.
- sendTitle(Player, String, String, int, int, int) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends the title to the player.
- serialize(ConfigurationSection) - Method in class dev.demeng.pluginbase.model.BlockPosition
- serialize(ConfigurationSection) - Method in class dev.demeng.pluginbase.model.Point
- serialize(ConfigurationSection) - Method in class dev.demeng.pluginbase.model.Position
- serialize(ConfigurationSection) - Method in class dev.demeng.pluginbase.model.Vector3d
- serialize(ConfigurationSection) - Method in interface dev.demeng.pluginbase.serialize.YamlSerializable
-
Serializes the object into the configuration section.
- serialize(ItemStack, ConfigurationSection) - Static method in class dev.demeng.pluginbase.serialize.ItemSerializer
-
Serializes the item stack into the configuration section.
- ServerProperties - Class in dev.demeng.pluginbase
-
Utility for getting information from server.properties.
- ServerProperties() - Constructor for class dev.demeng.pluginbase.ServerProperties
- ServerThreadLock - Interface in dev.demeng.pluginbase.scheduler.threadlock
-
A tool to synchronize code with the main server thread.
- Services - Class in dev.demeng.pluginbase
-
Utility class for interacting with the Bukkit
ServicesManager. - Services() - Constructor for class dev.demeng.pluginbase.Services
- setBackground(ItemStack) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies a background filler, which sets all empty slots in the menu with the dummy button.
- setBaseSettings(BaseSettings) - Method in class dev.demeng.pluginbase.plugin.BasePlugin
-
Sets the settings the library should use.
- setBorder(ItemStack) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies a border filler, which sets all empty slots on the edges of the menu with a dummy button.
- setColumn(int, ItemStack) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies a column filler, which sets all empty slots in a column with the dummy button.
- setCursor(int) - Method in interface dev.demeng.pluginbase.bucket.Cycle
-
Sets the cursor to a given index
- setLastTested(long) - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Sets the time in milliseconds when this cooldown was last tested.
- setLastTested(T, long) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Manually sets the last tested timestamp for the cooldown associated with the given key.
- setLocale(Locale) - Method in interface dev.demeng.pluginbase.locale.Translator
-
Sets the locale of this translator.
- setPlaceholders(String) - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Sets the placeholders in the string.
- setPlaceholders(String) - Method in class dev.demeng.pluginbase.model.Placeholders
- setPlugin(JavaPlugin) - Static method in class dev.demeng.pluginbase.plugin.BaseManager
-
Sets the
JavaPluginthat the library is currently working with. - setRow(int, ItemStack) - Method in class dev.demeng.pluginbase.menu.layout.Menu
-
Applies a row filler, which sets all empty slots in a row with the dummy button.
- setup(TerminableConsumer) - Method in class dev.demeng.pluginbase.menu.MenuManager
- setup(TerminableConsumer) - Method in interface dev.demeng.pluginbase.terminable.module.TerminableModule
-
Performs the tasks to setup this module
- shutdown() - Static method in class dev.demeng.pluginbase.scheduler.BaseExecutors
- similarity(String, String) - Static method in class dev.demeng.pluginbase.text.StringSimilarity
-
Calculates the similarity percentage between two strings based on Levenshtein distance.
- SIMPLIFIED_CHINESE - Static variable in class dev.demeng.pluginbase.locale.Locales
- SingleHandlerList<T extends org.bukkit.event.Event> - Interface in dev.demeng.pluginbase.event.functional.single
- SingleSubscription<T extends org.bukkit.event.Event> - Interface in dev.demeng.pluginbase.event
-
Represents a subscription to a single given event.
- SingleSubscriptionBuilder<T extends org.bukkit.event.Event> - Interface in dev.demeng.pluginbase.event.functional.single
-
Functional builder for
SingleSubscriptions. - size - Variable in class dev.demeng.pluginbase.bucket.AbstractBucket
-
The number of partitions in this bucket
- size() - Method in class dev.demeng.pluginbase.bucket.AbstractBucket
- skullOwner(String) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the skull owner of a skull item.
- skullOwner(UUID) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the skull owner of a skull item.
- skullTexture(String) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets the skull texture to the provided base64 encoded string.
- Sounds - Class in dev.demeng.pluginbase
-
Various utilities for playing sound effects.
- Sounds() - Constructor for class dev.demeng.pluginbase.Sounds
- SPANISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- SPIGOT - Static variable in class dev.demeng.pluginbase.Common
-
If the server software the plugin is running on is Spigot or a fork of Spigot.
- splitLines(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Creates a list of lines from a string line-broken with \n.
- standard() - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Returns the standard
Gsoninstance configured with null serialization and HTML escaping disabled. - start() - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new base promise to be built on top of.
- start(Player) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
Requests the specified player for input.
- stop() - Method in interface dev.demeng.pluginbase.scheduler.Task
-
Stops the task.
- strategy - Variable in class dev.demeng.pluginbase.bucket.AbstractBucket
-
The function used to partition objects
- stream() - Static method in class dev.demeng.pluginbase.Players
-
Gets a stream of all players on the server.
- streamInRange(Location, double) - Static method in class dev.demeng.pluginbase.Players
-
Gets a stream of all players within a given radius of a point.
- StringSimilarity - Class in dev.demeng.pluginbase.text
-
Utility class for calculating string similarity using various algorithms.
- StringSimilarity() - Constructor for class dev.demeng.pluginbase.text.StringSimilarity
- strip(String) - Static method in class dev.demeng.pluginbase.text.Text
-
Fully strip all color from the string.
- strip(List<String>) - Static method in class dev.demeng.pluginbase.text.Text
-
Fully strip all color from strings.
- subscribe(Class<T>) - Static method in class dev.demeng.pluginbase.Events
-
Makes a SingleSubscriptionBuilder for a given event
- subscribe(Class<T>, EventPriority) - Static method in class dev.demeng.pluginbase.Events
-
Makes a SingleSubscriptionBuilder for a given event
- Subscription - Interface in dev.demeng.pluginbase.event
-
Represents a subscription to a given (set of) event(s).
- SubscriptionBuilder<T> - Interface in dev.demeng.pluginbase.event.functional
-
Abstract
Subscriptionbuilder. - supply(ThreadContext, Supplier<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier.
- supply(Supplier<T>) - Method in interface dev.demeng.pluginbase.scheduler.builder.ContextualPromiseBuilder
- supply(Supplier<T>) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed supplier.
- supply(V) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Supplies the Promise's result.
- supplyAsync(Supplier<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier.
- supplyDelayed(ThreadContext, Supplier<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyDelayed(ThreadContext, Supplier<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyDelayedAsync(Supplier<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyDelayedAsync(Supplier<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyDelayedSync(Supplier<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyDelayedSync(Supplier<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier, after the delay has elapsed.
- supplyException(Throwable) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Supplies an exceptional result to the Promise.
- supplyExceptionally(ThreadContext, Callable<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable.
- supplyExceptionallyAsync(Callable<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable.
- supplyExceptionallyDelayed(ThreadContext, Callable<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallyDelayed(ThreadContext, Callable<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallyDelayedAsync(Callable<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallyDelayedAsync(Callable<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallyDelayedSync(Callable<V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallyDelayedSync(Callable<V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable, after the delay has elapsed.
- supplyExceptionallySync(Callable<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given callable.
- supplying(ThreadContext, Supplier<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier.
- supplyingAsync(Supplier<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier.
- supplyingDelayed(ThreadContext, Supplier<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingDelayed(ThreadContext, Supplier<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingDelayedAsync(Supplier<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingDelayedAsync(Supplier<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingDelayedSync(Supplier<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingDelayedSync(Supplier<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier, after the delay has elapsed.
- supplyingExceptionally(ThreadContext, Callable<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable.
- supplyingExceptionallyAsync(Callable<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable.
- supplyingExceptionallyDelayed(ThreadContext, Callable<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallyDelayed(ThreadContext, Callable<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallyDelayedAsync(Callable<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallyDelayedAsync(Callable<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallyDelayedSync(Callable<U>, long) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallyDelayedSync(Callable<U>, long, TimeUnit) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable, after the delay has elapsed.
- supplyingExceptionallySync(Callable<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given callable.
- supplyingSync(Supplier<U>) - Static method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise, and schedules it's population via the given supplier.
- supplyLater(Supplier<T>, long) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed supplier at some point in the future
- supplyLater(Supplier<T>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.scheduler.Scheduler
-
Compute the result of the passed supplier at some point in the future
- supplySync(Supplier<V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Schedules the supply of the Promise's result, via the given supplier.
- SWEDISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- sync() - Static method in class dev.demeng.pluginbase.scheduler.BaseExecutors
- sync() - Method in interface dev.demeng.pluginbase.scheduler.builder.TaskBuilder
-
Marks that the new task should run sync, and returns the next builder in the chain.
- sync() - Static method in class dev.demeng.pluginbase.Schedulers
-
Returns a "sync" scheduler, which executes tasks on the main server thread.
- SYNC - Enum constant in enum class dev.demeng.pluginbase.promise.ThreadContext
T
- Task - Interface in dev.demeng.pluginbase.scheduler
-
Represents a scheduled repeating task.
- TaskBuilder - Interface in dev.demeng.pluginbase.scheduler.builder
-
Functional builder providing chained access to the functionality in
Scheduler; - TaskBuilder.Delayed - Interface in dev.demeng.pluginbase.scheduler.builder
-
The next builder in the task chain, which already has a defined delay context.
- TaskBuilder.DelayedTick - Interface in dev.demeng.pluginbase.scheduler.builder
- TaskBuilder.DelayedTime - Interface in dev.demeng.pluginbase.scheduler.builder
- TaskBuilder.ThreadContextual - Interface in dev.demeng.pluginbase.scheduler.builder
-
The next builder in the task chain, which already has a defined task context.
- tell(CommandSender, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a colored and prefixed message to the command sender.
- tellCentered(Player, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a colored and centered message.
- tellComponent(Player, Component) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends the
Componentto the player as a chat message. - tellLocalized(CommandSender, String, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a
Text.localized(String, CommandSender, Object...), colored, and prefixed message to the command sender. - tellLocalizedRaw(CommandSender, String, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a localized, colorized message without the prefix.
- tellRaw(CommandSender, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Sends a colorized message without the prefix.
- Terminable - Interface in dev.demeng.pluginbase.terminable
-
An extension of
AutoCloseable. - TerminableConsumer - Interface in dev.demeng.pluginbase.terminable
- TerminableModule - Interface in dev.demeng.pluginbase.terminable.module
-
A terminable module is a class which manipulates and constructs a number of
Terminables. - test() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Returns true if the cooldown is not active, and then resets the timer.
- test(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Tests whether the given key is off cooldown and, if so, records the current time as the last tested instant.
- testSilently() - Method in class dev.demeng.pluginbase.cooldown.Cooldown
-
Returns true if the cooldown is not active.
- testSilently(T) - Method in class dev.demeng.pluginbase.cooldown.CooldownMap
-
Tests whether the given key is off cooldown without recording the current time.
- Text - Class in dev.demeng.pluginbase.text
-
Message-related utilities, including console and chat messages.
- Text() - Constructor for class dev.demeng.pluginbase.text.Text
- THAI - Static variable in class dev.demeng.pluginbase.locale.Locales
- thenAccept(ThreadContext, Consumer<? super V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action.
- thenAcceptAsync(Consumer<? super V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action.
- thenAcceptDelayed(ThreadContext, Consumer<? super V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptDelayed(ThreadContext, Consumer<? super V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptDelayedAsync(Consumer<? super V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptDelayedAsync(Consumer<? super V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptDelayedSync(Consumer<? super V>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptDelayedSync(Consumer<? super V>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed.
- thenAcceptSync(Consumer<? super V>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action.
- thenApply(ThreadContext, Function<? super V, ? extends U>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenApplyAsync(Function<? super V, ? extends U>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenApplyDelayed(ThreadContext, Function<? super V, ? extends U>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplyDelayed(ThreadContext, Function<? super V, ? extends U>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplyDelayedAsync(Function<? super V, ? extends U>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplyDelayedAsync(Function<? super V, ? extends U>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplyDelayedSync(Function<? super V, ? extends U>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplyDelayedSync(Function<? super V, ? extends U>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenApplySync(Function<? super V, ? extends U>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenCompose(ThreadContext, Function<? super V, ? extends Promise<U>>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenComposeAsync(Function<? super V, ? extends Promise<U>>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenComposeDelayedAsync(Function<? super V, ? extends Promise<U>>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeDelayedAsync(Function<? super V, ? extends Promise<U>>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeDelayedSync(ThreadContext, Function<? super V, ? extends Promise<U>>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeDelayedSync(ThreadContext, Function<? super V, ? extends Promise<U>>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeDelayedSync(Function<? super V, ? extends Promise<U>>, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeDelayedSync(Function<? super V, ? extends Promise<U>>, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function, after the delay has elapsed.
- thenComposeSync(Function<? super V, ? extends Promise<U>>) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given function.
- thenRun(ThreadContext, Runnable) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task.
- thenRunAsync(Runnable) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task.
- thenRunDelayed(ThreadContext, Runnable, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunDelayed(ThreadContext, Runnable, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunDelayedAsync(Runnable, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunDelayedAsync(Runnable, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunDelayedSync(Runnable, long) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunDelayedSync(Runnable, long, TimeUnit) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task, after the delay has elapsed.
- thenRunSync(Runnable) - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a new Promise that, when this promise completes normally, executes the given task.
- ThreadContext - Enum Class in dev.demeng.pluginbase.promise
-
Represents the two main types of
Threadon the server. - Ticks - Class in dev.demeng.pluginbase.scheduler
-
Utility for converting between Minecraft game ticks and standard durations.
- Ticks() - Constructor for class dev.demeng.pluginbase.scheduler.Ticks
- TICKS_PER_SECOND - Static variable in class dev.demeng.pluginbase.scheduler.Ticks
- Time - Class in dev.demeng.pluginbase
-
Utilities for time/duration parsing and formatting.
- Time() - Constructor for class dev.demeng.pluginbase.Time
- Time.DurationFormatter - Enum Class in dev.demeng.pluginbase
-
The duration formatters.
- titleCase(String, String) - Static method in class dev.demeng.pluginbase.text.Text
-
Makes a string Title Case.
- tl(String, Locale, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Shorthand for
Text.localized(String, Locale, Object...). - tl(String, CommandSender, Object...) - Static method in class dev.demeng.pluginbase.text.Text
-
Shorthand for
Text.localized(String, CommandSender, Object...). - to(long, TimeUnit) - Static method in class dev.demeng.pluginbase.scheduler.Ticks
-
Converts ticks to a duration in a certain unit of time.
- toBlock() - Method in class dev.demeng.pluginbase.model.BlockPosition
-
Gets the block at the given location.
- toBlockLocation(Location) - Static method in class dev.demeng.pluginbase.Locations
-
Converts a location to a block location (world and integer coordinates).
- toBukkitVector() - Method in class dev.demeng.pluginbase.model.Vector3d
-
Converts the 3D vector to a Bukkit
Vector. - toCompletableFuture() - Method in interface dev.demeng.pluginbase.promise.Promise
-
Returns a
CompletableFuturemaintaining the same completion properties as this Promise. - toFunction() - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Gets the function for setting the placeholders.
- toLocation() - Method in class dev.demeng.pluginbase.model.BlockPosition
-
Converts the block position to a Bukkit
Location. - toLocation() - Method in class dev.demeng.pluginbase.model.Point
-
Converts the point to a Bukkit
Location. - toLocation() - Method in class dev.demeng.pluginbase.model.Position
-
Converts the position to a Bukkit
Location. - toLocation(World) - Method in class dev.demeng.pluginbase.model.Vector3d
-
Converts the 3D vector to a Bukkit
Location. - toOperator() - Method in interface dev.demeng.pluginbase.DynamicPlaceholders
-
Gets the unary operator for setting the placeholders.
- toSqlTimestamp(long) - Static method in class dev.demeng.pluginbase.Time
-
Converts the long timestamp into an SQL timestamp.
- toString(JsonElement) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonElementto a string using standard formatting. - toString(UUID) - Static method in class dev.demeng.pluginbase.TrimmedUuids
-
Returns a UUID string without dashes (trimmed).
- toStringPretty(JsonElement) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonElementto a pretty-printed string. - TRADITIONAL_CHINESE - Static variable in class dev.demeng.pluginbase.locale.Locales
- Translator - Interface in dev.demeng.pluginbase.locale
-
Represents a translator.
- TrimmedUuids - Class in dev.demeng.pluginbase
-
Utility for converting to and from trimmed UUIDs.
- TrimmedUuids() - Constructor for class dev.demeng.pluginbase.TrimmedUuids
- TURKISH - Static variable in class dev.demeng.pluginbase.locale.Locales
- TypeAware<T> - Interface in dev.demeng.pluginbase.interfaces
-
Represents an object that knows its own type parameter.
- TypeMismatchException - Exception in dev.demeng.pluginbase.di.exception
-
Exception thrown when attempting to register an instance with a type that is not assignable from the instance's actual class.
- TypeMismatchException(Class<?>, Class<?>) - Constructor for exception dev.demeng.pluginbase.di.exception.TypeMismatchException
-
Creates a new type mismatch exception with details about the expected and actual types.
U
- UKRANIAN - Static variable in class dev.demeng.pluginbase.locale.Locales
- unbreakable(boolean) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Sets if the item should be unbreakable.
- uncancel() - Static method in class dev.demeng.pluginbase.event.filter.EventHandlers
-
Returns a consumer which un-cancels the event
- unenchant(Enchantment) - Method in class dev.demeng.pluginbase.item.ItemBuilder
-
Removes the specified enchantment.
- unregister() - Method in interface dev.demeng.pluginbase.event.Subscription
-
Unregisters the handler
- UP_TO_DATE - Enum constant in enum class dev.demeng.pluginbase.UpdateChecker.Result
-
The plugin version matches the one on the resource.
- UpdateChecker - Class in dev.demeng.pluginbase
-
Simple utility for checking for resource updates on SpigotMC.
- UpdateChecker(int) - Constructor for class dev.demeng.pluginbase.UpdateChecker
-
Creates a new update checker instance and caches the latest version from Spigot.
- UpdateChecker.Result - Enum Class in dev.demeng.pluginbase
-
The result of an update check.
V
- valueOf(String) - Static method in enum class dev.demeng.pluginbase.event.functional.ExpiryTestStage
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.demeng.pluginbase.promise.ThreadContext
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.demeng.pluginbase.UpdateChecker.Result
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.demeng.pluginbase.event.functional.ExpiryTestStage
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.demeng.pluginbase.promise.ThreadContext
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.demeng.pluginbase.Time.DurationFormatter
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.demeng.pluginbase.UpdateChecker.Result
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Vector3d - Class in dev.demeng.pluginbase.model
-
An immutable and serializable 3D vector.
- Vector3d() - Constructor for class dev.demeng.pluginbase.model.Vector3d
- VIETNAMESE - Static variable in class dev.demeng.pluginbase.locale.Locales
W
- WELSH - Static variable in class dev.demeng.pluginbase.locale.Locales
- with(AutoCloseable) - Method in class dev.demeng.pluginbase.terminable.composite.AbstractCompositeTerminable
- with(AutoCloseable) - Method in class dev.demeng.pluginbase.terminable.composite.AbstractWeakCompositeTerminable
- with(AutoCloseable) - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Binds an
AutoCloseablewith this composite closable. - withAll(AutoCloseable...) - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Binds all given
AutoCloseablewith this composite closable. - withAll(Iterable<? extends AutoCloseable>) - Method in interface dev.demeng.pluginbase.terminable.composite.CompositeTerminable
-
Binds all given
AutoCloseablewith this composite closable. - withExitValue(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
Sets the escape sequence that cancels the input request.
- withInitialMessage(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
The message that is sent the first time input is requested.
- withRetryMessage(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
The message that is sent after an invalid input.
- withSubtitle(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
Sets the subtitle that is sent when input is requested.
- withTimeoutMessage(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
The message that is sent after the request timeout of 5 minutes.
- withTitle(String) - Method in class dev.demeng.pluginbase.input.ChatInputRequest
-
Sets the title that is sent when input is requested.
- wrap(Runnable) - Static method in exception dev.demeng.pluginbase.exceptions.SchedulerTaskException
-
Wraps a runnable into a runnable that catches its own exceptions and logs them using
Common.error(Throwable, String, boolean, CommandSender...). - wrap(ResourceBundle) - Static method in interface dev.demeng.pluginbase.locale.LocaleReader
-
Wraps a
ResourceBundlein aLocaleReader. - wrapRunnable(Runnable) - Static method in class dev.demeng.pluginbase.scheduler.BaseExecutors
-
Deprecated.
- writeElement(Appendable, JsonElement) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonElementto the givenAppendableusing standard formatting. - writeElementPretty(Appendable, JsonElement) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonElementto the givenAppendableusing pretty-print formatting. - writeObject(Appendable, JsonObject) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonObjectto the givenAppendableusing standard formatting. - writeObjectPretty(Appendable, JsonObject) - Static method in class dev.demeng.pluginbase.gson.GsonProvider
-
Serializes a
JsonObjectto the givenAppendableusing pretty-print formatting.
Y
- YamlConfig - Class in dev.demeng.pluginbase
-
A standard YAML configuration file with several shortcuts to common methods including such as reloading or saving.
- YamlConfig(String) - Constructor for class dev.demeng.pluginbase.YamlConfig
-
Loads a YAML configuration file.
- YamlSerializable - Interface in dev.demeng.pluginbase.serialize
-
An object that can be serialized to a YAML configuration section.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form